Skip to content

LetsEncrypt + Cloudflare#360

Merged
techman83 merged 2 commits intoKSP-CKAN:masterfrom
techman83:fix/https
Nov 30, 2025
Merged

LetsEncrypt + Cloudflare#360
techman83 merged 2 commits intoKSP-CKAN:masterfrom
techman83:fix/https

Conversation

@techman83
Copy link
Copy Markdown
Member

As we're no longer using route53, certbot was unable to perform the dns challenge to renew the certificate. This switches to using dns-cloudflare to perform a similar function.

The main challenge was that the official container only supports a file or cli switch for the token. Which is suboptimnal. The awscli container was added as a dependency to pull the token into a ephemeral container volume shared with certbot so it can authenticate.

A couple of small work arounds have been added to keep the change set tightly scoped. But this is prod as it is deployed right now.

This allows us to mount as a local path (the current default) or purely inside
the container. This will make it possible to have a container only mount, for
the purpose of writing config to a secure location for dns-cloudflare.
As we're no longer using route53, certbot was unable to perform the dns
challenge to renew the certificate. This switches to using dns-cloudflare
to perform a similar function.

The main challenge was that the official container only supports a file or
cli switch for the token. Which is suboptimnal. The awscli container was
added as a dependency to pull the token into a ephemeral container volume
shared with certbot so it can authenticate.

A couple of small work arounds have been added to keep the change set
tightly scoped. But this is prod as it is deployed right now.
Copy link
Copy Markdown
Member

@HebaruSan HebaruSan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this and can't test it, so I can't help decide whether to merge.

@techman83
Copy link
Copy Markdown
Member Author

All good, there are no triggers, but this is as deployed, so is more of a reference.

@techman83 techman83 merged commit 5ec90ee into KSP-CKAN:master Nov 30, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants