Commit Graph

620 Commits

Author SHA1 Message Date
JoshVanL
a6a8ee29e3 Moves issuing controller secret handler into secretsManager struct
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
JoshVanL
ffb5201d95 Adds extensible issuing controller
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
James Munnelly
b3fcd23f8d Fixup tautological condition
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
919a160bc4 Fix error message when looking up an owner fails
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
645ed70579 Add trigger controller unit tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
93a6dc56d2 Fix bug causing certificates to not be triggered after failure
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
221f6d4eb7 Log message when parsing a workqueue item fails
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
0f32bb46a8 Allow multiple predicate functions when listing CertificateRequests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:47 +01:00
James Munnelly
cf7e344425 Export PolicyChain type
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:46 +01:00
James Munnelly
97b33abf11 Add missing boilerplate headers
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:27:25 +01:00
James Munnelly
1fc9981359 Fix up use of Kubernetes clientset after rebase
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:27:15 +01:00
James Munnelly
6170a0852e Refactor trigger controller init for easier integration testing
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:26:21 +01:00
James Munnelly
22344352c8 Add experimental 'trigger' controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:26:21 +01:00
James Munnelly
822b9e17a0 Remove AdditionalRunFuncs from base controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-30 20:43:00 +01:00
James Munnelly
20ee4833dd Remove webhookbootstrap controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-30 14:26:05 +01:00
James Munnelly
881b886049 Update Kubernetes API client call-sites
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-26 12:58:50 +00:00
James Munnelly
134fa7e5e5 webhookbootstrap: fix updating Secret resources
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-25 09:37:34 +00:00
jetstack-bot
35add56ef5
Merge pull request #2625 from srbraun/crl
adds option to specify CRL Distribution Point. #2612
2020-03-23 13:33:32 +00:00
James Munnelly
acff2b12bb Fix JKS keystore functionality and add additional tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-23 10:02:42 +00:00
Sergey Braun
9b76cdd402
adds CDP field and description to CA issuer
Signed-off-by: Sergey Braun <dev@skra.space>
2020-03-19 12:52:43 +01:00
James Munnelly
2f92e38955 Set a 10s deadline on calls to Setup on issuers
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-06 20:47:17 +00:00
James Munnelly
98bc0d52f9 Add --experimental-issue-jks flag to enable JKS bundle generation
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-04 15:33:22 +00:00
jetstack-bot
02da8fbd6f
Merge pull request #2643 from munnerz/keystore-mvp
Add --experimental-issue-pkcs12 flag to enable PKCS12 bundle generation
2020-03-04 10:30:58 +00:00
James Munnelly
e9374730c9 Add --experimental-issue-pkcs12 flag to enable PKCS12 bundle generation
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-03-04 10:02:21 +00:00
jetstack-bot
00b101de76
Merge pull request #2597 from meyskens/emailsans
Add Email SANs
2020-03-03 16:31:56 +00:00
srBraun
04bfddefc3 adds support for CDP to selfsigned issuer
Signed-off-by: srBraun <dev@skra.space>
2020-03-02 12:40:46 +01:00
Josh Soref
81aaf3d7d2 spelling: signing
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-02-24 17:20:49 -05:00
Josh Soref
5e275cdacf spelling: propagation
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-02-24 17:20:10 -05:00
Josh Soref
08f7e24c74 spelling: invalid
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-02-24 16:43:19 -05:00
Josh Soref
093d6eb504 spelling: indices
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-02-24 16:42:58 -05:00
Josh Soref
77ebc73cc7 spelling: existing
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-02-24 16:42:37 -05:00
Josh Soref
b4f28e5d04 spelling: deprecated
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-02-24 16:42:26 -05:00
Josh Soref
8d801fc100 spelling: certificate
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-02-24 16:15:51 -05:00
James Munnelly
eccd7b3faf Only allow a single TLS entry per secret name in an Ingress resource
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-02-21 09:52:23 +00:00
Maartje Eyskens
d3a623314c Add EmailSANs field
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-21 08:49:00 +01:00
James Munnelly
5ed2c55006 ingress-shim: add unit tests for events
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-02-18 18:14:44 +00:00
jetstack-bot
672f7654a7
Merge pull request #2573 from meyskens/venafi-custom-fields
Add venafi.cert-manager.io/custom-fields annnotation
2020-02-17 12:24:24 +00:00
Maartje Eyskens
d40f010180 Error on an invalid custom field type
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-12 11:34:28 +01:00
Maartje Eyskens
1ebc9ef56b Properly sort imports
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-12 10:29:10 +01:00
Maartje Eyskens
292d7f1e61 Update vcert
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-07 09:19:24 +01:00
Maartje Eyskens
1eb4fc6846 Create internalvanafiapi to prevent cyclic imports
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-06 11:11:37 +01:00
Maartje Eyskens
e040d4f284 Implement feedback
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-06 10:32:06 +01:00
Maartje Eyskens
15b9a940e7 Add tests for custom fields inside internal/venafi
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-05 16:14:49 +01:00
Maartje Eyskens
ae742c588e Add tests for custom fields inside certificaterequest controller
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-05 15:36:30 +01:00
Maartje Eyskens
93f0cfa717 Use internal CustomField to add json tags
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-05 14:12:16 +01:00
Maartje Eyskens
42f3bca6ef Move annotation to apis
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-05 14:08:41 +01:00
JoshVanL
0e18ba7b1d
Run a First func for webhook secret bootstrap and catch recursive unit
test

Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-02-05 11:49:31 +00:00
JoshVanL
e9c04b57d9
Adds a First function to controllers which run after initialisation
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-02-05 11:48:20 +00:00
JoshVanL
72d6d030c8
Adds Create expected action to webhook bootstrap tests due to always
Create being attempted

Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-02-04 17:34:00 +00:00
JoshVanL
c940b30ac1
Added comment around recursive function call and cleans up Create/Update
code

Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-02-04 16:59:48 +00:00