Skip to content

fix(caddy): warn about the published development keys outside the playground - #1404

Merged
dunglas merged 1 commit into
mainfrom
fix/dev-key
Sep 24, 2026
Merged

dunglas merged 1 commit into
mainfrom
fix/dev-key

Conversation

@dunglas

@dunglas dunglas commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

The documentation used !ChangeThisMercureHubJWTSecretKey! in production examples, so hubs following it accepted tokens anyone can forge.

Changes

  • The Caddy module logs a warning when !ChangeThisMercureHubJWTSecretKey! or !ChangeMe! is configured as a verification key without playground. Refusing them would stop existing hubs from starting.
  • Production examples generate the keys with openssl rand -base64 32.

…yground

The documentation used !ChangeThisMercureHubJWTSecretKey! in production
examples, so hubs following it accepted tokens anyone can forge. Refusing
them would stop existing hubs from starting.
@dunglas dunglas changed the title fix(caddy): refuse the published development keys outside the playground fix(caddy): warn about the published development keys outside the playground Sep 24, 2026
@dunglas
dunglas merged commit c944016 into main Sep 24, 2026
47 checks passed
@dunglas
dunglas deleted the fix/dev-key branch September 24, 2026 10:08
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