-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add support for creating child tokens for token credential binding #338
base: master
Are you sure you want to change the base?
Conversation
@@ -161,7 +161,7 @@ private static StringSubstitutor getPolicyTokenSubstitutor(EnvVars envVars) { | |||
return new StringSubstitutor(valueMap); | |||
} | |||
|
|||
protected static List<String> generatePolicies(String policies, EnvVars envVars) { | |||
public static List<String> generatePolicies(String policies, EnvVars envVars) { |
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.
Necessary to use this method in the vault token credential binding code.
@@ -21,4 +21,22 @@ public String getName(@NonNull VaultCredential credentials) { | |||
return credentials.getDescription(); | |||
} | |||
} | |||
|
|||
final class VaultAuthorizationResult { |
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.
This class was needed to return the actual token from authorizeWithVault instead of requiring another call to Vault to lookup the token after the fact (since it is unretrievable from a configured Vault class instance).
Cancel that, I found at least one issue in our prod environment, looking into it now. |
@jetersen this is ready for review now. We've been using this in our prod environment for at least a week now and it has been very stable (and has correctly limited access when child tokens are enabled). |
@jetersen any chance I can get a review here? |
Fixes #339