Add support for generating ssl certs via DNS challenge (via Cloudflare) #2957
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDQzOTgsIm5iZiI6MTczOTQ0NDA5OCwicGF0aCI6Ii81NjQ3OTQxLzQxMjQwOTU2Mi1lODMyNzlkYy00N2VkLTQ1ZTctODg0OS1jNjYxYTJkYTFiNzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTA1NDU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDNmODQ0ZmQzOTYyYWJkNjhjOTA1NTc1NzZjZDkyMGMxY2U4NjI3YzIyNjU4YjQwMjExMDE0NWZhNjM5OTZiOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Bsh0YkT7W5R-A1EyBopc5lg09925h8rtBj3YOhxDBJI)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDQzOTgsIm5iZiI6MTczOTQ0NDA5OCwicGF0aCI6Ii81NjQ3OTQxLzQxMjQwOTE5Mi1hODJmN2NkOC1lNGUyLTRlZjItYTE5Yy02NTNmZWE5ZWI5NjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTA1NDU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTY5ZTUxNDM3Nzk2M2Q3MWVjODUyYzgzZTZlNWQ1NTExNjVhYWFhMDY3NjUwMjIxNTAwMDViYmRmODJjNDBhMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.p9ubsGYAagU66_O66LWD2te-4Yy1rwY-f02QPB06T-g)
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?