-
Notifications
You must be signed in to change notification settings - Fork 38
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: Enabling hooks for Vault identity features #171
Conversation
Codecov Report
@@ Coverage Diff @@
## main #171 +/- ##
==========================================
- Coverage 77.42% 72.33% -5.10%
==========================================
Files 18 18
Lines 988 1236 +248
==========================================
+ Hits 765 894 +129
- Misses 162 265 +103
- Partials 61 77 +16
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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
This set of changes enables secret store tokens to be identity-based. This change only add new methods to the secret store interfaces and implementions and does not modify existing functionality. Instead of issuing anonymous Vault tokens with attached policy. This commit adds additional methods to create Vault-based identities and authenticate to these identities using programmable auth methods. This is important step to "deprivilege" Vault usage, as creating raw tokens requires "sudo" ability in Vault, whereas identity auth is a user operation. Additionally, vault-based identity can be attested (as a JWT) and verified. Signed-off-by: Bryon Nevis <[email protected]>
@jim-wang-intel, @lenny-intel. This one ready for review and merge. |
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
} | ||
|
||
for _, v := range response.Data.Keys { | ||
if v == "keyName" { |
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.
Should this be if v == keyName
?
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.
Good catch! Fixed in #192
This set of changes enables secret store tokens to be identity-based.
Instead of issuing anonymous Vault tokens with attached policy,
this commit adds additional methods to create Vault-based
identities and authenticate to these identities using
programmable auth methods. This is important step to "deprivilege"
Vault usage, as creating raw tokens requires "sudo" ability in Vault,
whereas identity auth is a user operation. Additionally,
vault-based identity can be attested (as a JWT) and verified.
Signed-off-by: Bryon Nevis [email protected]
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/go-mod-secrets/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:
describing the break)Testing Instructions
New Dependency Instructions (If applicable)