Commit Graph

130 Commits

Author SHA1 Message Date
Michael Tsang
2cc1c4df07 Add MaxConcurrentChallenges flag and associated structs to options
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io>
2019-05-13 16:55:38 +01:00
James Munnelly
500d8fbeb7 Create image bundles in multiarch_image target
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-05-03 11:16:25 +01:00
James Munnelly
9906c0d946 Add feature gate for ValidateCAA functionality and default it to off
To help avoid issues with the ValidateCAA functionality, this disables
the CAA check by default and adds a new --feature-gates=ValidateCAA=true
option to cert-manager-controller to allow enabling the previous
behaviour in v0.7.0 and v0.7.1.

Once issues with CNAMEd DNS names pointing to internal nameservers
are resolved, this option will be defaulted to on.

Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-25 15:10:05 +01:00
James Munnelly
942d6491d6 Pass StopCh and RESTClient to controller context
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-18 14:22:08 +01:00
James Munnelly
871ed4283b Allow controller constructors to return errors
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-18 14:22:04 +01:00
Lennart Jern
cd576dd8db Set default acmesolver image based on arch
Signed-off-by: Lennart Jern <lennart.jern@gmail.com>
2019-03-22 17:32:34 +01:00
Louis Taylor
c640c2f070 Expose metrics server on non-leader instances
This makes sure all cert-manager instances have a metrics endpoint.

Fixes #1352.

Signed-off-by: Louis Taylor <louis@kragniz.eu>
2019-03-18 12:41:39 +00:00
James Munnelly
d282c5f2aa Run update-bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-12 14:24:51 +00:00
James Munnelly
420ebfebe2 Use goflag instead of pflag for logs
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-12 14:24:51 +00:00
James Munnelly
f4c0de2627 Define pkg/api.Scheme with all used types registered
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-12 14:24:51 +00:00
James Munnelly
46faba06b6 Update acmesolver to use logr
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-12 14:24:51 +00:00
James Munnelly
6b24e9c966 Update cainjector
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-12 14:24:51 +00:00
James Munnelly
5d73076db9 Update logs package for go-logr
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-12 14:24:50 +00:00
James Munnelly
41934a2b57 Enable Venafi issuer in controller binary
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-03-01 13:16:03 +00:00
James Munnelly
9e914d6457 Update generated files
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-27 15:43:17 +00:00
James Munnelly
f90d145688 Rename to cainjector
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-27 15:26:23 +00:00
James Munnelly
22edcc9071 Update flag descriptions
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-27 15:26:23 +00:00
Solly Ross
42248a91d7 CA Injector Controller
This implements a CA injector controller using controller-runtime.
It looks at admission webhooks and APIServices with a particular
annotation, and injects the CA data from certificates.

Signed-off-by: Solly Ross <sollyross@google.com>
2019-02-26 21:47:34 -08:00
James Munnelly
2f30258f0e Switch to klog
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-22 12:34:02 +00:00
James Munnelly
a9d8f7de8a Fixup for Kubernetes 1.13.2
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-22 11:53:19 +00:00
Daniel Morsing
af019ad1e8 add log line when restarting
Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-18 16:41:22 +00:00
Daniel Morsing
175f13e136 watch TLS cert file
The admissions server middleware we use doesn't want to do
hot-reloading, so instead, watch the file and if it changes, have
the k8s server restart the webhook

Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-18 15:56:48 +00:00
James Munnelly
149cbb30a7 Add arm32 and arm64 bazel image targets
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-08 15:10:45 +00:00
James Munnelly
0bb864871e Increase acmesolver default cpu resource limit to 100m
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-07 17:16:01 +00:00
James Munnelly
094ae3e50c Fix CLI flag not being respected
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-06 16:11:37 +00:00
James Munnelly
948a2cf77c Add more OWNERS files with auto-labels
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-24 19:38:31 +00:00
jetstack-bot
5f96b378e6
Merge pull request #1184 from tlmiller/feature/authnss
Control authoritative dns01 server check.
2019-01-12 15:25:07 +00:00
Thomas Miller
dacd0b45cb Control authoritative dns01 server check.
Adds cmd flag for controlling if authoritative dns servers are used to
check RR propagation or just normal resolvers.

This change is added so that constrained enviornments can control more
aspects of DNS queries performed.

- Applying PR feedback

Signed-off-by: Thomas Miller <thomas@tlm.id.au>
2019-01-12 20:17:28 +10:00
Louis Taylor
3d0e06a0b9 Add note to help text about clusterissuers
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2019-01-10 13:52:52 +00:00
Louis Taylor
bbda87b3c8 Add --namespace flag
Signed-off-by: Louis Taylor <louis@kragniz.eu>
2019-01-10 13:52:52 +00:00
James Munnelly
0fcc0c666c Update copyright header year
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-07 15:07:55 +00:00
James Munnelly
bca6ed6e64 Switch ACME challenge scheduler to evaluate all challenges at once
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-29 22:49:55 +00:00
jetstack-bot
a21ac37a74
Merge pull request #713 from kragniz/add-prometheus-metrics-endpoint
Add cert-manager specific metrics to Prometheus endpoint
2018-11-26 15:45:33 +00:00
jetstack-bot
2c74eabb1c
Merge pull request #819 from ccojocar/cert_secret_ref
Set the certificate as an owner of the secret
2018-11-26 15:06:33 +00:00
Louis Taylor
cf872a9fc9
Add prometheus metrics
Count certificate requests

Add certificate_expiry_time_seconds metric

Register certificate_expiry_time_seconds metric, fix kind switch and fix metric status result

Export nameForIssuer and remove unneccessary switch

Refactor metrics into controller context

Move metrics collection into functions

Move error checking for metrics collection back into sync function

Remove space

Add TODO

Move update certificate expiry function to metrics package

Refactor metrics functionality

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Run dep ensure

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Fix build

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Refactor

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Fix reporting errors

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Add comments

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Remove unused issuerType

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Update dep inputs-digest

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Don't update status

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Make metrics package level var

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Add prometheusMetricsServerMaxHeaderBytes comment

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Add failures metric

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Remove issue metrics

TODO: hopefully revert this at some point.
Signed-off-by: Louis Taylor <louis@kragniz.eu>

Assign metrics

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Update dep digest

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Fix copyright header

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Remove old metrics server

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Update bazel files

Signed-off-by: Louis Taylor <louis@kragniz.eu>

Clean up

Signed-off-by: Louis Taylor <louis@kragniz.eu>
2018-11-26 13:13:44 +00:00
Cosmin Cojocar
3766edcd12 Set the default value of enable-certificate-owner-ref to false
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
2018-11-26 09:48:02 +01:00
James Munnelly
17c5a2e21c Update BUILD.bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-07 16:22:25 +00:00
James Munnelly
719dd915d1 Re-enable webhook during e2e tests and fix panic on start
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-07 16:06:49 +00:00
jetstack-bot
ac80ed82f1
Merge pull request #1046 from munnerz/logs-pkg
Revert "Remove pkg/logs package"
2018-11-07 09:48:55 +00:00
jetstack-bot
04ac65caee
Merge pull request #1047 from munnerz/stamped-images
Stamp docker images with current timestamp using Bazel
2018-11-07 09:28:45 +00:00
James Munnelly
175e90c158 Revert "Remove pkg/logs package"
This reverts commit b6f854f849.

Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-06 20:05:32 +00:00
James Munnelly
2541b10e52 Stamp docker images with current timestamp using Bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-06 19:18:15 +00:00
jetstack-bot
ace5c2b2f2
Merge pull request #738 from gambol99/acme_options
Configurable ACME Annotation
2018-11-06 16:00:02 +00:00
James Munnelly
b6f89ae9dd Regenerate files
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-06 12:31:16 +00:00
James Munnelly
85d433cff9 Add ACME challenge scheduler and process challenges for matching domains/types in serial
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-06 12:31:16 +00:00
Rohith
e2f13f5f9c Requested Changes
- changing the name of the command line option to --auto-certificate-annotations
- making the option an array to allow for multiple annotations settings

Signed-off-by: Rohith Jayawardene <gambol99@gmail.com>
2018-11-06 12:09:47 +00:00
Rohith
712a7a85ee Configurable ACME Annotation
- adds a option command line (default to the current behavour) which allows the user to control the acme annotation used by the shim controller
- a current mitgration requires use to run multiple providers at the same

Signed-off-by: Rohith Jayawardene <gambol99@gmail.com>
2018-11-06 12:09:18 +00:00
Cosmin Cojocar
5be660ec9e Fix typo in filed name
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
2018-10-28 20:08:48 +01:00
Cosmin Cojocar
5d36fba075 Add a flag which controls whether the certificate is configured as an owner of the secret where the effective TLS certificate is stored
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
2018-10-28 19:55:26 +01:00
Benjamin Staffin
e7e2f28584 webhook: Fix "logging before flag.Parse" errors
Fixes #932

Signed-off-by: Benjamin Staffin <benley@gmail.com>
2018-10-22 20:46:44 -04:00