-
Notifications
You must be signed in to change notification settings - Fork 484
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): implement secrets-config proxy tls #2930
feat(security): implement secrets-config proxy tls #2930
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2930 +/- ##
==========================================
+ Coverage 40.31% 40.63% +0.32%
==========================================
Files 170 170
Lines 14036 14156 +120
==========================================
+ Hits 5658 5752 +94
- Misses 8010 8026 +16
- Partials 368 378 +10
Continue to review full report at Codecov.
|
Ok. The code is uploading the cert but not making it active.
should output the TLS cert that we uploaded. It is currently returning the default cert. Looks like the SNIs parameter is required and it won't take '*' |
Add implementation for secrets-config: proxy tls subcommand It uploads the user-provided Kong TLS certificate/key pair to proxy server. Closes: edgexfoundry#2866 Signed-off-by: Jim Wang <[email protected]>
Add SNIS association with the user specified certificates. Also addressed PR feedback. Signed-off-by: Jim Wang <[email protected]>
0b250cd
to
aab1748
Compare
Added SNIS association, now the command line: |
To test this locally on docker-based Kong, do the following steps:
|
Please update README.md (in cmd/secrets-config folder) with new command line option. |
Add user's guide documentation for a new optional argument of proxy tls subcommand: --snis [list of names in comma separated] Signed-off-by: Jim Wang <[email protected]>
With Bryon's suggestion not using /certificates API, now it changes to /snis and only deletes those certificates associated with the snis names, including the buitlin ones. Signed-off-by: Jim Wang <[email protected]>
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
User-defined structs defined locally and are used to do json unmarshal so that only decoding once Addressed per Lenny's request for changes. Signed-off-by: Jim Wang <[email protected]>
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
* feat(security): implement secrets-config proxy tls Add implementation for secrets-config: proxy tls subcommand It uploads the user-provided Kong TLS certificate/key pair to proxy server. Closes: edgexfoundry#2866 Signed-off-by: Jim Wang <[email protected]>
Add implementation for secrets-config: proxy tls subcommand
It uploads the user-provided Kong TLS certificate/key pair to proxy server.
Closes: #2866
Signed-off-by: Jim Wang [email protected]
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?
Issue Number: #2866
What is the new behavior?
Added new implementation of proxy tls into secrets-config to upload the kong tls cert
Does this PR introduce a breaking change?
New Imports
Specific Instructions
Are there any specific instructions or things that should be known prior to reviewing?
Other information