Skip to content
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: create optional kong certificate config options #2940

Merged
merged 1 commit into from
Dec 11, 2020
Merged

feat: create optional kong certificate config options #2940

merged 1 commit into from
Dec 11, 2020

Conversation

beaufrusetta
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

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?

Values for CertPath, CertFilePath, and KeyFilePath are required in the configuration.toml.

Issue Number:

#2928

What is the new behavior?

The kong config options for CertPath, CertFilePath, and KeyFilePath
in configuration.toml are now optional. By default, those values
are now empty. I also cleaned up a single quote situation in the
token provider configuration.toml.

Does this PR introduce a breaking change?

  • Yes
  • No

New Imports

  • Yes
  • No

Specific Instructions

Are there any specific instructions or things that should be known prior to reviewing?

Other information

internal/security/secretstore/init.go Outdated Show resolved Hide resolved
internal/security/secretstore/init.go Outdated Show resolved Hide resolved
lenny-goodell
lenny-goodell previously approved these changes Dec 11, 2020
Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lenny-goodell
Copy link
Member

@beaufrusetta , please rebase

@beaufrusetta
Copy link
Contributor Author

@beaufrusetta , please rebase

Rebase complete.

@codecov-io
Copy link

codecov-io commented Dec 11, 2020

Codecov Report

Merging #2940 (49e6870) into master (f9701ca) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2940      +/-   ##
==========================================
- Coverage   40.66%   40.64%   -0.03%     
==========================================
  Files         170      170              
  Lines       14156    14163       +7     
==========================================
  Hits         5756     5756              
- Misses       8023     8030       +7     
  Partials      377      377              
Impacted Files Coverage Δ
internal/security/secretstore/init.go 3.84% <0.00%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9701ca...49e6870. Read the comment docs.

The kong config options for CertPath, CertFilePath, and KeyFilePath
in configuration.toml are now optional. By default, those values
are now empty. I also cleaned up a single quote situation in the
token provider configuration.toml.

fixes: #2928

Signed-off-by: Beau Frusetta <beau.frusetta@intel.com>
@sonarcloud
Copy link

sonarcloud bot commented Dec 11, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@beaufrusetta
Copy link
Contributor Author

Please see latest update - trimmed concatenated config values. @lenny-intel @jim-wang-intel @bnevis-i

Copy link
Contributor

@jim-wang-intel jim-wang-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lenny-goodell lenny-goodell merged commit c80d9cd into edgexfoundry:master Dec 11, 2020
jim-wang-intel pushed a commit to jim-wang-intel/edgex-go that referenced this pull request Dec 15, 2020
The kong config options for CertPath, CertFilePath, and KeyFilePath
in configuration.toml are now optional. By default, those values
are now empty. I also cleaned up a single quote situation in the
token provider configuration.toml.

fixes: edgexfoundry#2928

Signed-off-by: Beau Frusetta <beau.frusetta@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defeature Kong external TLS generated from local CA
5 participants