Skip to content

docs(soak): the SVID-rotation signal is the agent's rotated counter, not the originator SDS version gauges (#992) - #1010

Merged
bpalermo merged 1 commit into
mainfrom
docs/992-svid-rotation-signal
Sep 27, 2026
Merged

bpalermo merged 1 commit into
mainfrom
docs/992-svid-rotation-signal

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Finding

  • envoy_sds_spiffe_aether_internal_ns_<ns>_sa_<sa>_version is bimodal per node over an 8 h soak.
  • Originating-client identities (aether_agent, prober, mp_dialer, default, authz_canary, uds_client) change 258–283 times, in bursts of ~12 at every svc roll; every other identity moves 5–18 times, which is its real rotations.
  • Cause: the per-connection cert selector's own SotW SDS stream (fix(agent): give the certificate selector its own SDS stream (#842) #865) re-serves the secret on every snapshot bump. Envoy keys SDS stats by secret NAME, so the static ADS subscription and the selector's subscription both bump the same sds.<name>.version gauge.
  • The trustworthy signal is aether_agent_spire_svid_updates_total{aether_spire_update="rotated"}. It matched the pod SVID rotated log lines exactly on 2026-09-19 and 2026-09-27.

Why no code change

The two subscriptions can't be split into separate stats without renaming the SDS resources, and that would be a protocol-visible change to fix a metric's name. We already have a counter that gives the right answer, so this PR documents it instead.

What changed

Closes #992

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…not the originator SDS version gauges (#992)

The per-connection cert selector's own SotW SDS stream (#865) re-serves an
originating identity's secret on every snapshot bump, and Envoy keys SDS stats
by secret name, so envoy_sds_*_version over-reads rotations ~50x for those
identities. Name aether_agent_spire_svid_updates_total{update="rotated"} as the
signal in the soak README and runbook, with the PromQL and the why.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit fea9dce into main Sep 27, 2026
24 checks passed
@bpalermo
bpalermo deleted the docs/992-svid-rotation-signal branch September 27, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spire/xds: the originating-client SDS version gauges change on every svc roll (~260/8h) — they cannot be read as SVID rotation

1 participant