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

KNOX-2623 - Lifespan attributes are optional on token generation UI and default to 1 hour #460

Merged
merged 1 commit into from Jun 25, 2021

Conversation

smolnar82
Copy link
Contributor

What changes were proposed in this pull request?

By default, lifespan attributes (day, hour, and minute spinners) are displayed on the token generation UI. However, end-users have a way to hide these input fields by setting a newly introduced topology-level configuration, called knox.token.lifespan.input.enabled, to false.
In this case, the generated token will have the configured/default token TTL.
I also made the default value of the lifespan attributes to 1 hour.

How was this patch tested?

Updated the JUnit tests and executed several manual testing locally (with and w/o the lifespan properties).

@smolnar82 smolnar82 self-assigned this Jun 24, 2021
@smolnar82 smolnar82 merged commit 5d55531 into apache:master Jun 25, 2021
@smolnar82 smolnar82 deleted the KNOX-2623 branch June 25, 2021 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant