-
Notifications
You must be signed in to change notification settings - Fork 492
Description
Hello!
- Vote on this issue by adding a 👍 reaction
- If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
I need to provide custom data per user in SSH certificates and am not able to alter the information returned from the OAuth provider. Currently this means that I need to edit an increasingly complex structure within the authority.provisioners.options.ssh.templateData
field and I am uncomfortable having to continually edit this file, especially as it contains security information.
I'd like a way to include the templateData
from another json file which can be placed elsewhere on the filesystem with slightly relaxed permissions. As a further extension this might be nice to also support generating the templateData
from an executable. An example of similar behaviour elsewhere would be the principals mechanism in SSH.
Why is this needed?
This will allow users to attach custom per-user data to certificates while using public OAuth infrastructure. The example provided in https://smallstep.com/blog/clever-uses-of-ssh-certificate-templates/ requires that we are able to add custom claims to the OAuth provider, but it would be nice to be able to control some of these options directly to the certificate authority.