Repository navigation
Replies: 2 comments 8 replies
|
Hi Thanks for raising this. The use case of supporting an FQDN, its shortname, and the corresponding IP address while operating under a restricted allowed_domainlist makes sense. A dedicated option along the lines of However, before starting work on this, I would like to highlight an important security trade-off. Automatically allowing a shortname because it matches the first label of an approved FQDN introduces a potential risk. Common shosrtname such as mail, vpn, or www are frequently reused across different systems. For example, two distinct hosts such as web.app-a.intra.net and web.app-b.intra.net would both map to the short name web. Assuming your private CA is trusted by the clients, this could enable a malicious actor to obtain a certificate for one host and use it to perform a man-in-the-middle attack against the other. To mitigate this risk, I would propose a few guardrails:
Would these constraints work in your environment, or would you need a more permissive approach? |
|
Here we go: I meanwhile have an early implementation is already available on the feat_allow_shortname branch. You can configure the feature in acme_srv.cfg with two options [Order]
allow_shortname_from_fqdn: True|False
shortname_denylist: ["vpn", "www" ...]
Challenge validation is unchanged: the shortname remains a normal ACME DNS identifier. Enabling allow_shortname_from_fqdn without a non-empty allowed_domainlist logs a warning, since the option has no effect in that case. Happy testing! Feedback is highly welcome. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
We're looking to implement A2C in our environment and one of the things we'd like to be able to continue to do is have certificates that get issued with:
FQDN
Shortname
IP
We also want to use the allowed_domainlist to lock down which domains A2C will issue certificates for. The problem we're hitting is it seems that if we do that A2C sees the shortname as an unapproved domain and rejects the certificate request. It would be great is there was an option such as "allow_shortname_from_fqdn:" where A2C will allow shortnames by checking that the shortname matches the first part of the name requested in the FQDN and therefore passes it.
All reactions