More secure default server setting#208
Open
binford2k wants to merge 2 commits intoOpenVoxProject:mainfrom
Open
More secure default server setting#208binford2k wants to merge 2 commits intoOpenVoxProject:mainfrom
binford2k wants to merge 2 commits intoOpenVoxProject:mainfrom
Conversation
2b78bd8 to
8dc2b93
Compare
Contributor
Author
|
fwiw, I'm not actually happy with this solution. It means that in a completely serverless workflow, you'll have spurious warnings in the logs like such. I'll try to find a better way later, after we decide if this is a good idea or not. |
Contributor
Author
|
I moved the check and warnings to the http service so it only screams if you actually use it. This avoids, for example, the spurious deprecation message when running |
Contributor
Author
|
if people approve of this approach, I'm happy to get started on fixing the spec tests. |
Contributor
|
@binford2k yes this makes sense to me |
Under some fairly obscure conditions, defaulting the server setting to 'puppet' can be a security concern. Because the worst case scenario involves a user accidentally running `puppet agent -t` on an untrusted network, this PR removes the default completely when non-root. Otherwise, it just prints a deprecation warning. The check and warnings are generated at the http service so that it only screams if you actually attempt to use it. This avoids, for example, the spurious deprecation message when running `puppet config set` to set this in the first place. Fixes voxpupuli/security-tracking#22
Co-authored-by: Haroon Rafique <haroon.rafique@gmail.com>
9c47f71 to
8a79383
Compare
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.
Under some fairly obscure conditions, defaulting the server setting to
'puppet' can be a security concern. Because the worst case scenario
involves a user accidentally running
puppet agent -ton an untrustednetwork, this PR removes the default completely when non-root.
Otherwise, it just prints a deprecation warning.
Fixes https://github.com/voxpupuli/security-tracking/issues/22