-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Intermediate-CA cert using permitted_dns_domains
breaks cert-auth logins
#3862
Comments
permitted_dns_domains
breaks cert-auth logins
Are you sure that the names values match? Does this work in 0.9.3? |
Yeah the names match. I was using a wildcard rule |
Sure, but what names are on the certificate you're trying to auth with? |
The name on the certificate was |
Can you post the output from |
CA:
Client Cert:
The domain names have changed since I was testing with |
Cool, thanks...having this should help with trying to reproduce. I'm not sure what the issue is yet, although I think this is coming from straight Go verification logic. I'll try to address by 0.9.4. |
@stampycode would you be able to test a change from a branch? |
When using an intermediate CA with
permitted_dns_domains
set, any client cert generated by the Intermediate is not permitted to auth into the endpoint. There appears to be a bug whereby the/auth/
endpoint is incorrectly rejecting client certs that match the permitted DNS domain wildcard pattern.Environment:
(using REST only, no client binary)
0.8.3
Expected Behavior:
The auth/cert login endpoint should auth successfully.
Actual Behavior:
Steps to Reproduce:
Enable 2 PKI endpoints.
Configure one as self-signed root CA.
Configure second as Intermediate CA.
Sign the intermediate with the root CA. (using the
permitted_dns_domains
option)Upload the signed intermediate.
Install the Intermediate CA to the
/auth/cert
endpoint.Generate a client cert with the Intermediate CA.
Authenticate with the client cert.
Fail.
The above works fully, if when signing the Intermediate CA cert, the 'permitted_dns_domains' option is not used. If the option is used, regardless of what the value is set to, the above process fails with the shown error.
The text was updated successfully, but these errors were encountered: