Comments (7)
Create a certificate with multiple SANs using Azure DNS zones which are in multiple resourceGroups or subscriptions.
As a user i expect that Lego finds the DNS zones automatically in my subscriptions based on the assigned roleAssignments of the serviceprincipal. It should not need a AZURE_SUBSCRIPTION_ID
or AZURE_RESOURCE_GROUP
but could be possible to filter service discovery.
without AZURE_SUBSCRIPTION_ID
and AZURE_RESOURCE_GROUP
:
(find all DNS zones in visible scope)
resources
| where type =~ "microsoft.network/dnszones"
| project id, subscriptionId, resourceGroup, name
with only AZURE_SUBSCRIPTION_ID
:
(find all DNS zones in one subscription)
resources
| where type =~ "microsoft.network/dnszones"
| where subscriptionId =~ "${AZURE_SUBSCRIPTION_ID}"
| project id, subscriptionId, resourceGroup, name
with AZURE_SUBSCRIPTION_ID
and AZURE_RESOURCE_GROUP
:
(find all DNS zones in a specific resourcegroup)
resources
| where type =~ "microsoft.network/dnszones"
| where subscriptionId =~ "${AZURE_SUBSCRIPTION_ID}" and resourceGroup =~ "${AZURE_RESOURCE_GROUP}"
| project id, subscriptionId, resourceGroup, name
This would make Azure DNS provider more flexible and easier to use.
I'm willing to create a PR if you are ok with this feature using resourceGraph for service discovery.
from lego.
implemented a first working preview (tested only with public zones)
as another idea we can also implement an AZURE_SERVICEDISCOVERY_FILTER
env var for additional filtering, eg:
resources
| where type =~ "microsoft.network/dnszones"
| where subscriptionId =~ "${AZURE_SUBSCRIPTION_ID}" and resourceGroup =~ "${AZURE_RESOURCE_GROUP}"
| ${AZURE_SERVICEDISCOVERY_FILTER}
| project id, subscriptionId, resourceGroup, name
this could allow validating zones eg. by resourcegroup tags via Kusto subquery
from lego.
Nothing special, but we're actually waiting for this feature because it makes everything easier.
We're currently using a forked build and would like to get rid of it.
from lego.
@pchanvallon do you have any thoughts on this issue?
from lego.
Hello @mblaschke ,
I am a bit confused about the underlying use-case.
Can you explain a bit more what you attend to do with this new feature ?
from lego.
@ldez any chance we get a new release with this feature in the next days?
from lego.
Just out of curiosity, why in the next days?
from lego.
Related Issues (20)
- on armv7I-32 CPU: this CPU has no VFPv3 floating point hardware HOT 3
- renew doesn't take multiple domains HOT 1
- "The HTTP S3 Present should not utilize Object ACL permissions, as they are not recommended."
- acme: error presenting token: alicloud: zone com. not found in AliDNS for ... HOT 2
- oraclecloud is using only default realm OC1 for all requests HOT 7
- Missing and misleading hook environment variables HOT 4
- Add support for Route53 private zones HOT 1
- '--dns exec' show output in real time? HOT 3
- Add SLSA provenance to your releases
- renew-hook does not support quoted parameters HOT 1
- Add Retry-After header value to get renewal info result HOT 3
- DNS request prefer IPv6 only HOT 1
- exoscale: fails when issuing certificate for "*.domain.example" and "domain.example" HOT 14
- Ability to update email using the CLI
- Support for provider: mittwald HOT 6
- azuredns: CLI authentication doesn't respect tenant setting
- DNS certificates with many names: Faster verification HOT 13
- Support hook arguments HOT 3
- Whether you can support manual custom validation of DNS records in golang dependent mode?
- Leftover deprecated update renewal info call
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lego.