Skip to content

TAP5-2834: Fail startup in production mode on weak/empty HMAC passphrase - #63

Merged
benweidig merged 2 commits into
masterfrom
TAP5-2834
Jul 19, 2026
Merged

TAP5-2834: Fail startup in production mode on weak/empty HMAC passphrase#63
benweidig merged 2 commits into
masterfrom
TAP5-2834

Conversation

@benweidig

Copy link
Copy Markdown
Contributor

This PR introduces a more strict HMAC passphrase validation, requiring a length of at least 20 characters.

In PRODUCTION, this is now a hard failure, preventing startup.

In NON-PRODUCTION, it remains a "loud" error, logging to level "error" and using the AlertManager to display the message.
The fallback passphrase is now a random UUID instead of the app package name.

Furthermore, the tests were converted from Groovy to Java.

As tests run in production mode by default, a valid passphrase must be
present.
@benweidig benweidig added this to the v5.10.0 milestone Jun 28, 2026
@benweidig
benweidig requested a review from thiagohp June 28, 2026 08:09
@benweidig
benweidig merged commit 72acfbd into master Jul 19, 2026
0 of 4 checks passed
@benweidig
benweidig deleted the TAP5-2834 branch July 19, 2026 06:02
benweidig added a commit that referenced this pull request Jul 19, 2026
…ase (#63)

* Hmac passphrase rules were improved (incl. min length of 20)
* Prevent startup in production mode if weak/empty passphrase
* PageTesterModule sets HMAC passphrase to not fail during testing
* ClientDataEncoderImplTest: Groovy -> Java
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.

2 participants