Giter VIP home page Giter VIP logo

Comments (6)

alexyao2015 avatar alexyao2015 commented on May 19, 2024 9

I found an interesting quirk, not mentioned in the documentation.

There currently seems to be no way to obtain a certificate for an internal subdomain. As the plugin tries to lookup the dns name to determine the zone, it looks to DNS to get the primary zone. If that subdomain does not exist, it gives up and uses the subdomain as the primary zone for DNS validation. In hopes of being able to obtain certificates for internal only domains, it would be great to have a way to manually specify the primary zone for which the DNS validation should use in the config.

In the meantime, I hope this helps alleviate confusion for people that specified a manual resolver but are still facing DNS related issues. I personally thought at first that the resolvers simply did not work.

from cloudflare.

mholt avatar mholt commented on May 19, 2024 1

Okay. I'd happily accept a pull request. It doesn't sound hard. Want to contribute?

from cloudflare.

mholt avatar mholt commented on May 19, 2024

I believe that the permission used to get zone ID is Zone-Zone-Read, which is not a write permission.

The "Edit" permission is Zone-DNS-Edit, which is needed to set and then delete the TXT record for the ACME challenge(s) in that zone. I don't think that one can really be worked around.

I'm not against making it possible to explicitly provide the zone ID (or maybe a mapping of domain name to zone ID for multiple names), buuuut, I'm not sure how that would remove the need for an edit permission.

from cloudflare.

jloh avatar jloh commented on May 19, 2024

Cloudflare doesn't let you scope the separate permissions to specific zones inside Cloudflare, only (as far as I can tell) the whole key.

If I could provide the Zone ID then Zone-Zone-Read isn't required which lets me scope the key to a single zone/s. If I do that currently the getting zones part to find the zone ID fails as it doesn't have the required permissions.

Manually providing a mapping would be fantastic as well!

from cloudflare.

Zottelchen avatar Zottelchen commented on May 19, 2024

There currently seems to be no way to obtain a certificate for an internal subdomain. As the plugin tries to lookup the dns name to determine the zone, it looks to DNS to get the primary zone. If that subdomain does not exist, it gives up and uses the subdomain as the primary zone for DNS validation. In hopes of being able to obtain certificates for internal only domains, it would be great to have a way to manually specify the primary zone for which the DNS validation should use in the config.

Hey, is there any chance to get this fixed?

from cloudflare.

mholt avatar mholt commented on May 19, 2024

As the plugin tries to lookup the dns name to determine the zone, it looks to DNS to get the primary zone. If that subdomain does not exist, it gives up and uses the subdomain as the primary zone for DNS validation.

This is not a problem if your internal DNS resolver properly specifies the authoritative zone of your internal domains.

Hey, is there any chance to get this fixed?

I'm not sure what needs to be fixed at this point; the issue seems to have diverted from the original topic.

Pull requests welcomed!

from cloudflare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.