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

Fix for using ExplicitMaxTTL in auth method plugins. #5379

Merged
merged 4 commits into from
Sep 21, 2018
Merged

Fix for using ExplicitMaxTTL in auth method plugins. #5379

merged 4 commits into from
Sep 21, 2018

Conversation

andrejvanderzee
Copy link
Contributor

@andrejvanderzee andrejvanderzee commented Sep 21, 2018

We like to use periodic tokens with explicit max TTL in one of our auth method plugins. The field logical.Auth.ExplicitMaxTTL was not serialized over proto bufs and in the token storage.

This PR fixes the serialization of ExplicitMaxTTL and enables to limit periodic tokens by setting the explicit max TTL in our plugins.

@jefferai
Copy link
Member

Please remove the .pb.go files from the PR. You appear to be using a different version of protobuf and/or go-protobuf and it makes it harder to see the actual changes, plus these are generated automatically anyways so any changes in this PR will simply be overwritten.

@andrejvanderzee
Copy link
Contributor Author

@jefferai Thanks for your prompt reply. I have removed the generated .pb.go files from the PR.

@briankassouf
Copy link
Member

Thanks!

@briankassouf briankassouf merged commit b194b27 into hashicorp:master Sep 21, 2018
joelthompson added a commit to joelthompson/vault that referenced this pull request Sep 22, 2018
In hashicorp#5379, changes were made to the .proto files but the generated .pb.go
files weren't included. This causes compilation errors because .pb.go
weren't always being regenerated (e.g., with make dev and in travis).
This includes necessary changes to .pb.go to fix these errors.
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.

None yet

3 participants