Skip to content

fix(stacks): a part added to an installed stack gets its Secret made - #331

Merged
reachjalil merged 3 commits into
pre-releasefrom
fix/stack-new-part-secret
Dec 5, 2026
Merged

reachjalil merged 3 commits into
pre-releasefrom
fix/stack-new-part-secret

Conversation

@reachjalil

Copy link
Copy Markdown
Member

What

When a stack is installed and the setup file adds a part that keeps a Secret of its own, diff and apply treated the missing Secret as gone, with its rotate: never keys 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 in apply honors 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:

0.18.76 is installed and the Secret openwork-runner is gone, and with it HEADLESS_GRANT_KEY. … differently apply does not make another.

openwork-runner had never existed.

Verified

  • go test ./cmd/differently/, including the new TestAPartAddedLaterGetsItsSecretMade. 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 verify in full (CI runs it).

🤖 Generated with Claude Code

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>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI passed at 533f6ed.

…part-secret

Signed-off-by: Jalil <reachjalil@gmail.com>

# Conflicts:
#	CHANGELOG.md

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI passed at 12edc9f.

Signed-off-by: Jalil <reachjalil@gmail.com>

# Conflicts:
#	CHANGELOG.md

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI passed at 42e32c5.

@reachjalil
reachjalil merged commit 03bc7b3 into pre-release Dec 5, 2026
30 checks passed
@reachjalil
reachjalil deleted the fix/stack-new-part-secret branch December 5, 2026 02:07
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