-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display a security warning when enable_scripts_checks is enabled without security #7437
Display a security warning when enable_scripts_checks is enabled without security #7437
Conversation
cc @i0rek |
0c9d411
to
65f8ff7
Compare
LGTM |
4b42260
to
0fcd120
Compare
unstable integration test, force-pushing to fix... |
8c6c585
to
3cc86a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this warning a lot! Could you add a test to demonstrate it is working as intended?
…out security In order to enforce a bit security on Consul agents, add a new method in agent to highlight possible security issues. This does not return an error for now, but might in the future. For now, it detects issues such as: https://www.hashicorp.com/blog/protecting-consul-from-rce-risk-in-specific-configurations/ This would display this kind of messages: ``` 2020-03-11T18:27:49.873+0100 [ERROR] agent: [SECURITY] issue: error="using enable-script-checks without ACLs and without allow_write_http_from is DANGEROUS, use enable-local-script-checks instead see https://www.hashicorp.com/blog/protecting-consul-from-rce-risk-in-specific-configurations/" ```
3cc86a3
to
98ef7b0
Compare
@i0rek DONE, added unit test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In order to enforce a bit security on Consul agents, add a new method in agent
to highlight possible security issues.
This does not return an error for now, but might in the future.
For now, it detects issues such as:
https://www.hashicorp.com/blog/protecting-consul-from-rce-risk-in-specific-configurations/
This would display this kind of messages: