-
Notifications
You must be signed in to change notification settings - Fork 485
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
feat(security)!: Switch Consul's default_policy to deny #3402
feat(security)!: Switch Consul's default_policy to deny #3402
Conversation
- turn on Consul's "deny" default_policy - use more restrict policy rules for Consul's agent token Note: After this switch is on, Consul's GUI access like http://localhost:8500/ui will be automatically locked with authentication required. Any direct accesses to Consul require a legit token. Closes: edgexfoundry#3256 Signed-off-by: Jim Wang <yutsung.jim.wang@intel.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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
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
@jim-wang-intel , should this be in Draft until we are ready to merge? I.e TAF changes, in places etc... |
I am ok with that OR we can take fail-fast approach and let the TAF tests failed and they can fix against it. @cloudxxx8 and @cherrycl what are your thoughts? |
Naw, also this is dependent on your other PR? |
No, this one doesn't depend on other PR. |
Hi @jim-wang-intel , @cloudxxx8 , @lenny-intel , @cherrycl , |
@dipshirajput, the default deny policy is needed to enable ACL enforcement in Consul. Can you restart this discussion in the EdgeX Slack in the #security channel or in https://github.com/edgexfoundry/community/discussions ? I don't want to help you debug your issue in the pull request comments. |
Note: After this switch is on, Consul's GUI access like http://localhost:8500/ui
will be automatically locked with authentication required. Any direct accesses
to Consul require a legit token.
Closes: #3256
Signed-off-by: Jim Wang yutsung.jim.wang@intel.com
PR Checklist
Please check if your PR fulfills the following requirements:
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/master/.github/Contributing.md.
What is the current behavior?
Currently the default policy of Consul's server agent is "allow"
Issue Number: #3256
What is the new behavior?
Switch the default policy of Consul to "deny"
Does this PR introduce a breaking change?
[x ] Yes
No
Note: After this switch is on, Consul's GUI access like http://localhost:8500/ui
will be automatically locked with authentication required. Any direct accesses
to Consul require a legit token.
New Imports
Specific Instructions
Are there any specific instructions or things that should be known prior to reviewing?
Other information