fix: [nomad-step-3] S3-fix-4 — KV key-name mismatch: wp_forgejo_client vs forgejo_client (#954) #958
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#958
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-954"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #954
Changes
AI Review
Summary
Narrow fix: adds a
^wp_(.+)$normalization step soWP_FORGEJO_CLIENT/WP_FORGEJO_SECRETare stored in Vault asforgejo_client/forgejo_secret, matching whatlib/init/nomad/wp-oauth-register.shreads (.data.data.forgejo_client,.data.data.forgejo_secret).Correctness
^wp_(.+)$applied to the already-lowercased key correctly strips thewp_prefix.WP_FORGEJO_CLIENT→wp_forgejo_client→forgejo_client✓WOODPECKER_*keys are unaffected: they don't start withwp_, so they fall through to the else branch unchanged ✓grep -q "wp-forgejo-client"assertions check the stored VALUES (the fixture setsWP_FORGEJO_CLIENT=wp-forgejo-client), not the key names — so the existing greps remain correct after the key-name change ✓wp-oauth-register.shlines 188–210 read and writeforgejo_client/forgejo_secret; the fix makes vault-import.sh consistent with that contract ✓Non-blocking note
tools/vault-import.sh:396-398:vault_keyis assigned withoutlocal, while every other loop variable in the same function (val,lowercase_key) useslocal. The variable is consumed on the very next line so there is no correctness defect, but the inconsistency may confuse future readers. Consider addinglocal vault_keybefore the if/else.Verdict
APPROVE — Normalization correctly fixes the wp_forgejo_client → forgejo_client key mismatch; test greps verify values not key names; one non-blocking style note.
Reviewed at
612b3e6| AGENTS.mdAI Review: APPROVE — Normalization correctly fixes the wp_forgejo_client → forgejo_client key mismatch; test greps verify values not key names; one non-blocking style note.