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

refactor: Use new enhanced SecretProvider #2942

Merged
merged 5 commits into from
Dec 21, 2020

Conversation

lenny-goodell
Copy link
Member

@lenny-goodell lenny-goodell commented Dec 11, 2020

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?

Currently use SecretProvider from go-mod-bootstrap that is only for edgex-go services

Issue Number: #2888

What is the new behavior?

Use new reworked/enhanced SecretProvider from go-mod-bootstrap that is for all services
Includes new InsecureSecrets capability to pull from configuration when Vault is not being used.

This PR is dependent on the following PRs:
edgexfoundry/go-mod-bootstrap#134
edgexfoundry/go-mod-secrets#71

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

jim-wang-intel
jim-wang-intel previously approved these changes Dec 11, 2020
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 force-pushed the SecretProvider branch 2 times, most recently from a1147e7 to 9460977 Compare December 20, 2020 18:02
@lenny-goodell lenny-goodell marked this pull request as ready for review December 20, 2020 18:14
Signed-off-by: Lenny Goodell <[email protected]>
This new version was brought in by testify v1.6.1

Signed-off-by: Lenny Goodell <[email protected]>
@codecov-io
Copy link

codecov-io commented Dec 20, 2020

Codecov Report

Merging #2942 (514cffb) into master (bbb161a) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2942      +/-   ##
==========================================
- Coverage   39.99%   39.99%   -0.01%     
==========================================
  Files         157      157              
  Lines       13558    13559       +1     
==========================================
  Hits         5423     5423              
- Misses       7816     7817       +1     
  Partials      319      319              
Impacted Files Coverage Δ
internal/core/command/main.go 0.00% <0.00%> (ø)
internal/core/data/init.go 0.00% <0.00%> (ø)
internal/core/data/main.go 0.00% <0.00%> (ø)
internal/core/metadata/main.go 0.00% <0.00%> (ø)
internal/security/proxy/main.go 0.00% <0.00%> (ø)
internal/support/notifications/main.go 0.00% <0.00%> (ø)
internal/support/scheduler/main.go 0.00% <0.00%> (ø)

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 bbb161a...514cffb. Read the comment docs.

cmd/core-command/Attribution.txt Show resolved Hide resolved
cmd/core-command/res/configuration.toml Show resolved Hide resolved
internal/core/data/init.go Show resolved Hide resolved
internal/security/proxy/main.go Outdated Show resolved Hide resolved
internal/support/notifications/main.go Outdated Show resolved Hide resolved
internal/support/scheduler/main.go Outdated Show resolved Hide resolved
internal/core/data/main.go Outdated Show resolved Hide resolved
internal/core/metadata/main.go Outdated Show resolved Hide resolved
@jim-wang-intel jim-wang-intel added the enhancement New feature or request label Dec 21, 2020
@sonarqubecloud
Copy link

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
31.1% 31.1% Duplication

Copy link
Member

@cloudxxx8 cloudxxx8 left a comment

Choose a reason for hiding this comment

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

LGTM

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 other than issues brought by Cloud @cloudxxx8

cmd/core-command/Attribution.txt Show resolved Hide resolved
@lenny-goodell lenny-goodell merged commit c8e0122 into edgexfoundry:master Dec 21, 2020
@lenny-goodell lenny-goodell deleted the SecretProvider branch December 21, 2020 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update edgex-go services to use new SecretProvider from go-mod-bootstrap
4 participants