Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

T/letsencrypt haproxy #1053

Merged
merged 25 commits into from Jul 21, 2016
Merged

T/letsencrypt haproxy #1053

merged 25 commits into from Jul 21, 2016

Conversation

till
Copy link
Owner

@till till commented Jul 18, 2016

Open issues:

  • I think letsencrypt comes too late (for haproxy)
  • potentially, there is also a race condition between the instance responding to the DNS and we being able to get certs

Testing:

  • test the entire provisioning process
  • loadbalancer should start
  • loadbalancer should have cronjob setup
  • loadbalancer should have certs in /etc/letsencrypt/live
  • certs should be combined (/etc/nginx/ssl/cert.combined.pem)
  • loadbalancer should respond on https

Finishes: DEVOPS-163

@till till self-assigned this Jul 18, 2016
@till
Copy link
Owner Author

till commented Jul 18, 2016

@gilleyj can you test this as well? (There is a cs error still, feel free to push a fix up, or I will do it later.)

@till till assigned gilleyj and unassigned till Jul 18, 2016
@till
Copy link
Owner Author

till commented Jul 20, 2016

@gilleyj I think we stop/start the lb instance on Scholar Playground to test the entire lifecycle. Might be easier to do this with DNS and what not.

till added a commit that referenced this pull request Jul 20, 2016
gilleyj pushed a commit that referenced this pull request Jul 20, 2016
till added 11 commits July 20, 2016 18:50
 * make ssl dir configurable and inject
 * append certs into a combined file
 * reload haproxy afterwards

Related: DEVOPS-163
 * for ssl_dir
 * for etc_dir (see bug fixed in #1052

Related: DEVOPS-163
 * ensure we don't duplicate command logic in setup and renewal
 * since all recipes are executed initially, we will have be able to retrieve initial certs

Related: DEVOPS-163
 * wrap renewal/setup code in function
 * be a little more verbose with messaging from cron
 * ensure we can actually initially setup certs
 * update documentation

Related: DEVOPS-163
(This may imply that we cannot reload haproxy on the first run because
it is not yet there. But I will have to try this later.) :shipit:

Related: DEVOPS-163
 * document limitations
 * allow initial setup to fail in case dependencies are missing

Related: DEVOPS-163
till added 9 commits July 20, 2016 23:36
 * unify mock on command
 * test ssl disabled also

Related: DEVOPS-163
 * consolidate checking input (e.g. is this really a path or actual)
 * push chomp chomp into new method

Related: DEVOPS-163
till and others added 5 commits July 21, 2016 17:55
 * objective is to always have a cert in place so haproxy can start
 * defeats the chicken-egg problem
 * actual SSL certs will be deployed or let's encrypted later

Related: DEVOPS-163
 * remove stubs
 * remove test
Change of the SSL redirect action to not do if is letsencrypt
@gilleyj gilleyj merged commit 6487c83 into master Jul 21, 2016
@till till mentioned this pull request Jul 21, 2016
@till till deleted the t/letsencrypt-haproxy branch September 14, 2016 22:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants