Commit Graph
392 Commits
Author SHA1 Message Date
Tim Bruijnzeels 2751d63dc0 Create PID file on startup, allow users to override path in config. (Closes: #215) 2020-03-20 12:33:06 -03:00
Tim Bruijnzeels 0b37fc53c8 Serve RRDP files directly from Krill as well (please use a proxy people!!) (#189) 2020-03-20 12:02:31 -03:00
Tim Bruijnzeels 5391e06c10 Add timeout to HTTP client - in case connections get stuck. (#189) 2020-03-18 11:01:22 -03:00
Tim Bruijnzeels f30769270e Merge branch 'master' into hyper-https-server 2020-03-16 17:18:35 -03:00
Tim Bruijnzeels 7f8f46373b Serve TAL and TA.cer using hyper (#189) 2020-03-16 17:00:28 -03:00
Tim Bruijnzeels 923855f968 Serve static (lagosta) content using hyper. (#189) 2020-03-16 16:54:47 -03:00
Tim Bruijnzeels e755f0ab65 Merge test modules - cleanup. 2020-03-16 14:55:21 -03:00
Tim Bruijnzeels 67dcf3efb6 Merge endpoints.rs into http/server.rs. (#189) 2020-03-16 14:37:49 -03:00
Tim Bruijnzeels 2d9532ecdf Postpone using Option::flatten() until Rust 1.40 is a bit older. 2020-03-16 14:17:12 -03:00
Tim Bruijnzeels 04acd3aa4a Improve checking the size of post body. (#189) 2020-03-16 13:04:29 -03:00
Tim Bruijnzeels 4c716c8f09 Use hyper for all of the API - and make lots of stuff async-await as a result. (#189) 2020-03-15 11:55:05 -03:00
Tim Bruijnzeels f4374e483b Convert remaining publisher API methods for hyper. (#189) 2020-03-10 16:28:38 +01:00
Tim Bruijnzeels bd5cd74adf Posting new publisher to API (includes enforcing limit on submitted json) (#189) 2020-03-10 15:09:49 +01:00
Tim Bruijnzeels b9c35bbee6 Add all get methods for the 'publisher' API (#189) 2020-03-10 11:09:47 +01:00
Tim Bruijnzeels f727f75e72 List publishers in API (#189) 2020-03-09 16:51:46 +01:00
Tim Bruijnzeels 99a13c557b Route API for authorized end-point. (#189) 2020-03-09 16:36:32 +01:00
Tim Bruijnzeels 20a5a6eb9a Add metrics to routing (#189) 2020-03-09 14:47:48 +01:00
Tim Bruijnzeels 9aab2a4b36 Add health check and not found to routing. (#189) 2020-03-09 14:35:48 +01:00
Tim Bruijnzeels 90850407ad Factor out the 'map_request' function.: 2020-03-09 11:25:32 +01:00
Tim Bruijnzeels e34d28debb Add SSL support to the hyper server. 2020-03-06 16:47:57 +01:00
Tim Bruijnzeels 6c2b05d5b3 Fix to accept self-signed certificates in RFC8183 messages: do not insist that AKI == SKI. 2020-03-02 09:50:24 +01:00
Tim Bruijnzeels fdfad1dcd4 Add TLS support to the hyper server. 2020-03-02 09:09:51 +01:00
Tim Bruijnzeels b2ca379501 Use hyper based responses. 2020-02-26 14:29:45 +01:00
Tim Bruijnzeels 75d4da9000 Clean up dependencies. 2020-02-25 16:09:55 +01:00
Tim Bruijnzeels 8543cb9639 Remove actix-web dependencies, add hyper. (work in progress) 2020-02-25 15:54:35 +01:00
Tim Bruijnzeels af02042129 Update version numbers for development on next release. 2020-02-25 11:12:33 +01:00
Tim Bruijnzeels 58a98f51cd Update versions. 2020-02-24 12:12:54 +01:00
Tim Bruijnzeels 2f5ba2ed13 Return error when CA does not hold resources for child. 2020-02-21 14:45:30 +01:00
Tim Bruijnzeels b09791fd44 Sending requests to revoke extra keys should work better when actually triggered. 2020-02-21 12:36:31 +01:00
Tim Bruijnzeels 566fa0f554 Extract times for publication (stale, valid, threshold) to constants. 2020-02-20 15:35:11 +01:00
Tim Bruijnzeels 0ab529b80d Increase log levels for triggered actions. 2020-02-20 12:52:55 +01:00
Tim Bruijnzeels fd59327fa4 Accept ID certificates that are not self-signed, issue for 15 years. (fixes: #207) 2020-02-19 17:20:10 +01:00
Tim Bruijnzeels 21663f1e8b Revoke unexpected surplus keys at the parent. (fixes: #200) 2020-02-19 11:48:22 +01:00
Tim Bruijnzeels 3698cdee7d Fix status code for CA or other resource not found. (fixes: #203) 2020-02-17 16:56:21 +01:00
Tim Bruijnzeels 345493d805 Read pre-RFC8183 parent response when running under ARIN. (closes: 205) 2020-02-17 16:44:13 +01:00
Tim Bruijnzeels 5df86c4645 Use dedicated uri (/api/v1/{ca}/parents-xml/{parent}) when uploading a parent response as xml. (fixes: #206) 2020-02-17 15:43:43 +01:00
Tim Bruijnzeels f062aa32dd Allow posting of parent response xml to a path with an explicit parent_handle. (fixes: #206) 2020-02-17 14:46:12 +01:00
Tim Bruijnzeels 8939ea1faf Trigger refresh for CA when repo is added. (closes #202) 2020-02-17 13:01:29 +01:00
Tim Bruijnzeels ee38cd74f9 Fix clippy warnings under rust 1.41 2020-02-14 15:58:30 +01:00
Tim Bruijnzeels bf9ba749b8 Serve lagosta files in Krill (closes: #204) 2020-02-14 15:54:05 +01:00
Tim Bruijnzeels 66aab326e2 Make the CLI more consistent. (fixes: #129) 2020-02-13 22:26:29 +01:00
Tim Bruijnzeels 7d7010ccca Simplify ReportFormat in CLI (fixes: #132) 2020-02-12 17:31:14 +01:00
Tim Bruijnzeels c6ff655517 Fix check trailing '/' on --rrdp for config generation with CLI. 2020-02-12 16:42:08 +01:00
Tim Bruijnzeels fb46f45338 Allow user to specify trusted HTTPS certificates using env KRILL_HTTPS_ROOT_CERTS. (closes: #195) 2020-02-12 11:47:34 +01:00
Tim Bruijnzeels fd6ba2aa2d Check arguments of CLI (fixes: #133) 2020-02-12 11:01:59 +01:00
Tim Bruijnzeels 3793aa2e66 Show server info (version, uptime) in CLI. (closes: #201) 2020-02-11 17:26:56 +01:00
Tim Bruijnzeels 18e4c993e1 Add krill server start timestamp to prometheus /metrics (#201) 2020-02-11 16:43:32 +01:00
Tim Bruijnzeels 2b55445978 Let Krill use the parent's name for the resource class when revoking a key. 2020-02-11 16:24:43 +01:00
Tim Bruijnzeels e6252333e8 Show server info (version and uptime) on API. (#201) 2020-02-11 12:12:01 +01:00
Tim Bruijnzeels 3f0668584a Let users add parent before configuring the repository (but do not request certificates) (closes #199) 2020-02-10 14:04:54 +01:00