Add --no-secrets-in-config command line option#18092
Merged
Merged
Conversation
fb2ffff to
f58ecc5
Compare
devonh
reviewed
Feb 24, 2025
Member
devonh
left a comment
There was a problem hiding this comment.
Overall the changes look good. Just a few small things I think need adjusting.
devonh
approved these changes
Feb 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
--no-secrets-in-configcommand line option that makes Synapse reject all configurations containing keys with in-line secret values. Currently this rejectsturn_shared_secretregistration_shared_secretmacaroon_secret_keyrecaptcha_private_keyrecaptcha_public_keyexperimental_features.msc3861.client_secretexperimental_features.msc3861.jwkexperimental_features.msc3861.admin_tokenform_secretredis.passwordworker_replication_secretTip
Hey, you! Yes, you! 😊 If you think this list is missing an item, please leave a comment below. Thanks :)
This PR complements my other PRs1 that add the corresponding
_pathvariants for this class of config options. It enables admins to enforce a policy of no secrets in configuration files and guards against accident and malice.Because I consider the flag
--no-secrets-in-configto be security-relevant, I did not add a corresponding--secrets-in-configflag; this way, if Synapse command line options are appended at various places, there is no way to weaken the once-set setting with a succeeding flag.Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.(run the linters)
Footnotes
#17690, #17717, #17983, #17984, #18004, #18090 ↩