Skip to content

fix: scope Redis control plane keys by deployment ID#742

Draft
alexluong wants to merge 1 commit intomainfrom
fix/680-scope-control-plane-keys
Draft

fix: scope Redis control plane keys by deployment ID#742
alexluong wants to merge 1 commit intomainfrom
fix/680-scope-control-plane-keys

Conversation

@alexluong
Copy link
Collaborator

Summary

Fixes #680

Control plane keys (outpostrc, .outpost:migration:lock, outpost:migration:*) were not prefixed with DEPLOYMENT_ID, causing collisions when multiple deployments share the same Redis instance.

  • Rename outpostrc (hash) → outpost:installation_id (string), prefixed with {deploymentID}: when set
  • Rename .outpost:migration:lock.outpost:migration_lock, prefixed with {deploymentID}: when set
  • Prefix outpost:migration:{name} status keys with {deploymentID}: when set
  • Update migration runner, migration CLI, and installation logic
  • Add deployment-scoped tests

Includes scripts/issue-680/ with a data migration script and manual QA test cases.

TODO

  • Manual QA (see scripts/issue-680/TEST_CASES.md)

🤖 Generated with Claude Code

Control plane keys (installation ID, migration lock, migration status)
were not prefixed with DEPLOYMENT_ID, causing collisions when multiple
deployments share the same Redis instance.

Key renames:
- outpostrc (hash) → outpost:installation_id (string)
- .outpost:migration:lock → .outpost:migration_lock
- outpost:migration:{name} → unchanged (now prefixed when scoped)

All keys are prefixed with {deploymentID}: when DEPLOYMENT_ID is set,
matching the existing pattern used by tenant store, alert store, etc.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
outpost-docs Ready Ready Preview, Comment Mar 10, 2026 7:09pm
outpost-website Ready Ready Preview, Comment Mar 10, 2026 7:09pm

Request Review

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.

Bug: Redis control plane keys not deployment-scoped

1 participant