Skip to content

fix(009): strip shell quotes from RAUTHY_API_KEY in the pod Secret#59

Merged
bartekus merged 1 commit into
mainfrom
011-rauthy-api-key-unquote
Jul 22, 2026
Merged

fix(009): strip shell quotes from RAUTHY_API_KEY in the pod Secret#59
bartekus merged 1 commit into
mainfrom
011-rauthy-api-key-unquote

Conversation

@bartekus

Copy link
Copy Markdown
Contributor

The SOPS value for RAUTHY_API_KEY carried literal single quotes copied from a shell-style env line. The backend's rauthy admin API calls (spec 011 §5.1 GitHub-identity resolution) therefore sent an unknown key name and got 404 no-rows-returned, which would have failed acceptance item 1 (populated githubUserId/githubLogin) on the live walk.

Caught during 011 acceptance pre-flight; the unquoted value was verified to authenticate (HTTP 200, read-users scope) against live rauthy before re-encrypting. Value-only change inside the encrypted blob; the key set (34) and catalog are unchanged.

After merge: Flux applies the Secret, then the pod gets deleted (not rollout-restarted) so envFrom picks up the clean value.

Spec-Drift-Waiver: value-only fix inside the encrypted statecraft-secrets blob; no design change to spec 010's secret catalog or key set.

The SOPS value carried literal single quotes copied from a shell-style
env line, so the backend's rauthy admin calls (spec 011 §5.1 identity
resolution) sent an unknown key name and got 404 no-rows-returned.
Verified the unquoted value authenticates (200) against live rauthy
before re-encrypting. Value-only change inside the encrypted blob.
@bartekus
bartekus merged commit c90dc58 into main Jul 22, 2026
2 checks passed
@bartekus
bartekus deleted the 011-rauthy-api-key-unquote branch July 22, 2026 22:02
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.

1 participant