Commit Graph

603 Commits

Author SHA1 Message Date
Euan Kemp
4e5a2d1646 issuer/dns/route53: append our user-agent 2018-04-06 18:09:17 -07:00
Euan Kemp
9c3b4e83b4 pkg/util/kube: set user-agent
This should make it slightly easier to filter api-server logs for
cert-manager activity
2018-04-06 18:09:17 -07:00
Euan Kemp
4d9b0e836e issuer/dns/akamai: set user-agent 2018-04-06 18:09:17 -07:00
Euan Kemp
34391f0726 issuer/dns/cloudflare: set user-agent 2018-04-06 18:09:17 -07:00
Euan Kemp
f122c9c9c2 issuer/acme: add a timeout to the http client 2018-04-06 18:09:17 -07:00
Euan Kemp
7f12fb346c issuer/acme: move 'user-agent' logic to util
This logic should be shared by things like the aws client as well.
2018-04-06 18:09:11 -07:00
jetstack-bot
acfc2f78d1
Merge pull request #322 from yieldlab/akamai-support
Add ACME DNS-01 provider for Akamai FastDNS
2018-04-04 18:26:22 +01:00
jetstack-bot
8a1b00895d
Merge pull request #422 from jsha/user-agent
Add a meaningful User-Agent.
2018-04-04 17:12:22 +01:00
James Munnelly
e87ff94458 Fix import paths and use util.AppVersion for user agent version 2018-04-04 12:42:21 +01:00
Jacob Hoffman-Andrews
8baac71058 Add a meaningful User-Agent. 2018-03-30 14:18:38 -07:00
jetstack-bot
0f2fad4726
Merge pull request #416 from jetstack/munnerz-patch-1
Delete .travis.yml
2018-03-27 20:48:00 +01:00
James Munnelly
333417d3fd
Delete .travis.yml 2018-03-27 18:22:10 +01:00
jetstack-bot
95883c47dd
Merge pull request #363 from euank/nonstatic-aws-creds
Allow non-static AWS credentials for Route 53, gated by "ambient credentials" flags
2018-03-26 12:35:18 +01:00
jetstack-bot
977b038d2b
Merge pull request #408 from kragniz/resource-limits
Add limits to http validation pod
2018-03-26 10:47:51 +01:00
Euan Kemp
faac0701ab issuer/route53: respect 'ambient' flag for region
This notably results in the region being a required field if the
'ambient' option is not set for a given issuer.
2018-03-24 14:16:33 -07:00
Euan Kemp
8857ea55b3 docs/api-types: mention ambient credentials 2018-03-24 14:13:19 -07:00
Euan Kemp
f848ecf529 docs/examples: mention ambient credentials 2018-03-24 14:13:19 -07:00
Euan Kemp
f88707df88 docs: xref ambient issuers in cluster-issuer docs 2018-03-24 14:13:19 -07:00
Euan Kemp
1c57feb523 docs: add ambient credentials documentation 2018-03-24 14:13:19 -07:00
Louis Taylor
e8d6861d31
Increase memory limits 2018-03-24 00:24:51 +00:00
Euan Kemp
dd48f4aa05 issuer/acme/dns: add ambient=false unit test 2018-03-23 14:30:43 -07:00
Euan Kemp
971ef4f198 issuer/route53: remove unused integ test
I'm convinced this test was never run and also did not provide any
significant value in this project.
2018-03-23 14:30:43 -07:00
Euan Kemp
0d39da5174 issuer/route53: improve logging hosted zone errs 2018-03-23 14:30:43 -07:00
Euan Kemp
0fb787eae7 controller: add ambient issuer flags and feature
This implements ambient credential support for AWS, gated behind flags
for issuers and cluster issuers.

This adds the pair of flags discussed in
https://github.com/jetstack/cert-manager/issues/308.

