feat(secrets): create user-declared k8s Secrets from spec env/file sources#754
Merged
Conversation
…ources Six stdlib unittest cases that verify the upcoming _create_user_secrets method on K8sDeployer. Covers: env-source happy path, file-source happy path, missing env error message, missing file error message, legacy list-form skipped (no creation), 409 -> replace idempotency. Tests fail with AttributeError until Task 2 lands the method. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Extends the spec.secrets block to accept a keyed-dict form where each key declares an env-var or file source. SO resolves the values at deploy_start (inside up(), after _setup_cluster, before pod/job creation) and creates one Opaque k8s Secret per spec entry in the stack's own namespace. The legacy list form is preserved unchanged: reference-only, optional=True, operator-managed. Source design: docs/superpowers/specs/2026-05-21-laconic-so-user-secrets-design.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
spec.secretsto accept a keyed-dict form where each entry declares an env or file source; SO resolves and creates one Opaque k8s Secret per entry at deploy start