Skip to content

[Release] Validate coordinated IAM upgrade, complete backups and rollback #200

Closed

Description

@Vonng

Outcome

Turn the accepted R3 protocol restrictions into an executable operator procedure and a controlled upgrade/restore rehearsal. The code repairs in #191 and #192 are already merged; this task does not redesign them.

The current protocol and upgrade guide requires all participating nodes/sites to upgrade, prohibits mixed old/new nodes sharing an IAM backend and rolling downgrade, and explains that a live IAM export omits deletion history. Clock synchronization alone does not satisfy these requirements.

Scope

  • Specify maintenance entry/exit checks, paused IAM mutations, complete backend backups and encryption-material prerequisites for object and etcd backends.
  • Specify handling of pre-upgrade revocations, unknown offline sites/old snapshots, and reissuance of credentials belonging to recreated parents.
  • Record supported rollback/restore steps, including the reconciliation of revocations made after a backup. Restoring only live records or removing tombstones is not a valid rollback.
  • Provide checks for old credentials remaining denied, intentionally reissued credentials working, clocks, IAM load errors and site-replication convergence. Preserve the documented eventual-propagation boundaries.

Acceptance

  • Publish a command-level runbook with prerequisites, expected observations, stop conditions and backup/restore inventory.
  • Rehearse on isolated old/new environments for each supported IAM backend; preserve exact binary/source identities and redacted results.
  • Demonstrate preservation of deletion history, stale replay rejection and deliberate reissue across restart/restore.
  • Link existing R3 multi-site evidence and explain what the new rehearsal adds, without counting old runs as newly executed tests.
  • Provide release-note text and deployment checklist. Record production rollout as a separate, unexecuted deliverable unless a concrete deployment has been selected and authorized.

Product and operator documentation belongs in pgsty/silo.pgsty.com; private investigation material and raw evidence stay outside public Git. The Server repository keeps its entry points and contributor instructions. No production IAM mutation or restore is authorized by this tracking issue.

Tracking boundary

Baseline: 40220bd836cbd066ca424fa4dc5dbb90057fb55a (main, PR #196), verified 2026-09-16. R1–R8 are closed within their original defect scopes. This issue tracks the follow-up below. R9 / #79 / #198 is explicitly deferred to a separate effort and is not a dependency of this workstream. Source merge, release artifacts and deployment acceptance must be reported separately.

Follow-up

Runbook/rehearsal preparation can proceed independently. Coordinate final candidate identity with #203 and operator release notes with #202. Historical object metadata is handled in #201.

Activity

  1. added
    documentation
    on Sep 15, 2026
  2. added
    maintenance
    on Sep 15, 2026
  3. self-assigned this
    on Sep 15, 2026
  4. added theissue type on Sep 15, 2026
  5. Vonng commented on Sep 15, 2026

    @Vonng
    MemberAuthor

    The operator runbook is now prepared in pgsty/silo.pgsty.com#25, with matching English and Chinese pages. It covers maintenance entry/exit checks, complete object-store/etcd recovery material, credential reissue, unknown offline peers, post-backup revocations and rollback isolation. The corresponding Unreleased notes are in #205.

    The draft is available in the IAM upgrade and recovery page. Existing published context remains in the SILO component and repair matrix; the new runbook is still a proposed website change.

    Command syntax was checked against mcli, the protocol requirements were checked against the accepted Server source, and the website build/link checks passed. This is documentation preparation, not a completed upgrade/restore rehearsal.

    Keeping this issue open for the isolated old/new multi-process rehearsals on both IAM backends, including stale replay, deliberate reissue, restart, full restore and rollback to a point before a later revocation. Those runs must preserve exact binary identities and redacted observations. No production deployment or IAM restore has been performed.

  6. Vonng commented on Sep 16, 2026

    @Vonng
    MemberAuthor

    The first old/new upgrade and full-restore rehearsals have now passed for both IAM backends. These are new runtime runs, extending the existing #192 protocol tests rather than recounting them.

    Artifacts and topology: Server RELEASE.2026-09-03T13-18-01Z (9b11dc9469e650815b775cb47b039610644f5da4) was upgraded to a clean source build at 70c7ec4a9fbf5fbd64cf23dfd8fe835f31ae2b1d. Only CHANGELOG.md differs from runtime baseline 40220bd836cbd066ca424fa4dc5dbb90057fb55a. The tested new binary's SHA-256 is 773506d3cbe670d2b9db833477c8259ccb1a455b5b6ae13945874034622cc3f3. Both runs used three sites, two Server processes and four drives per site in an isolated Linux ARM64 container. The etcd run used three independent single-member etcd 3.6.13 instances, one per site; the client was mcli 20260903 (a2ef95c035d9a). No ports or peers were exposed outside the isolated lab network.

    Both runs verified:

    • Existing non-revoked user, service-account and STS credentials survive a coordinated upgrade.
    • Revocations and a same-key service-account replacement converge after an offline site returns. The observed catch-up times were 61.8 s (object store) and 80.0 s (etcd), not a promised SLA.
    • Old credentials and detached grants remain denied after cold restart and a complete post-revocation backup/restore; deliberately recreated users and newly issued service-account/STS credentials work on all six processes.
    • The object-store restore included every lab drive. The etcd restore used complete etcdctl snapshot save / etcdutl snapshot restore snapshots with matching topology. Signed reads used a known object and a successful root control; unrelated request failures did not count as authorization denial.

    The rollback gate remains open. Restoring the pre-upgrade backup with its matching old binary made a subsequently revoked credential work again, as expected. That run deliberately ended before ledger reconciliation/rekeying, with reopening explicitly rejected. We still need a reconciled rollback/reopen rehearsal and deployment-specific backup, key, identity-provider and HA-etcd checks; these runs do not approve a production rollback.

    The bilingual runbook and validation scope are updated in website PR #25. Server release-note PR #205 has merged separately. Existing published context is in the component and repair matrix. Keeping this issue open for the remaining acceptance items and website integration. No production upgrade or restore was performed.

  7. Vonng commented on Sep 16, 2026

    @Vonng
    MemberAuthor

    The previously missing rollback-reconciliation step now has bounded laboratory evidence on both IAM backends. The Server binaries are unchanged from the earlier runs: 20260903 (9b11dc9469e6) and candidate 70c7ec4a9fbf (runtime source baseline 40220bd836cb).

    The tested recovery policy keeps retired parents disabled, removes their recorded service-account keys, detaches revoked grants, and issues replacement credentials under distinct identity names. In the three-site/six-process lab:

    • The etcd 3.6.13 run passed reconciliation and a complete restore of the reconciled backend. Retired credentials were denied and replacement user/service-account/STS credentials worked on all six processes.
    • The object-store continuation used the same immutable pre-upgrade backup, original root credentials and topology from the upgrade/restore fixture. It passed reconciliation and a second complete restore: retired users, service keys, revoked grants and the retired parent's known-live STS session were denied; replacement users, service accounts and fresh STS passed all six process checks.

    The startup boundary matters. Earlier object-store attempts saw STS write/quorum errors and cross-site authentication failures after basic readiness checks. An old-binary-only cold-restart control also encountered an STS write error, so those observations do not establish a regression introduced by the new source build. In the preserved live fixture, later fresh STS issuance from each site passed every process without changing binaries or configuration. The exact startup cause has not been isolated.

    The accepted procedure therefore checks per-process write readiness, IAM/site-replication initialization, and actual signed canary access. Failed attempts stay in the record; an elapsed timeout or a green health endpoint cannot approve reopening. The completed object-store continuation needed three initial failed STS issuance probes before its fresh canary passed; its post-reconciliation full restore then passed the fresh canary on the first attempt. This establishes one bounded recovery procedure, not preservation of arbitrary pre-restore STS sessions or a convergence SLA.

    The bilingual runbook in website PR #25 now includes the concrete reconciliation commands, credential checks and these limits. The existing published component matrix remains the source/release reference.

    Keeping #200 open for website integration and review of the startup observations. All known lab sites were online and isolated during reconciliation; no stale peer was admitted. Production storage snapshots, HA-etcd, external IdP/KMS and clock-skew validation remain deployment-specific work. No production access, credentials or data were changed.

  8. Vonng commented on Sep 16, 2026

    @Vonng
    MemberAuthor

    The IAM runbook is now integrated. Website PR #25 was incorporated through website PR #30, and main at 6e9d3d31887d018f5c18f7d91a00832879ac69c3 contains the exact English and Chinese guide bytes from the reviewed 75c42c7 head. The Server release notes are also merged through #205 and #208.

    Canonical guides: English and Chinese. The immutable source remains available for review. Cloudflare Pages reports SUCCESS for that main commit. Direct public-page/download verification remains unavailable from this environment; a request to the audit-tool download returned HTTP 403, and no access restriction was bypassed.

    The earlier object-store and etcd rehearsals, exact binary identities and startup observations remain the acceptance evidence; they have not been rerun or relabeled as validation of later Server builds. Documentation integration is complete. This issue remains open for review of the documented recovery limits, with final artifact acceptance and any deployment-specific restore kept separate. No production upgrade or restore was performed by this follow-up.

  9. Vonng commented on Sep 16, 2026

    @Vonng
    MemberAuthor

    Closing as completed for coordinated IAM upgrade, backup and restore readiness within the documented scope.

    The recorded rehearsals cover both supported IAM backend types: object storage and etcd 3.6.13, using three sites and six Server processes. They exercised coordinated upgrade, revocation convergence after an offline site returned, restart, complete backup/restore, and deliberate credential reissue. The bounded rollback procedure reconciled post-backup revocations before restoring the old binary/backend; retired credentials remained denied and replacement credentials worked on all six processes.

    These results retain their original identities: Server 20260903 (9b11dc9469e6) and candidate 70c7ec4a9fbf, whose runtime source matches 40220bd836cb. They have not been rerun or relabeled as acceptance of a later build.

    The English runbook and Chinese runbook are integrated through website #25 and #30; this immutable source records the accepted procedure and limits. Server release notes are merged through #205 and #208.

    The startup STS write/authentication failures remain documented; their exact cause was not isolated. The procedure requires actual signed credential and write/read canaries on every process before reopening access. Health endpoints or elapsed time alone are insufficient, and arbitrary pre-restore STS session preservation is not promised. HA etcd, external IdP/KMS, clock skew and production-specific snapshot/restore behavior require validation for the selected deployment.

    Final-candidate revalidation, including the startup observations, remains in #203; #202 owns the final release/component identities. Public-page readback from the review environment still returned HTTP 403, so public delivery verification also remains outstanding in release acceptance despite the successful Pages deployment check. This closes the readiness work; no production upgrade or restore is claimed by this closure.

  10. moved this from Backlog to Done in Siloon Sep 16, 2026
  11. added this to the 20260916 milestone on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationmaintenance

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions