Commit Graph

131 Commits

Author SHA1 Message Date
Michael Tsang
4b349f0f27 Check ACME issuer registered emails after first verifying
Signed-off-by: Michael Tsang <michael.tsang@jetstack.io>
2019-06-12 14:51:08 +01:00
James Munnelly
8d6358b46c Fix runtime errors with webhook apiserver library
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-29 18:10:47 +01:00
James Munnelly
004b35a872 Update webhook apiserver Scheme to add webhook API types
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-29 16:46:19 +01:00
James Munnelly
193a45dab9 Add comments to API types
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-18 14:04:55 +01:00
James Munnelly
e04847b7cd Add ACME webhook package
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-18 14:02:44 +01:00
James Munnelly
2f30258f0e Switch to klog
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-02-22 12:34:02 +00:00
Daniel Morsing
3fda9beb25 fix failing test
Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-06 14:19:05 +00:00
Daniel Morsing
4db43bf04c add Discover method to interface
Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-05 11:15:58 +00:00
Daniel Morsing
7a8f5be106 remove cached acme URI
This isn't needed since we now cache clients

Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-02-04 13:30:23 +00:00
jetstack-bot
14431c7f55
Merge pull request #1265 from DanielMorsing/clientreuse
Reuse acme clients to limit use of nonce/directory/accounts endpoints
2019-01-25 00:18:22 +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
Daniel Morsing
e2123ccbb3 clear acme client cache whenever an acme issuer is changed
This is a very in-elegant solution to the problem, but it avoids
having to look at other extant issuers and having background processes.

Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-01-24 15:41:11 +00:00
Daniel Morsing
19f66c4053 add client repository for acme clients
In its current state, this will leak acme clients if issuers are
being changed a lot

Signed-off-by: Daniel Morsing <dmo@jetstack.io>
2019-01-24 14:00:50 +00:00
jetstack-bot
1a75d41429
Merge pull request #1226 from munnerz/acme-client-metrics
Add prometheus metrics for ACME client HTTP requests
2019-01-17 17:28:02 +00:00
James Munnelly
4b6351a4f2 🤦
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-17 12:57:19 +00:00
James Munnelly
26ef11d2dc Use cached account URI on Issuer resource when constructing ACME client
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-16 23:48:19 +00:00
James Munnelly
804d328b14 Add prometheus metrics for ACME client HTTP requests
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-01-16 23:05:53 +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
jetstack-bot
e2c71e0876
Merge pull request #1062 from munnerz/order-errors
Add Errored type and mark orders as errored when creating fails
2018-11-26 16:48:33 +00:00
James Munnelly
b9947e3247 Skip re-checking ACME account status if Issuer is ready and URL hosts match
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-13 15:52:15 +00:00
James Munnelly
690b61fcbe Add Error type and mark order's as errored when creating fails
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-11-09 10:54:01 +00:00
James Munnelly
039a086f58 run //hack:update-bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:40 +01:00
James Munnelly
eadbbc85c5 Add missing boilerplate headers
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:39 +01:00
James Munnelly
d323a1df0d Add unit tests for acmeorders and acmechallenges
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:39 +01:00
James Munnelly
9214615d6e Fix race issues in ACME issue function. Add extended unit tests.
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:39 +01:00
James Munnelly
847d0c6152 Refactor controllers to return Response structures
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:38 +01:00
James Munnelly
4fcfbb44ef Add IsFinalState and IsErrorState functions
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-10-12 12:40:37 +01:00
James Munnelly
db65d6a170 run //hack:update-bazel
Signed-off-by: James Munnelly <james@munnelly.eu>
2018-09-13 11:24:48 +01:00
James Munnelly
51195e4c5f Update license header and add header to every file
Signed-off-by: James Munnelly <james.munnelly@jetstack.io>
2018-08-13 15:53:37 +01:00
James Munnelly
1ed6855bde Expose GetCertificate function 2018-08-08 13:39:30 +01:00
James Munnelly
36f9f356cd Refactor ACME client construction into dedicated ACME package 2018-08-07 15:22:53 +01:00