Skip to content

feat(#112): add reveal option to snapshot GET for env var inspection#141

Merged
dennisonbertram merged 2 commits intomainfrom
issue-112-snapshot-reveal
Mar 22, 2026
Merged

feat(#112): add reveal option to snapshot GET for env var inspection#141
dennisonbertram merged 2 commits intomainfrom
issue-112-snapshot-reveal

Conversation

@dennisonbertram
Copy link
Owner

Summary

  • Adds ?reveal=true query parameter to GET /v1/snapshots/{snapshotID}
  • When reveal=true: decrypts and returns env var values via RestoreEnvVars()
  • Default: returns env var keys with ******** masked values via new GetEnvKeys()
  • AUDIT logging on env var reveal (same pattern as service env reveal)

Closes #112

Test plan

  • Store-level tests: GetEnvKeys success, empty, wrong tenant
  • API-level tests: default masked, reveal=true, no env vars, not found
  • go build ./... passes
  • go test ./... passes (pre-existing flaky test unrelated)

🤖 Generated with Claude Code

dennisonbertram and others added 2 commits March 22, 2026 07:31
Add ?reveal=true query parameter to GET /v1/snapshots/{snapshotID} that
decrypts and returns the snapshot's env vars. Without the parameter,
env var keys are returned with masked "********" values. Includes AUDIT
logging when env vars are revealed, matching the pattern used by the
service env GET endpoint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dennisonbertram dennisonbertram merged commit 0b4d4e2 into main Mar 22, 2026
1 check failed
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.

feat(snapshots): add reveal option to snapshot GET endpoint for env var inspection

1 participant