Skip to content

Remove public relay signing key fallback - #6729

Open
jmecom wants to merge 1 commit into
mainfrom
security/remove-public-relay-fallback-key
Open

Remove public relay signing key fallback#6729
jmecom wants to merge 1 commit into
mainfrom
security/remove-public-relay-fallback-key

Conversation

@jmecom

@jmecom jmecom commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Require BUZZ_RELAY_PRIVATE_KEY on every relay startup and remove the shared public fallback key completely.

For local development, just bootstrap now generates a random key once in the gitignored .env file. Re-running bootstrap preserves that key, so relay-authored events retain the same identity across restarts. The local relay recipes reload .env, while isolated CI and E2E launchers pass explicit per-run keys.

Startup fails immediately when the key is missing or invalid, before connecting to Postgres or Redis. Deployed relays continue to receive their stable key from the existing chart-managed secret.

Validated with:

  • ./scripts/test-ensure-local-relay-key.sh
  • cargo test -p buzz-relay --bin buzz-relay
  • cargo clippy -p buzz-relay --bin buzz-relay -- -D warnings
  • cargo fmt --all -- --check
  • shellcheck scripts/ensure-local-relay-key.sh scripts/test-ensure-local-relay-key.sh

Signed-off-by: Jordan Mecom <jm@squareup.com>
@jmecom
jmecom force-pushed the security/remove-public-relay-fallback-key branch from 3179fc1 to ceb38fd Compare August 24, 2026 22:25
@jmecom
jmecom marked this pull request as ready for review August 24, 2026 22:46
@jmecom
jmecom requested a review from a team as a code owner August 24, 2026 22:46
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