Repository navigation
fix(stacks): a part added to an installed stack gets its Secret made - #331
Merged
Merged
Conversation
A part's Secret the installed release never read is new, not lost: its never-replace keys are generated. Found adding OpenWork's runner to a running OpenWork in a live rehearsal on GKE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jalil <reachjalil@gmail.com>
…part-secret Signed-off-by: Jalil <reachjalil@gmail.com> # Conflicts: # CHANGELOG.md
Signed-off-by: Jalil <reachjalil@gmail.com> # Conflicts: # CHANGELOG.md
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.
What
When a stack is installed and the setup file adds a part that keeps a Secret of its own,
diffandapplytreated the missing Secret as gone, with itsrotate: neverkeys lost, and refused the stack. A part's Secret that no value of the installed release names (helm get values) was never read by the chart, so its keys are now generated. The plan records those Secrets, and the write-time guard inapplyhonors the record. A part's Secret that the release did read and that has disappeared is still refused, as before.Why
In a live rehearsal on GKE, adding
parts: [gateway, runner, workbot, computers]to a running OpenWork 0.18.76 gave:openwork-runnerhad never existed.Verified
go test ./cmd/differently/, including the newTestAPartAddedLaterGetsItsSecretMade. It installs the notes stack, adds its runner part with a never-replace key, and checks that diff and apply go ahead and write the Secret. It then deletes that Secret and checks that diff refuses it as gone.go vet ./cmd/differently.Not run:
make verifyin full (CI runs it).🤖 Generated with Claude Code