-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add support for generating ssl certs via DNS challenge (via Cloudflare) #2957
base: main
Are you sure you want to change the base?
Conversation
a02d711
to
09e2b3f
Compare
I think for CI we want to use the staging server so we don't hit rate limits |
@aktech why do we need |
We can create subdomains per run, like say:
I was trying to use the recommended environment variable for dns challenge, but since both of these token need similar permissions, that's a fair point, we can re-use it. |
Based on https://go-acme.github.io/lego/dns/cloudflare/ you either need
|
Awesome, that's even better! I'll test and remove. |
Done and verified it works without email, let's keep it simple for now (i.e. without email IMO). |
Reference Issues or PRs
Fixes #2956
Documentation PR to follow up after this PR gets approval.
Valid certs, after deploying with the dns challenge configuration:
Secure https:
![Screenshot 2025-02-12 at 11 57 22 am 2](https://private-user-images.githubusercontent.com/5647941/412409562-e83279dc-47ed-45e7-8849-c661a2da1b74.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODI1OTIsIm5iZiI6MTczOTU4MjI5MiwicGF0aCI6Ii81NjQ3OTQxLzQxMjQwOTU2Mi1lODMyNzlkYy00N2VkLTQ1ZTctODg0OS1jNjYxYTJkYTFiNzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMDExODEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWVjMmEyN2Y1OTQ2MTAzMzlmZTcwZThhN2ZmMWRkMTgyYTJhZjliNDc2MGIwZTBkNjViMDg0Zjk4NzFmMDQ2NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.9DCwWaKUeM80UKd8_tdLxXg2hmGyFQepJB-elVFmzmA)
Certificate:
![Screenshot 2025-02-12 at 11 57 08 am](https://private-user-images.githubusercontent.com/5647941/412409192-a82f7cd8-e4e2-4ef2-a19c-653fea9eb963.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODI1OTIsIm5iZiI6MTczOTU4MjI5MiwicGF0aCI6Ii81NjQ3OTQxLzQxMjQwOTE5Mi1hODJmN2NkOC1lNGUyLTRlZjItYTE5Yy02NTNmZWE5ZWI5NjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMDExODEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWE4MTUxYTFlOWIwMDYwM2E0ZmRkYzI2NWIwZGE2MjU2ZjkwYTg0YmM4ZTBlZmU1ZmIwMzBjZmZkMzRkOWY5MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.xHNNORwS-DurLGo06oin4o5sy2_9Gcnr-4kdHQQYx1g)
What does this implement/fix?
Put a
x
in the boxes that applyTesting
How to test this PR?
CLOUDFLARE_EMAIL
(Cloudflare login email)CLOUDFLARE_TOKEN
(Token generated from cloudflare dashboard with permissions to access the domain for which you need to generate certs)Create a DNS entry to your cloudflare account pointing the domain you want to deploy Nebari on, to the IP of the load balancer on the docker network (e.g:
172.18.1.100
) - This step is optional if you already have enabled dns auto provision.Add the following to the
nebari-config.yml
and deploy Nebari locally and verify valid certificates are generated.
Any other comments?