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

TLS Auth: extended configuration options #2325

Closed
joemiller opened this issue Feb 2, 2017 · 3 comments
Closed

TLS Auth: extended configuration options #2325

joemiller opened this issue Feb 2, 2017 · 3 comments

Comments

@joemiller
Copy link
Contributor

This is as much a request for ideas as it is a request to change the existing auth/tls module.

Our existing PKI system uses OU like a 'group' (eg: engineer, api, web, etc) and CN like a 'user' (CN=servername.tld, CN=[email protected], CN=myapp). It would be ideal to be able to use the auth/tls backend to obtain a token using these certs with specific policies attached based on the OU and/or CN.

Configuring one of these roles might look something like the following modified example from the existing docs:

$ vault write auth/cert/certs/web \
    display_name=web \
    policies=web,prod \
    ou=web \
    ttl=3600

or

$ vault write auth/cert/certs/joe \
    display_name=joe \
    policies=pki-admin \
    [email protected] \
    ttl=3600

I realize this may be too much of a change for the existing auth/tls module. If there were a plugin system I would just fork the existing module and change it to implement the OU / CN logic.

Are there other way this could be implemented without having to fork and maintain our own Vault code base? Possibly via a wrapping proxy, although I'd like to avoid having to keep state in the proxy which might be difficult.

thanks

@jefferai
Copy link
Member

jefferai commented Feb 2, 2017

This kind of enhancement has been proposed before, and we're not at all opposed, just lack the time to do it at the moment.

@jefferai
Copy link
Member

Some of this now exists, so closing. If more is needed please open specific issue requests or PRs.

@jasonmf
Copy link

jasonmf commented Mar 15, 2018

Can you point to the API docs for how to specify the mapping between subject fields and policies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants