Commit Graph

528 Commits

Author SHA1 Message Date
James Munnelly
e2b73e8cf5 Update boulder FAKE_DNS var 2018-01-13 19:57:47 +00:00
James Munnelly
50506a3dce Set a 10 minute timeout when installing boulder 2018-01-13 19:53:30 +00:00
James Munnelly
707fa724d9 Update nginx service cluster IP 2018-01-13 19:33:34 +00:00
James Munnelly
df37668943 Fix boulder by setting static hostname 2018-01-13 17:39:34 +00:00
James Munnelly
643e285965 Fix testing ACME URL 2018-01-13 16:37:13 +00:00
James Munnelly
c3a4943d85 Add 'set' to start of ci.sh 2018-01-13 16:10:05 +00:00
James Munnelly
228e45e2bb Properly set ACMEURL in e2e tests 2018-01-13 16:07:59 +00:00
James Munnelly
d5dd212cab Setup minikube on travis, don't install docker-compose 2018-01-13 15:43:59 +00:00
James Munnelly
3318585efe Update .travis.yml 2018-01-13 15:41:11 +00:00
James Munnelly
9360fc1ed5 Use quay.io boulder image 2018-01-13 15:39:45 +00:00
James Munnelly
ffbf17cecd Fix passing boulder image args 2018-01-13 15:28:21 +00:00
James Munnelly
1125528aef Remove hostNetwork from cert-manager in e2e tests 2018-01-13 15:28:09 +00:00
James Munnelly
df279f3e63 Add boulder helm chart. Install boulder during e2e tests. 2018-01-13 15:19:48 +00:00
James Munnelly
e1c49d141d Install docker-compose 2018-01-13 02:58:52 +00:00
James Munnelly
b278e2b6b0 Add hack/ci.sh stop-gap script 2018-01-13 02:54:01 +00:00
James Munnelly
1d1190e50a Increase controllers to 5 workers to mitigate test failures 2018-01-13 02:21:41 +00:00
James Munnelly
b61fbdb446 Remove CA ClusterIssuer certificate e2e test 2018-01-13 01:43:01 +00:00
jetstack-ci-bot
96b8b11818
Merge pull request #237 from jetstack/fix-acme-reg-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 when ACME server returns a genuine error

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

Fixes a panic when an error other than HTTP Conflict is returned from the ACME server during registration.

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

Fixes #236 

**Release note**:
```release-note
Fix panic when ACME server returns an error other than HTTP Status Conflict during registration
```

/assign
2018-01-10 12:01:46 +00:00
James Munnelly
ea1dc8f58f Fix panic when ACME server returns a genuine error 2018-01-10 11:46:23 +00:00
jetstack-ci-bot
db2bc98821
Merge pull request #240 from dgageot/patch-1
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 typo in acme-http-validation.md

s/Certficate/Certificate