It provides an implementation for those flag's effects for the route53
solver.
2018-03-23 14:30:43 -07:00
Euan Kemp
0e6ca80a70 issuer/route53: remove zone-id env test
The zone id is never read from the environment; this test tests
functionality which doesn't exist in the actual software, so there's no
point in having it.
2018-03-23 14:30:43 -07:00
Matt Moyer
14c109af46 Drop unused NewDNSProvider() method.
Signed-off-by: Matt Moyer <moyer@heptio.com>
2018-03-23 14:30:42 -07:00
Matt Moyer
1236a93d1e Allow non-static AWS credentials for Route 53.
This change maintains backwards compatibility, but makes the `accessKeyID` and `secretAccessKeySecretRef` fields of the `route53` DNS provider optional.
If not provided, AWS credentials will be loaded from `AWS_*` environment variables or the EC2 metadata service.
This should also work for things that impersonate the EC2 metadata service, such as [kube2iam](https://github.com/jtblin/kube2iam) and [kail](https://github.com/uswitch/kiam).

Signed-off-by: Matt Moyer <moyer@heptio.com>
2018-03-23 14:30:42 -07:00
jetstack-bot
37ed6f3ab1
Merge pull request #387 from etiennetremel/helm-add-pod-annotations
Add podAnnotations
2018-03-23 19:38:15 +00:00
jetstack-bot
b3ddc60331
Merge pull request #410 from munnerz/update-k8s-deps
Update k8s dependencies to v1.10.0-rc.1
2018-03-23 18:50:15 +00:00
James Munnelly
34ae73615b Run hack/update-codegen.sh 2018-03-23 18:30:49 +00:00
James Munnelly
bbf74d4b07 Update k8s dependencies to v1.10.0-rc.1 2018-03-23 18:30:16 +00:00
Louis Taylor
f7cdf91626
Create quotas in e2e tests 2018-03-23 17:16:45 +00:00
Louis Taylor
d6c7244028
Add limits to http validation pod 2018-03-23 16:30:34 +00:00
jetstack-bot
5865aba4da
Merge pull request #397 from euank/hack-ver
make: split 'verify_pr' out
2018-03-16 12:43:29 +00:00
Etienne Tremel
78992fd6ec Upgrade chart version to 0.2.5 2018-03-16 08:56:48 +01:00
Etienne Tremel
6f666d10a3 Adjust podAnnotations description 2018-03-16 08:55:45 +01:00
Etienne Tremel
c84bee9ffc Update docs 2018-03-16 08:55:44 +01:00
Etienne Tremel
04262e2b88 Add podAnnotations 2018-03-16 08:55:44 +01:00
Euan Kemp
9233e30ef5 make: split 'verify_pr' out
This allows a developer to type 'make verify' and get working useful
output. The new char_verify behavior can't currently be run on a
developer's machine since it depends on a git pr sha being set.

I also fixed up the list of phony targets
2018-03-15 19:09:21 -07:00
Euan Kemp
9f76e28d02 make: default to building, not verifying 2018-03-15 19:09:21 -07:00
Euan Kemp
25979480d4 hack: correctly check for empty PULL_BASE_SHA
The existing comparison fails due to the 'nounset' option being on.
That failure masks the nicely formatted error message the if message is
trying to print. This correctly prints the intended error instead of
bash's default unset behavior.
2018-03-15 19:09:21 -07:00
jetstack-bot
08df3631fa
Merge pull request #396 from munnerz/fix-verify-script
Fix verify-chart-version script when running more than once
2018-03-15 20:34:08 +00:00
jetstack-bot
9104ab435d
Merge pull request #386 from kragniz/update-certs-on-ingress-change
Reconfigure certs when ingress config changes
2018-03-15 18:33:09 +00:00
James Munnelly
da71175a7e Fix verify-chart-version script when running more than once 2018-03-15 18:11:25 +00:00
jetstack-bot
64be4bd4ce
Merge pull request #391 from euank/​​​
Trim aws credentials for acme dns route53 provider
2018-03-15 18:04:09 +00:00
Euan Kemp
78b1b8d69d issuer/acme/dns: refactor provider construction
Previously, each provider's package-level 'New' function was being
called.

That made mocking it out for a different function that records data or
returns different output quite difficult.

This PR introduces an additional layer of abstraction in the form of
effectively a vtable struct for the dns providers. It's defaulted to the
same package-level constructors as before, but unit tests in the dns
package can easily override it.

A new test for the previously-introduced route53 trimming behavior is
also added.
2018-03-14 01:25:15 -07:00
Euan Kemp
8aefbb1470 Trim aws credentials for acme dns route53 provider
AWS credentials don't contain whitespace, and it's very easy to
accidentally include spaces or newlines at the end of secrets.
2018-03-14 01:09:25 -07:00
Louis Taylor
1690408632
crtEqual -> certNeedsUpdate 2018-03-12 18:40:56 +00:00
Louis Taylor
7bb9048578
Add update testcase 2018-03-12 18:36:39 +00:00
Louis Taylor
d7153ecc1e
Test updates 2018-03-12 18:36:21 +00:00