Commit Graph
187 Commits
Author SHA1 Message Date
James MunnellyandGitHub f16541838a Update exponential backoff base to 5s and max to 5m 2018-04-26 13:37:29 +01:00
James Munnelly 5e865a6e70 Always use AddRateLimited. Adjust exponential backoff base/max. 2018-04-19 15:07:00 +01:00
James Munnelly c1b1aa8856 Fix import paths and use util.AppVersion for user agent version 2018-04-04 17:33:40 +01:00
Jacob Hoffman-AndrewsandJames Munnelly 00e254ad31 Add a meaningful User-Agent. 2018-04-04 17:33:40 +01:00
James Munnelly b29223d05c Update dates in generated license headers 2018-01-15 19:15:04 +00:00
James MunnellyandJames Munnelly 99e797cc08 Fix panic when ACME server returns a genuine error 2018-01-15 19:15:02 +00:00
James Munnelly 5569d715b4 Update Secrets instead of replacing to preserve additional metadata 2018-01-15 19:15:01 +00:00
James Munnelly a8da25e26f Fix panic in acme authorize function 2017-12-01 23:27:09 +00:00
James Munnelly 36c85393e6 Enable go race detector and fix race 2017-12-01 23:27:07 +00:00
James Munnelly 95e0c14311 Fix checking for expired ACME authorizations 2017-12-01 21:28:32 +00:00
James Munnelly f941c59b60 Add ingress-shim controller to create Certificates based on annotations on ingress resources 2017-12-01 16:44:55 +00:00
jetstack-botandGitHub 83a6e13b89 Merge pull request #190 from munnerz/automated-cherry-pick-of-#185-upstream-release-0.2
Automatic merge from submit-queue.

Automated cherry pick of #185

Cherry pick of #185 on release-0.2.

#185: Add solverFor and wait.go unit tests for acme dns solver

```release-note
NONE
```
2017-11-04 01:28:13 +00:00
jetstack-botandGitHub 1deb5b9b85 Merge pull request #189 from munnerz/automated-cherry-pick-of-#184-upstream-release-0.2
Automatic merge from submit-queue.

Automated cherry pick of #184

Cherry pick of #184 on release-0.2.

#184: Add basic validation to ACME issuer
2017-11-04 01:23:10 +00:00
James Munnelly 08311cbb38 Add solverFor and wait.go unit tests for acme dns solver 2017-11-04 01:07:06 +00:00
James Munnelly b7f2f233f7 Add basic validation to ACME issuer 2017-11-04 01:06:29 +00:00
James Munnelly 7ba08b2190 Use ordered RemoveDuplicates. Add additional test cases. 2017-11-04 01:05:30 +00:00
James Munnelly f5f3ff06c6 Fix panic in certificates controller 2017-11-04 01:05:30 +00:00
James Munnelly be5e11d277 Update CA issuer 2017-11-04 01:05:30 +00:00
James Munnelly 3b63b904c8 Add unit tests for cert->dnsName and cert->CN functions 2017-11-04 01:05:30 +00:00
James Munnelly b9a77b3d62 Add RemoveDuplicates unit test 2017-11-04 01:05:30 +00:00
James Munnelly c2b707fdb3 Improve validation of certificates. Fix bug in checking certificate validity 2017-11-04 01:05:30 +00:00
James Munnelly fa7e052ac1 Move to github.com/jetstack/cert-manager repo 2017-11-03 16:41:39 +00:00
James Munnelly 6bd606a7ce Fix ClusterIssuers. Update test name. Add comments. 2017-11-03 15:51:34 +00:00
James Munnelly eb4be6859e Update controllers and issuers for new SharedInformerFactory 2017-11-03 15:26:19 +00:00
James Munnelly c77ee5e5b2 Run update-client-gen.sh 2017-11-03 15:26:19 +00:00
James Munnelly f35ab04670 Fix imports in tests 2017-11-03 14:56:30 +00:00
James Munnelly 7875268247 Fix imports 2017-11-03 14:48:41 +00:00
James Munnelly 2a2ad4160c Regenerate files 2017-11-03 14:48:40 +00:00
James Munnelly 026d107e3a Remove old ImportPrefix field 2017-11-03 12:08:03 +00:00
jetstack-botandGitHub 6739ea17fc Merge pull request #172 from munnerz/set-secret-type
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Set TLS certificate secret type to TLS type

**What this PR does / why we need it**:

Set the Kubernetes secret type to TLS

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

Fixes #133 

**Release note**:
```release-note
Set the Kubernetes secret type to TLS.
Action required: this will cause renewals of existing certificates to fail. You **must** delete certificates that have been previously produced by cert-manager else cert-manager may enter a renewal loop when saving the new certificates. Alternatively, you may specify a new secret to store your certificate in and manually update your ingress resource/applications reference the secret.
```
2017-11-03 11:44:18 +00:00
jetstack-botandGitHub 97b84201eb Merge pull request #173 from munnerz/only-create-service
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Only ever create http01 solver service instead of also updating

**What this PR does / why we need it**:

Previously the ensureService function was written to update a service if it already exists. There should never be a case where the http01 solver needs to update an existing *service*, so this PR simplifies this functionality into a simple `createService` function.

**Release note**:
```release-note
NONE
```
2017-10-27 19:03:37 +01:00
James Munnelly 85800ba81b Only ever create http01 solver service instead of also updating 2017-10-27 16:44:39 +01:00
James Munnelly b3a2fb9419 Set TLS certificate secret type to type 2017-10-27 16:20:45 +01:00
James Munnelly df47b56a52 Allow rediscovering lost/not set ACME account URIs 2017-10-27 16:09:30 +01:00
James Munnelly a4a40bdf2d Fix checking for invalid data in issuer secrets 2017-10-26 22:47:17 +01:00
jetstack-botandGitHub bc44f708dd Merge pull request #166 from munnerz/fix-http01
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Error if existing presented key and expected key do not match

**What this PR does / why we need it**:

A type in the HTTP01 solver caused it to not return an error if the key presented by the ingress and the expected key do not match.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

Fixes #163 

**Special notes for your reviewer**:

**Release note**:

```release-note
Fix bug in ACME HTTP01 solver causing self-check to return true before paths have propagated
```
2017-10-26 22:07:31 +01:00
James Munnelly a05b67dc4b Error if existing presented key and expected key do not match 2017-10-26 21:53:02 +01:00
James Munnelly dc22822394 Fix panic in ACME issuer setup 2017-10-26 21:21:48 +01:00
jetstack-botandGitHub d5a5c63333 Merge pull request #156 from munnerz/require-5-http-passes
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Ensure ACME HTTP01 reachability test passes 5 times before issuing certificate

**What this PR does / why we need it**:

See #154 for details. Sometimes HTTP routes have not propagated yet when using a controller such as GCLB. This forces us to wait for 5 consecutive passes of the HTTP01 self-check before proceeding.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

Closes #154 

**Special notes for your reviewer**:

* This adds an extra 10s delay onto *any* HTTP01 validation
* The '5 tries' number is hardcoded into the HTTP01 solver

**Release note**:

```release-note
Ensure 5 consecutive HTTP01 self-checks to pass before issuing ACME certificate
```
2017-10-26 14:18:48 +01:00
James Munnelly 16cde96fd8 Ensure ACME HTTP01 reachability test passes 5 times before issuing certificate 2017-10-26 12:10:35 +01:00
James Munnelly 8c9d235e8d Ensure Present and CleanUp run in serial 2017-10-26 10:46:17 +01:00
James Munnelly 14cf0d495f Consistent use of glog 2017-10-16 14:50:27 +01:00
James Munnelly dc5929ce29 Fix Issuer sync_test.go 2017-10-16 13:38:53 +01:00
James Munnelly 59e2af767a Perform Issuer/ClusterIssuer status updates in controller 2017-10-16 12:59:46 +01:00
James Munnelly 1f278d659b Refactor e2e setup into scripts. Speed up e2e tests.
Build images whilst services are starting

Exit on setup boulder errors

Install nsenter

Don't build nsenter

Turn up e2e pod verbosity

Set pullPolicy IfNotPresent on HTTP challenge solver
2017-10-16 12:58:47 +01:00
James Munnelly 9f79eea7d1 Use pods instead of jobs for acme solver 2017-10-13 20:15:53 +01:00
James Munnelly 9d933d9e11 Only update certificate status in the controller package to stop conflicts 2017-10-13 20:15:29 +01:00
James Munnelly 29f44c2ed6 Fix domain authorization check 2017-10-13 18:28:40 +01:00
James MunnellyandGitHub a62afaa1e7 Merge pull request #120 from jetstack-experimental/fix-http-cleanup
Fix ACME HTTP Cleanup function
2017-10-13 18:09:33 +01:00
James Munnelly 213d895865 Fix ACME HTTP Cleanup function 2017-10-13 17:59:39 +01:00