**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
```
2018-01-10 11:45:13 +00:00
David Gageot
454f875697
Fix typo in acme-http-validation.md
s/Certficate/Certificate
2018-01-09 10:44:46 +01:00
jetstack-ci-bot
7dcc3165f9
Merge pull request #239 from munnerz/update-dates
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 dates in generated license headers

**What this PR does / why we need it**:
Fixes the dates for 2018 in our generated files

**Release note**:
```release-note
NONE
```

/assign
2018-01-08 21:06:50 +00:00
James Munnelly
0ed9e8341f Update dates in generated license headers 2018-01-08 20:50:32 +00:00
jetstack-ci-bot
b978faa28c
Merge pull request #224 from clstb/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>.

provider names in issuer.yml and certificate.yml must match

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

Documentation fix. For further information see #209.

**Which issue this PR fixes** 

fixes #209

```release-note
NONE
```
2017-12-08 15:13:10 +00:00
jetstack-ci-bot
ebec81896b
Merge pull request #221 from munnerz/update-secret
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 Secrets instead of replacing to preserve additional metadata

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

Previously we always overwrite the existing certificate if it already existed. Some users have requested a way to automatically create the target secrets using a helm chart, so that all artifacts can be cleaned up cleanly upon `helm delete`.

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

Fixes #192

**Release note**:
```release-note
Update existing secrets instead of replacing in order to preserve annotations/labels
```
2017-12-02 00:30:34 +00:00
jetstack-ci-bot
21202bac98
Merge pull request #219 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 authorize function

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

Fixes a panic in the authorize() method of the acme issuer

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

Fixes #206 

**Release note**:
```release-note
Fix a bug in the ACME authorizer that would cause cert-manager to panic when certificate.spec.acme was not specified
```
2017-12-01 23:52:31 +00:00
James Munnelly
76559f737f Update Secrets instead of replacing to preserve additional metadata 2017-12-01 23:48:05 +00:00
James Munnelly
5f196cbe31 Fix panic in acme authorize function 2017-12-01 23:24:09 +00:00
jetstack-ci-bot
28fc543db6
Merge pull request #218 from munnerz/test-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>.

Enable go race detector and fix race in scheduler

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

Fixes a race condition in the scheduler package and enables the race detector in tests

**Release note**:
```release-note
Fix a race condition in the package responsible for scheduling renewals
```
2017-12-01 23:22:58 +00:00
James Munnelly
cee4610dd6 Enable go race detector and fix race 2017-12-01 22:54:12 +00:00
James Munnelly
1caf4d67ef Fix cluster issuer tests. Add hostNetwork option. Turn up log level. 2017-12-01 19:56:03 +00:00
jetstack-ci-bot
583cc89019
Merge pull request #214 from munnerz/0.2.2
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 for v0.2.2

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

Version bump for 0.2.2

**Release note**:
```release-note
NONE
```
2017-12-01 19:24:46 +00:00
James Munnelly
2d1d0fec2e Update minikube and enable RBAC 2017-12-01 19:04:26 +00:00
James Munnelly
0706fb8847 Use cert-manager installed via helm in e2e tests
Print pod logs on test failure

Remove old flags from e2e_test makefile target
2017-12-01 18:53:42 +00:00
jetstack-ci-bot
bc35be34dd
Merge pull request #215 from munnerz/fix-renewal
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 expired ACME authorizations 

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

Fixes a bug that caused ACME certificates to not be renewed

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

Fixes #205 

**Special notes for your reviewer**:

I've also added unit tests to verify that this patch works.

I'd like to create some e2e tests for renewal in future, but it'll involve some hacking at boulder to do so.

**Release note**:
```release-note
Fix a bug that caused ACME certificates to not be automatically renewed
```
2017-12-01 18:07:42 +00:00
James Munnelly
d8a5a8d5af dep ensure 2017-12-01 17:41:58 +00:00
James Munnelly
b67340b134 Fix checking for expired ACME authorizations 2017-12-01 17:37:24 +00:00
James Munnelly
606f925993 Update for v0.2.2 2017-12-01 16:53:08 +00:00
jetstack-ci-bot
6ad35b3a18
Merge pull request #212 from munnerz/ingress-shim-fixes
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>.

Ingress shim fixes

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

Fixes ingress-shim image name in helm chart
Allow specifying extraArgs to ingress-shim in helm chart

**Release note**:
```release-note
NONE
```

/assign
2017-12-01 16:41:02 +00:00
James Munnelly
638733f617 Add ingressShim.extraArgs param to helm chart 2017-12-01 15:28:02 +00:00
James Munnelly
d9e44d2af9 Correctly set default image-shim image repo 2017-12-01 13:43:27 +00:00
jetstack-ci-bot
3f62be9421
Merge pull request #210 from munnerz/ingress-shim
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 ingress-shim controller to create Certificates based on annotations on ingress resources

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

Adds a new controller, ingress-shim, that will automatically create Certificate resources for ingress resources with annotations on them.

By setting defaults on the ingress-shim CLI, it's possible to re-implement the `kubernetes.io/tls-acme` behavior of kube-lego.

There also needs to be some documentation written about this, as well as a user guide. This can be our migration story for users coming from kube-lego as well. It'd be interesting to know how easily it'd be to support a seamless migration from [kube-cert-manager](https://github.com/PalmStoneGames/kube-cert-manager) through this tool too.

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

Fixes #19 

**Special notes for your reviewer**:

This includes unit tests for sync.go in the new controller, as well as a basic e2e test that ensures an ACME certificate is obtained correctly when an annotation is set on an ingress.

**Release note**:
```release-note
Add ingress-shim controller to automatically create Certificate resources based on annotations on ingresses. This allows for easy creation of Certificate resources when using ingress.
```

Slightly related to #97
2017-12-01 12:46:55 +00:00
James Munnelly
5a18c1aff2 Add unit test cases for dns01 buildCertificates 2017-12-01 12:30:51 +00:00
James Munnelly
d91963db85 Raise boulder e2e test rate limits 2017-12-01 11:59:17 +00:00
James Munnelly
2068f7bb57 Add dummy ingress path 2017-12-01 11:22:40 +00:00
James Munnelly
b2f5698145 Fix flag redefined error 2017-12-01 11:05:46 +00:00
James Munnelly
45c3c8b283 Remove unused var 2017-12-01 10:27:47 +00:00
James Munnelly
9b8a55d55c Import ingress e2e test suite 2017-12-01 01:53:57 +00:00
James Munnelly
70e2a2ec60 Fix check for certificate in ingress-shim e2e 2017-12-01 01:46:27 +00:00
James Munnelly
3ccadb5f73 Fix image-shim image in e2e tests 2017-12-01 01:38:30 +00:00