Skip to content

Rebrand: link the secret refs when the product keeps the baseline's name - #11

Merged
vijayakrishnans merged 1 commit into
mainfrom
claude/secret-ref-same-name
Nov 11, 2026
Merged

vijayakrishnans merged 1 commit into
mainfrom
claude/secret-ref-same-name

Conversation

@vijayakrishnans

Copy link
Copy Markdown
Contributor

A console build that kept the baseline's own name (vijayakrishnans/edge-middleware-recipes, run 43017066479) shipped:

BASIC_AUTH_USER: "secret://ws_CHANGE_ME/edge-middleware-recipes/{{ .environment }}/BASIC_AUTH_USER"

and both deploy lanes failed before their first step: Ref workspace "ws_CHANGE_ME" does not name this run's workspace. intent.yaml had the right workspace.

Cause. rebrand.mjs holds every value it has already written (the guarded list) before its rules run, so a later pass can't rewrite them. reponame is in that list. When reponame === baseline.slug, every bare edge-middleware-recipes is held, including the project half of the secret ref, so the secret://<ws>/<slug>/ rule never matches. A dry run with the build's own .rebrand/values.json reported only the subdomain rule.

Fix. The secret-ref rewrite runs before the guard. It rewrites any workspace segment to the target, so re-running it is idempotent (a second pass over the build's values touches 0 files).

Test. testing/rebrand.test.sh adds the same-name case over three passes. It fails on main with exactly the shipped ws_CHANGE_ME and passes with the fix. rebrand, manifest, phases, coverage, retouch, bootstrap-defer, placement and leak all pass locally. Records risk EM-N.

After merge: tag baseline-v7 and bump the orun-cloud registry row.

🤖 Generated with Claude Code

The rebrand holds every value it has already written before its rules
run. With reponame equal to the baseline slug, that held the project half
of secret://ws_CHANGE_ME/edge-middleware-recipes/... as well, so the
secret-ref rule never matched and the workspace stayed ws_CHANGE_ME. A
console build that kept the name failed secret resolution on both deploy
lanes (vijayakrishnans/edge-middleware-recipes, run 43017066479).

The secret-ref rewrite now runs before the guard; it is idempotent.
testing/rebrand.test.sh covers the same-name product over three passes.
Records risk EM-N.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T12:16:13.403369Z e1391f0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vijayakrishnans
vijayakrishnans merged commit 68b2db8 into main Nov 11, 2026
5 checks passed
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