gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.64k stars 1.76k forks source link

generating Subject Alternative Name SAN fields for internal user certificate. #31373

Open nivasomu opened 1 year ago

nivasomu commented 1 year ago

Feature Request Teleport auth generates a certificate for the user with O= objects in it. It will be nice to have a mechanism to add more SAN fields by copying the O= objects to DNSNames and then passing it to GenerateCertificate function so that the certificate has roles encodes as SAN fields in it. like the following example,

X509v3 Subject Alternative Name:
                email:all@goteleport.com, email:eng-staff@goteleport.com, email:eng-service-infra-team@goteleport.com

Usecase There are certain apps that can be authenticated through the certificates. So it would be nice to have the SAN fields on the cert to make the authentication happen and carry the traits from the teleport.

here is an example for cert based auth

Workaround Access to these apps can be worked around using Teleport teleport JWT or SAML-based authentication but it would be nice to take advantage of cert-based authentication since the user is already logged into teleport and has a cert that can be used for accessing apps as well.

alakahakai commented 1 year ago
zmb3 commented 3 months ago

It's not clear to me what the request is here. Teleport generates lots of certificates - which certificates does this request pertain to?