-
Notifications
You must be signed in to change notification settings - Fork 3
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
Request: Implement access controls allowing a user to request certs for any subdomain of ${DOMAIN} #77
Comments
After thinking on this some more I'm actually inclined to suggest that the implicit behavior of |
@arturo-seijas Can you have a look, please? |
Hi @jsimpso, what is that you have in mind and how would it look like from a user's perspective? |
@jsimpso friendly ping |
Apologies for the delayed response.
On the topic of wildcard certificates, I think that if we grant access to juju run httprequest-lego-provider/0 allow-domains --string-args username=example-user domains='example.com' The permission granted should be limited what is explicitly stated: If we want to allow that user to request requests for wildcard certificates, that should be an explicit action. From the perspective of the administrator making that access request, I could see this working one of two ways:
juju run httprequest-lego-provider/0 allow-domains --string-args username=example-user domains='*.example.com'
juju run httprequest-lego-provider/0 allow-domains --string-args username=example-user wildcard_domains='example.com' On the topic of subdomains, I think it would be useful to have an access control option allowing users to request any specific subdomain of a given domain rather than using a wildcard certificate. For example:
juju run httprequest-lego-provider/0 allow-domains --string-args username=example-user subdomains='example.com'
juju run httprequest-lego-provider/0 allow-domains --string-args username=example-user domains='example.com' subdomains='example.com' Hopefully that makes sense, please let me know if not! Thanks :) |
@gregory-schiano , what do you think? |
Enhancement Proposal
Hi,
I've run into some (at least to me) unexpected behaviour with this charm that I think we can improve for a better overall experience.
It's been established that if a user is allowed to request certs for
example.com
, this implicitly grants access to request a wildcard cert for*.example.com
as the challenge domain is the same for either (see Canonical internal chat link).What this doesn't do is allow that user to submit requests for any subdomain-specific certs, e.g.
test.example.com
.Could we please look into either:
example.com
to request a cert for any valid domain matching^.*\.example\.com$
.*.example.com
alongsideexample.com
currently does nothing, change the behaviour so that granting access to*.example.com
is a method of explicitly allowing the user to request a specific cert for any subdomain ofexample.com
.example.com
, such asjuju run httprequest-lego-provider/0 allow-domains --string-args username=example-user domains='example.com' subdomains='example.com'
orallow-subdomains --string-args username=example-user parent-domains='example.com'
.Keen to hear your thoughts.
Thanks!
The text was updated successfully, but these errors were encountered: