Post

Retiring stale secret-seeding instructions and replacing "Ready" with a timestamp check

Retiring stale secret-seeding instructions and replacing "Ready" with a timestamp check

My Octelium and Cordium secrets docs still described an installation that no longer exists, and the acceptance step I told myself to run could pass without proving anything about current permissions. This push retires the obsolete bootstrap and credential-seeding instructions, marks the old procedures as historical, and replaces a vague readiness check with one that compares a refresh timestamp against the time I actually applied a permission boundary.

Marking the former Octelium installation as history instead of deleting it

The private Octelium and Cordium runtimes are gone, but the catalog, bootstrap, credential-seeding and client commands in those pages are still accurate descriptions of what the retired install looked like. Rather than erase that context, I annotated the affected sections so a reader knows the procedure documents a former installation and should not be replayed on the current cluster. One specific instruction survives the retirement: leaving the retired SSM token placeholders declared on fresh installs, with a pointer to the secret reference matrix for the authoritative list of roles and retained slots. Keeping the historical commands visible while labelling them is a deliberate choice, because the alternative is a reader rediscovering half-remembered steps from commit history.

Checking refresh time against the boundary apply, not just the Ready condition

The old acceptance step read the Ready condition on an ExternalSecret and looked for a new refresh time within a few minutes, which conflated two different questions. A reader using OnChange will happily report success from an earlier reconcile, and a healthy ClusterSecretStore does not prove the current KMS permissions were exercised. The new procedure starts by recording the successful boundary apply time in UTC, notes that the public-tunnel reader uses the shared aws-ssm ClusterSecretStore with a five-minute refresh, and then reads both the Ready status and the refresh timestamp in one query. The pass condition is now explicit: Ready must be True, and the refresh time must be strictly later than the boundary apply. If that comparison fails, the reader did not actually re-fetch, so the acceptance evidence is absent rather than negative.

Why stale documentation deserves the same scrutiny as stale alert rules

These edits came out of the same instinct that made me narrow an over-broad backup alert: a check is only worth its noise if it fails when the thing it claims to observe is broken. Documentation rots in a similar way, because instructions that were once correct keep looking authoritative long after the resource they describe is retired. The pattern I want to reuse is small. When a runtime is decommissioned, label its procedures as historical rather than letting them silently age. When a secret reader is validated, record the moment the permission boundary changed and require a refresh after that instant. Any team running ExternalSecrets with OnChange refresh policies against cloud secret stores can adopt the timestamp comparison directly, and anyone pruning a decommissioned platform can leave the archaeology in place while making the retirement unmissable.

This post is licensed under CC BY 4.0 by the author.