Commit Graph

2282 Commits

Author SHA1 Message Date
Roland Shoemaker 7675f33317 Add a Akamai CCU client and use it to purge OCSP responses on revocation and update
Adds a (currently gated) Akamai CCU API client used to purge GET OCSP responses
from the CDN. It also contains a small tool (cmd/akamai-purger) that can be used
to purge ARLs from the command line.
2015-10-27 21:45:25 -07:00
Jeff Hodges 8a1e97a4ae Merge pull request #1033 from letsencrypt/amqp-reconnect
Add reconnect loop to AMQP RPC
2015-10-27 21:00:24 -07:00
Jacob Hoffman-Andrews 194e421931 Add reconnects in AMQP. 2015-10-27 19:54:54 -07:00
Jacob Hoffman-Andrews d6fddff15e Merge pull request #1027 from letsencrypt/ocsp-backoff
OCSP Updater backoff on HSM failure
2015-10-26 15:18:30 -07:00
Roland Shoemaker 661476f40e Backoff OCSP Updater on HSM failure
If a ServiceUnavailableError is returned from GenerateOCSP backoff before
attempting to retry the call as to not to overwhelm the CA with calls that
may instantly fail.
2015-10-26 14:06:32 -07:00
Jeff Hodges c75c1f26fa Merge pull request #1043 from letsencrypt/backfill-fix
Fix config variable name and add sctReceipts permission for OCSP responder
2015-10-26 13:26:02 -07:00
Roland Shoemaker bf37434601 Use newUpdater is tests instead of self-initializing 2015-10-26 12:42:59 -07:00
Roland Shoemaker a9865b07a0 Actually assign publisher client to updater struct 2015-10-26 12:26:47 -07:00
Roland Shoemaker 8ccd00846d Fix config variable name and add sctReceipts permission for OCSP responder 2015-10-26 11:53:41 -07:00
bifurcation b2e201be2f Merge pull request #1029 from tomclegg/notify-timing
Fix notification timing
2015-10-24 16:26:00 -04:00
Tom Clegg 3ad7130c63 Add NagCheckInterval config 2015-10-23 13:36:02 -04:00
Tom Clegg 8f68d6f295 Send expiration mailers up to 1 day before configured nag time, in
case the mailer is only run once per day.

Use a realistic fake clock, with a non-zero nanosecond part. Since
the DB doesn't store subsecond timestamps, this avoids landing all the
test cases on the edge case where notifications are sent at the exact
nanosecond when the nag window opens.
2015-10-23 09:23:33 -04:00
Tom Clegg 7850f3d065 Fix nag cutoff bug: 7d nag was causing 4d nags to wait until 3.5d. 2015-10-23 01:01:15 -04:00
bifurcation b84456a0be Merge pull request #1021 from letsencrypt/ocsp-unflake-integration
Unflake OCSP integration test
2015-10-22 17:37:51 -04:00
Jacob Hoffman-Andrews 305d7fad22 Merge branch 'master' into ocsp-unflake-integration
Conflicts:
	test/amqp-integration-test.py
2015-10-22 14:30:37 -07:00
Jacob Hoffman-Andrews 7f08a1b342 Merge pull request #997 from letsencrypt/wfe_context
add context to WFE errors
2015-10-22 11:43:52 -07:00
Richard Barnes 226c0fa88a Merge branch 'master' into wfe_context 2015-10-22 13:59:52 -04:00
Richard Barnes c62d4a0828 Spelling fix 2015-10-22 13:59:18 -04:00
Roland Bracewell Shoemaker 984bfe9039 Merge pull request #1023 from letsencrypt/cap-fix
Make MatchesCSR downcase CommonName before checking equality
2015-10-22 10:33:14 -07:00
Roland Shoemaker f4c7295187 Merge branch 'master' into cap-fix 2015-10-22 10:21:38 -07:00
Roland Shoemaker c073da7b1b Flatten method sig 2015-10-22 10:21:29 -07:00
bifurcation 769954acc5 Merge branch 'master' into wfe_context 2015-10-21 23:02:50 -04:00
Roland Bracewell Shoemaker 7174020c5c Merge pull request #1020 from letsencrypt/hsm-fault
Have the CA recognize and persist HSM faults
2015-10-21 19:51:43 -07:00
Richard Barnes 2ebba2a466 Re-add descriptive errors 2015-10-21 22:45:54 -04:00
Richard Barnes a79020c1d0 Further consolidation 2015-10-21 22:09:44 -04:00
Richard Barnes ded5fa6f20 Back out field name changes 2015-10-21 21:55:45 -04:00
Richard Barnes 76e6d3872e Merge branch 'master' into wfe_context 2015-10-21 21:38:39 -04:00
Richard Barnes 8cf950e515 Fix go vet error 2015-10-21 21:36:07 -04:00
Richard Barnes f820d9f29c Address @jsha comments 2015-10-21 21:32:02 -04:00
Roland Shoemaker aff276fc7d Change node test to request a domain using mixed-case 2015-10-21 15:18:13 -07:00
Roland Shoemaker ba56e7c587 Make MatchesCSR downcase CommonName before checking equality 2015-10-21 15:02:15 -07:00
Richard Barnes fcee109502 Remove stray comma 2015-10-21 17:39:14 -04:00
Jacob Hoffman-Andrews 090b71b031 Unflake OCSP integration test
Fixes #982.

Rather than failing immediately if two OCSP responses differ, which can happen
if ocsp-updater fires in between two requests, we wait until all OCSP responses
reach their expected state, and then check for equality.

Additionally, reorganize the OCSP checking to be somewhat cleaner, and improve
detection of verify failures (e.g. when a OpenSSL can't find a signer
certificate).
2015-10-21 14:38:15 -07:00
Richard Barnes 673c0e9799 Merge branch 'master' into hsm-fault 2015-10-21 17:34:03 -04:00
Richard Barnes 288945217e Allow configuration of the HSM timeout 2015-10-21 17:33:19 -04:00
Richard Barnes 128b784805 Add stats to CA 2015-10-21 17:00:06 -04:00
Richard Barnes 3637dfb0c1 ServiceUnavailableError 2015-10-21 16:25:43 -04:00
Roland Bracewell Shoemaker 0bbffa364c Merge pull request #942 from jfrazelle/fixup-dockerfile
Cleanup of Docker Dev Playground
2015-10-21 13:17:33 -07:00
Richard Barnes 55b4fb116e Remove adaptation from rate limit 2015-10-21 16:04:36 -04:00
Jessica Frazelle 121a98f438
update run-docker.sh and readme
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-10-21 12:55:18 -07:00
Jessica Frazelle 4d81e3090d
Cleanup of Docker Dev Playground
- Separated RabbitMq into it's own container
- some various Dockerfile-isms cleanup
- updated routes to linked containers
- removed nodejs, I have not been able to figure out why it was being installed
    (so this could be something that is actually needed)

To setup a dev environment:

You now need `docker-compose`, but running the setup with all the
configurations is as simple as:

```
$ docker-compose build
$ docker-compose up
```

Then you can even run the `test.sh` in the container with:

```
$ docker exec -it boulder_boulder_1 bash
root@container $ ./test.sh
```

This is just an _initial_ first pass at refactoring a bunch of this. There is
a bunch more I want to change and make better.

Also with regard to database migration taking awhile I want to try and move
the goose stuff over to the mariadb container, there is just some less savory
things I don't like about starting the db in the background then running the
migration script :/, I like to attach to the process on container start. I do
have some thoughts on a `docker exec` command in the mariadb container which
migrates the db... but trying to think of something better.

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-10-21 12:47:29 -07:00
Richard Barnes 06a743882c Treat all signer errors as HSM errors 2015-10-21 15:24:45 -04:00
Richard Barnes db29b9456d Lint failure 2015-10-21 14:57:04 -04:00
Richard Barnes 28be8023cf Add a mock OCSP signer and better OCSP HSM fault tests 2015-10-21 13:34:43 -04:00
Richard Barnes be7c7aebbb Address @jcjones comments 2015-10-21 12:29:42 -04:00
Richard Barnes 305b44bd16 Consistent HSM fault checking 2015-10-21 10:49:30 -04:00
Richard Barnes d0e12c357a Move checkHSMFault together with noteHSMFault 2015-10-21 10:48:30 -04:00
Richard Barnes d1d1690f2a Have the CA recognize and persist HSM faults 2015-10-21 10:46:22 -04:00
Richard Barnes d61d09bb61 Minor beautification 2015-10-21 09:25:27 -04:00
Richard Barnes dc58017032 Remove repetition by passing logEvent to sendError 2015-10-21 09:23:17 -04:00