joshvanl
109b3e0b28
Rename Wehook's API server host flag from --master to --api-server-host
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
746cd7460b
Updates approval review comment to correctly state cluster scope and
...
issuer name
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
d69e798b83
Update validation approved tests for new string
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
5b34d9a6cc
Change cert-manager-controller approve RBAC resource names to
...
':approve-cert-manager-io'
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
393848ee98
Fix webhook RBAC resource names to use ':subjectaccessreviews'
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
ed22fb99f6
Change approved/denied forbidden error to read better for EU
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
a97be01bd8
Adds test comment to approval e2e test
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
8048034b0e
Adds permissions to approve "issuer.cert-manager.io/*", "clusterissuer.cert-manager.io/*" signers to the cert-manager-controller ServiceAccount
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
157b577056
Adds Approval SubjectAccessReview checks to e2e UserInfo suite
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
59049ee58a
Add SubjectAccessReview client to validation registration on webhook start. Make API address configurable
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
f640f64fcb
Update integration test framework to restart the API to share the
...
address with the webhook
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
13d8cc707f
Adds SubjectAccessReview checks in webhook, if ValidateUpdate Succeeds
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
92c6ce88bb
Register approval checks with validation init registration
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
53cb1835f7
Adds SubjectAccessReview registry to the validation Registry
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
78aba9c01f
Adds approval condition SubjectAccessReview check
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
jetstack-bot
bad96f5102
Merge pull request #3582 from lalitadithya/vault_health_check_and_namespace_fix
...
Vault health check and namespace fix
2021-03-26 15:20:58 +00:00
jetstack-bot
19ae739ab7
Merge pull request #3760 from SgtCoDFish/selfsigned-validity-3634
...
selfsigned: warn when certs are issued with empty issuer DNs
2021-03-26 12:30:58 +00:00
jetstack-bot
77b045d159
Merge pull request #3791 from JoshVanL/cert-manager-controller-diabled-controllers-flag
...
Enables disabling enabled cert-manager-controller controllers
2021-03-26 12:00:58 +00:00
Ashley Davis
5e31fa37ff
selfsigned: warn when certs have empty issuer DNs
...
as raised in#3634 - RFC 5280 states that the issuer field cannot be
empty, but this could easily happen with selfsigned certs which had
an empty subject (as the issuer matches the subject when the cert is
self signed)
this commit detects when a cert would be issued selfsigned with an
empty subject DN and emits a warning event, allowing cluster operators
to detect the warning and potentially either re-issue to generate a
compliant cert, or else accept the risk.
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-03-26 11:51:46 +00:00
joshvanl
8f5b03427c
Fix options_test.go boilerplate header
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 11:28:01 +00:00
joshvanl
6ef840972c
Change controller options to return a set of enabled controllers, and
...
log enabled controllers on start
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 11:28:01 +00:00
joshvanl
5c3e02d7a5
Changes the controllers flag to allow disabling controllers. This is the
...
same behaviour as kube-controller-manager
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 11:28:01 +00:00
joshvanl
0382c9d8b2
Adds a cert-manager-controller flag to disable controllers, for example,
...
the certificaterequests-approver
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 11:28:01 +00:00
jetstack-bot
a8c75fab1a
Merge pull request #3773 from JoshVanL/certificate-revision-history-limit
...
Certificate revision history limit
2021-03-26 11:13:58 +00:00
jetstack-bot
0f3aba2791
Merge pull request #3792 from JoshVanL/kubectl-cert-manager-approve-deny
...
Adds kubectl cert-manager [approve|deny] CLI commands
2021-03-26 10:38:58 +00:00
joshvanl
9ab0a5a77c
Fix command comments
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-25 19:08:21 +00:00
jetstack-bot
7946df1da7
Merge pull request #3788 from maelvls/refactor-trigger-unit-tests
...
Refactor trigger-controller unit tests
2021-03-25 11:41:36 +00:00
jetstack-bot
e987591f4a
Merge pull request #3786 from OmairK/StatusCheck-3663
...
Certificate Readiness controller only updates certificate's status if there is a change
2021-03-25 09:20:04 +00:00
Maël Valais
7e21f730cc
PR comment: typo: "the following are" instead of "is"
...
Signed-off-by: Maël Valais <mael@vls.dev>
Co-authored-by: Jake Sanders <i@am.so-aweso.me>
2021-03-25 09:07:45 +01:00
Maël Valais
fe3617a41c
PR comment: a sentence starts with a capital letter and ends with a dot
...
Signed-off-by: Maël Valais <mael@vls.dev>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2021-03-24 19:19:34 +01:00
joshvanl
fd78593b59
Fixes Certificates revision manager controller name
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-24 17:32:45 +00:00
joshvanl
f25be73f73
Adds comments for the Reason and Message options of the ctl approve and
...
deny commands
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-24 17:17:42 +00:00
Omair Khan
68271f105b
Certificate Readiness controller will only try to update the
...
certificate status if there is a change.
Signed-off-by: OmairK <omairkhan064@gmail.com>
2021-03-24 20:45:19 +05:30
jetstack-bot
3a367927dc
Merge pull request #3793 from JoshVanL/dont-log-cr-deleted
...
Don't log from multiple controllers when a CertificateRequest is deleted
2021-03-24 13:27:46 +00:00
jetstack-bot
7204284063
Merge pull request #3741 from teejaded/bump-distroless
...
fix bump distroless/static
2021-03-24 11:16:46 +00:00
jetstack-bot
dffbf391db
Merge pull request #3733 from jakexks/renewBefore
...
Clarify the default values for the renewBefore and duration fields
2021-03-24 10:53:46 +00:00
jetstack-bot
6311c5fbab
Merge pull request #3789 from JoshVanL/standardise-controller-names
...
Standardise the name of controllers so there is consistency across the project
2021-03-23 18:21:34 +00:00
joshvanl
14d6f0720a
Don't log from multiple controllers when a CertificateRequest is deleted
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-23 17:49:52 +00:00
joshvanl
db617f0772
Adds kubectl cert-manager [approve|deny] CLI commands
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-23 17:30:09 +00:00
joshvanl
dd0b2bf510
Standardise the name of controllers so there is consistency across the
...
project
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-23 16:08:59 +00:00
joshvanl
d5ccbdb277
Fix test controller name of revision manager in integration test
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-23 15:58:35 +00:00
joshvanl
59ca6ca850
Move CertificateRequest revisionHistoryLimit validation to OpenAPI
...
validation
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-23 15:58:14 +00:00
joshvanl
5983290317
Change the prune and delete list function to certificateRequestsToDelete
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-23 15:57:32 +00:00
Maël Valais
71e707387a
trigger-controller: refactor test, inject gatherer and policychain
...
Injecting the whole Gatherer struct was not necessary for testing
since DataForCertificate is now fully unit-tested. With that, we
can mock the Gatherer.Evaluate function. Since there is no reason
to inject a full Gatherer object into the trigger controller, I chose
to inject a simple policies.Func. I named the function "shouldReissue"
since this is exactly what this function does.
I also refactored the test cases to use the same gen.Certificate
that we use in the rest of the codebase.
Signed-off-by: Maël Valais <mael@vls.dev>
2021-03-23 13:55:11 +01:00
jetstack-bot
f4f379066e
Merge pull request #3781 from alrs/alrs-fix-conformance-err
...
test/e2e/suite/conformance/certificates: fix dropped error
2021-03-22 08:10:50 +00:00
Lars Lehtonen
b98e39bfbf
test/e2e/suite/conformance/certificates: fix dropped error
...
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
2021-03-21 17:44:35 -07:00
Maël Valais
cdb6c16c6d
trigger-controller: log a msg when cert must be reissued
...
Signed-off-by: Maël Valais <mael@vls.dev>
2021-03-21 16:45:58 +01:00
Ashley Davis
ef5aa91f35
improve comment to match the function definition
...
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-03-19 13:59:33 +00:00
Ashley Davis
2404aceef4
remove unused function
...
this behaviour seems to be handled by translateIngressAnnotations
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-03-19 13:59:33 +00:00
Ashley Davis
b246c92a45
clarify exact curve types of current ECDSA keys
...
it's conceivable that in the future we could have Ed25519 certs,
which would also have a key size of 256 but would be a new named entry
here
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-03-19 13:59:30 +00:00