Skip to content

Copy Rails credential keys into Conductor worktrees on setup#5

Merged
CasJam merged 2 commits into
mainfrom
bc/copy-rails-credential-keys
May 11, 2026
Merged

Copy Rails credential keys into Conductor worktrees on setup#5
CasJam merged 2 commits into
mainfrom
bc/copy-rails-credential-keys

Conversation

@CasJam
Copy link
Copy Markdown
Contributor

@CasJam CasJam commented May 11, 2026

Summary

  • Conductor worktrees don't inherit the gitignored config/credentials/*.key files from the main repo, so Rails boots without its encryption keys.
  • The setup script in conductor.json now resolves the main repo via git rev-parse --git-common-dir and copies any of development.key, staging.key, production.key, test.key that exist there into the worktree before bin/setup runs. Missing keys are silently skipped.

Test plan

  • Spin up a new Conductor worktree and confirm the setup output lists the expected keys being copied.
  • Confirm Rails boots in the new worktree without MissingKeyError.

🤖 Generated with Claude Code

Brian Casel and others added 2 commits May 11, 2026 10:04
Conductor worktrees don't get the gitignored config/credentials/*.key
files, so Rails boots without its encryption keys. The setup script now
resolves the main repo via `git rev-parse --git-common-dir` and copies
any of development/staging/production/test keys that exist there.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Fixes typecheck CI failure (TS6133).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CasJam CasJam merged commit 9ba3c9c into main May 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