I see in Bug ID 11152 that as of 2021-03-19 10:40:40 MDT it was not possible for admins to restrict the maximum token lifespan of a scontrol generated token. From what I can see in the documentation it appears this is still the case. Our site doesn't have an SSO token provider that can issue tokens for us so we've been using scontrol to create the tokens. I'm wondering if there are any plans to make a maximum token lifespan a configurable parameter in slurm.conf or something similar ?
Andrew - as mentioned in bug#11152 comment#4 > Not currently. We have AuthAltParameters=disable_token_creation as an option > to allow admins to provide controlled access to JWT if desired. The admin can use a script to generate tokens for the users, and there the admin could set the max lifespan. This does not address the Slurm defined option but does give you a workaround to consider. bug#11152 comment#10 I will have Nate look over this enhancement request and offer some feedback.
(In reply to Jason Booth from comment #1) > > Not currently. We have AuthAltParameters=disable_token_creation as an option > > to allow admins to provide controlled access to JWT if desired. > > The admin can use a script to generate tokens for the users, and there the > admin could set the max lifespan. This does not address the Slurm defined > option but does give you a workaround to consider. This was given as a way for sites to disable unprivileged users getting tokens. You site can use something like sudo or a setuid script to enforce your time limits. We also provide an example on how to generate the tokens in python: > https://slurm.schedmd.com/jwt.html#compatibility Please tell me if you need more details how to generate the tokens. > I will have Nate look over this enhancement request and offer some feedback. We are looking at possibly adding this in the 22.05 release.
Thanks Nate and Jason, We've got a work around in place and are able to generate tokens for users. Longer term we'd be excited to see this in a future release. Thanks again !
Andrew, The new max_token_lifespan limit has been added to AuthAltParameters for the pending slurm-22.05 major release: > https://github.com/SchedMD/slurm/commit/85516610c0e74887b77a03a97146363921856995 I'm going to close out this ticket but please respond if there are any related questions or issues. Thanks, --Nate
Thanks Nate !
*** Ticket 16897 has been marked as a duplicate of this ticket. ***
*** Ticket 13695 has been marked as a duplicate of this ticket. ***