Hi,
I’m a newby in vault, and i have a question with ssh client ca.
Wth AD authentication, is it possible to use specifics attributes to create metatda values for users profiles at the time of authentication in a role?
Example : to sign a public ssh key, i use this metadata value {{identity.entity.metadata.ssh_username}} in SSH role.
vault write ssh-client-signer/roles/ssh-user -<<“EOH”
{
“algorithm_signer”: “rsa-sha2-256”,
“allow_user_certificates”: true,
"allowed_users": “{{identity.entity.meta.username}}”,
“allowed_users_template”: true,
“allowed_extensions”: “permit-pty”,
“default_extensions”: [
{
“permit-pty”: “”
}
],
“key_type”: “ca”,
“max_ttl”: “12h”,
“ttl”: “12h”,
}
EOH
*userPrincipalName → {{identity.entity.metadata.ssh_username}} *
description → {{identity.entity.metadata.team}}
Regards,
Thanks