Skip to content
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

ci: add support for getting X.509 certificates via certbot #422

Merged
merged 1 commit into from
Dec 28, 2016

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Dec 21, 2016

This is just a quick hack. It adds a script that you can run to update
the certificates. It works because certbot actually only needs to run on
port 80 and so doesn't need to disturb the CI.

I've used this to move the server's official name from datakit.ci:8446
to datakit.datakit.ci.

This PR also makes some improvements to the form system because I
originally had a web UI for this, but they seemed worth keeping anyway.

There are many ways it could be improved:

  • Don't require the server to be restarted to use the new certificate.
  • Run the script automatically when the certificate is due to expire.
  • Report a metric saying how long the current certificate is valid for.

This is just a quick hack. It adds a script that you can run to update
the certificates. It works because certbot actually only needs to run on
port 80 and so doesn't need to disturb the CI.

I've used this to move the server's official name from datakit.ci:8446
to datakit.datakit.ci.

This PR also makes some improvements to the form system because I
originally had a web UI for this, but they seemed worth keeping anyway.

There are many ways it could be improved:

- Don't require the server to be restarted to use the new certificate.
- Run the script automatically when the certificate is due to expire.
- Report a metric saying how long the current certificate is valid for.

Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
@talex5 talex5 merged commit 0536db9 into moby:master Dec 28, 2016
@talex5 talex5 deleted the cloud-ci branch December 28, 2016 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants