Commit Graph
371 Commits
Author SHA1 Message Date
James Munnelly 6f1c81a360 Add ingress-shim sync unit tests 2017-12-01 16:44:55 +00:00
James Munnelly caac395478 Add dockerfile for ingress-shim 2017-12-01 16:44:55 +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
Euan KempandJames Munnelly d95beac42c Update to go 1.9 2017-12-01 16:44:53 +00:00
James Munnelly ed5b1a9162 Clean up Makefile and place Dockerfiles in subdirectory 2017-12-01 16:44:51 +00:00
Euan KempandJames Munnelly b3536753be Fix doc link typo 2017-12-01 16:44:49 +00:00
Aaron TroutandJames Munnelly e849772995 s/Drupal/cert-manager/ 2017-12-01 16:44:48 +00:00
James Munnelly d3ec6454a5 Update for 0.2.1 release 2017-11-04 14:49:21 +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
```
v0.2.1
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
jetstack-botandGitHub 3a36aa0876 Merge pull request #188 from munnerz/automated-cherry-pick-of-#186-upstream-release-0.2
Automatic merge from submit-queue.

Automated cherry pick of #186

Cherry pick of #186 on release-0.2.

#186: Don't test pkg/client/ and third_party/ packages

```release-note
NONE
```
2017-11-04 01:19:07 +00:00
jetstack-botandGitHub 33c71ebfbe Merge pull request #187 from munnerz/automated-cherry-pick-of-#183-upstream-release-0.2
Automatic merge from submit-queue.

Automated cherry pick of #183

Cherry pick of #183 on release-0.2.

#183: Improve validation of certificates. Fix bug in checking
2017-11-04 01:18:04 +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 5673452bc6 Don't test pkg/client/ and third_party/ packages 2017-11-04 01:06:09 +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 d6fcee3b8f Prepare v0.2.0 release v0.2.0 2017-11-03 18:23:46 +00:00
jetstack-botandGitHub 2f159a0f00 Merge pull request #145 from jetstack-experimental/move-org
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>.

Move to github.com/jetstack/cert-manager repo

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

Closes #134 

**Release note**:

```release-note
Move to 'jetstack' organisation.

Action required: this will require updating your existing deployments to point to the new image repository, as new tags will not be pushed to the old 'jetstackexperimental/cert-manager-controller` repository.
```

/area admin
/assign
/release-note-action-required
2017-11-03 17:03:43 +00:00
James Munnelly fa7e052ac1 Move to github.com/jetstack/cert-manager repo 2017-11-03 16:41:39 +00:00
jetstack-botandGitHub 16e0770d06 Merge pull request #179 from munnerz/tidy-up-informers
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>.

Tidy up informers

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

Refactors the controllers and issuers to use the new vendored and filtered informers

**Special notes for your reviewer**:

Do not merge until #178 has merged

**Release note**:
```release-note
No longer support ClusterIssuer resources when cert-manager is running with `--namespace` flag set
```

/assign
2017-11-03 16:11:06 +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 3552a21a71 Generate informers for Kubernetes types 2017-11-03 15:26:19 +00:00
James Munnelly a4468c76c5 Use munnerz/code-generator 2017-11-03 15:26:19 +00:00
jetstack-botandGitHub 568079ee97 Merge pull request #178 from munnerz/codegen-script
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>.

Switch to using generate-group script in code-generator

**Release note**:
```release-note
NONE
```
2017-11-03 15:25:01 +00:00
James Munnelly 103cafc77b Fix e2e test imports 2017-11-03 15:09:07 +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 ed79785ac4 Update Makefile & update-client-gen script 2017-11-03 14:48:37 +00:00
James Munnelly bb72eb3a99 Depend upon code-generator packages 2017-11-03 13:24:53 +00:00
jetstack-botandGitHub 5ca6605fe4 Merge pull request #177 from munnerz/pinned-deps
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>.

Pin dependencies to release-1.8

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

Pins us to use versioned Kubernetes dependencies

**Release note**:
```release-note
NONE
```
2017-11-03 12:24:23 +00:00
James Munnelly 026d107e3a Remove old ImportPrefix field 2017-11-03 12:08:03 +00:00
James Munnelly c6b34a3ed6 Pin dependencies to release-1.8 2017-11-03 11:59:50 +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
jetstack-botandGitHub 2b97398525 Merge pull request #171 from munnerz/account-rediscov
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>.

Allow rediscovering lost/not set ACME account URIs

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

Overcome 'registration already exists for provider key' errors in ACME provider by auto-detecting lost ACME registration URIs

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

fixed #151, fixes #162 

**Special notes for your reviewer**:

This change causes us to *always* attempt to register an account, and upon failure will read the account ID from the `Location` header of the registration response and then verify *that* account.

**Release note**:
```release-note
Overcome 'registration already exists for provider key' errors in ACME provider by auto-detecting lost ACME registration URIs
```
2017-10-27 19:02:03 +01:00
James Munnelly 753db1ebbb Add e2e test for recovering account URI 2017-10-27 18:09:11 +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
jetstack-botandGitHub d4c9d3b185 Merge pull request #170 from munnerz/fix-invalid-data
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>.

Fix checking for invalid data in issuer secrets

Fixes #169 

**Release note**:
```release-note
Fix checking for invalid data in issuer secrets
```

/assign
2017-10-26 23:00:44 +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