Commit Graph

348 Commits

Author SHA1 Message Date
James Munnelly
fa7e052ac1 Move to github.com/jetstack/cert-manager repo 2017-11-03 16:41:39 +00:00
jetstack-bot
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-bot
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-bot
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-bot
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-bot
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-bot
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-bot
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-bot
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
jetstack-bot
3b3ad36c20 Merge pull request #165 from munnerz/fix-panic
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 panic in ACME issuer setup

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

Fix a panic in the ACME issuer registration flow

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

Closes #164 

**Release note**:

```release-note
Fix panic if the secret named in an ACME issuer exists but contains invalid data (or no data)
```
2017-10-26 21:55:58 +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-bot
7d414ed553 Merge pull request #161 from jetstack-experimental/update-v011
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>.

Update default chart version to v0.1.1

```release-note
NONE
```

/assign
2017-10-26 17:55:07 +01:00
James Munnelly
c40c3e9b35 Update default chart version to v0.1.1 2017-10-26 17:40:36 +01:00
jetstack-bot
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
jetstack-bot
938ffbe5b3 Merge pull request #149 from munnerz/hack-cherry-pick
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>.

Add cherry-pick-pull script to hack/

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

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

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```

/cc @simonswine 
/assign
2017-10-26 11:48:14 +01:00
jetstack-bot
001e40ede7 Merge pull request #155 from munnerz/fix-race
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 Present and CleanUp run in serial

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

Fixes a race in the ACME HTTP solver when using multiple domains.

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

Closes #153 

**Special notes for your reviewer**:

**Release note**:

```release-note
Fix race condition in ACME HTTP01 solver when validating multiple domains
```
2017-10-26 11:45:10 +01:00
James Munnelly
8c9d235e8d Ensure Present and CleanUp run in serial 2017-10-26 10:46:17 +01:00
James Munnelly
a9d4572ecd Add cherry-pick-pull script to hack/ 2017-10-24 13:47:36 +01:00
jetstack-bot
703074b1b7 Merge pull request #96 from simonkey007/master
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>.

Route53 provider configuration
2017-10-24 12:56:08 +01:00
Szymon Kodrebski
6696e4529b Added comments for using hostedZoneID field with route53 provider 2017-10-24 13:43:59 +02:00
Szymon Kodrebski
7085fa25bf Added route53 provider to Issuer example. Created ClusterIssuer example 2017-10-24 09:10:08 +02:00
jetstack-bot
5d3a3296ba Merge pull request #146 from dippynark/slim-down-main-readme
Automatic merge from submit-queue.

Slim down main README, complete user guide list and change helm user …

**What this PR does / why we need it**: This PR slims down the main README and links out to further  user guides and documentation. This allows users of cert-manager to find the information they are after more easily
2017-10-24 01:44:40 +01:00
Luke Addison
7744c0989d Wrap at 80 chars 2017-10-24 00:13:19 +01:00
Luke Addison
63b51be34d Slim down main README, complete user guide list and change helm user guide structure 2017-10-23 23:51:32 +01:00
jetstack-bot
e166f59d5f Merge pull request #144 from jetstack-experimental/update-labels
Automatic merge from submit-queue.

Add provider labels. Clean up old labels.

```release-note
NONE
```

/assign munnerz
/area admin
2017-10-23 21:32:22 +01:00
jetstack-bot
f694039382 Merge pull request #143 from jetstack-experimental/issue-template
Automatic merge from submit-queue.

Create ISSUE_TEMPLATE.md

**Release note**:

```release-note
NONE
```

/area admin
2017-10-23 21:28:49 +01:00
jetstack-bot
3f54dad575 Merge pull request #131 from dippynark/create-use-case-focused-tutorials
Automatic merge from submit-queue.

Create use-case focused tutorials
2017-10-23 21:24:46 +01:00
James Munnelly
64849ca565 Add provider labels. Clean up old labels. 2017-10-23 21:18:57 +01:00
James Munnelly
aca1506607 Create ISSUE_TEMPLATE.md 2017-10-23 21:15:01 +01:00
jetstack-bot
de74f7265c Merge pull request #142 from jetstack-experimental/pull-request-template
Automatic merge from submit-queue.

Create PULL_REQUEST_TEMPLATE.md

```release-note
NONE
```
2017-10-23 20:57:13 +01:00