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: Rework secrets for HTTP Export so value in InsecureSecrets can be overridden #714

Merged
merged 2 commits into from
Feb 25, 2021

Conversation

lenny-goodell
Copy link
Member

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)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

SecretHeaderName used as key for InsecureSecrets is dynamic so can not be overridden in the 'http-export' profile which just has a place holder.

Issue Number: #521

What is the new behavior?

Now the key in InsecureSecrets can be fixed in the 'http-export' profile since is is not also used as the HTTP Header Name.
This allows for the header value stored in InsecureSecrets to be overridden with environment variable.

Does this PR introduce a breaking change?

  • Yes
  • No

BREAKING CHANGE: Parameters have changed for HTTP Post/Put with SecretHeader

Are there any new imports or modules? If so, what are they used for and why?

no

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

Other information

@lenny-goodell lenny-goodell force-pushed the http-secret branch 2 times, most recently from 81cd4f7 to c6ffff8 Compare February 24, 2021 22:28
…can be overridden

closes #521

BREAKING CHANGE: Parameters have changed for HTTP Post/Put with SecretHeader

Signed-off-by: lenny <[email protected]>
AlexCuse
AlexCuse previously approved these changes Feb 24, 2021
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.

very minor suggestion: overall 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

@lenny-goodell
Copy link
Member Author

recheck

@lenny-goodell lenny-goodell merged commit 4075ac3 into edgexfoundry:master Feb 25, 2021
@lenny-goodell lenny-goodell deleted the http-secret branch February 25, 2021 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change HTTP Export Secret key names so the value are overridable
3 participants