Commit Graph
66 Commits
Author SHA1 Message Date
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 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 8543cb9639 Remove actix-web dependencies, add hyper. (work in progress) 2020-02-25 15:54:35 +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 bf9ba749b8 Serve lagosta files in Krill (closes: #204) 2020-02-14 15:54:05 +01:00
Tim Bruijnzeels e6252333e8 Show server info (version and uptime) on API. (#201) 2020-02-11 12:12:01 +01:00
Tim Bruijnzeels cdad1ee810 Simplify error handling. (fixes #86) 2020-01-28 11:21:48 +01:00
Tim Bruijnzeels b2173f88f6 Move show stale publishers to /api/v1. (#177) 2020-01-21 11:29:18 +01:00
Tim Bruijnzeels 14025c566f Add endpoints for seeing issues with all, or specific, cas. (#175) 2020-01-21 09:53:38 +01:00
Tim Bruijnzeels 22dcad036a Add API endpoint and CLI option for listing publishers stale for X seconds. (closes: #177) 2020-01-17 15:16:26 +01:00
Tim Bruijnzeels dcccd3c304 Add prometheus stats for the CAs. (#176) 2020-01-16 16:46:13 +01:00
Tim Bruijnzeels a03761fef6 Add prometheus stats for the embedded repository. (#176) 2020-01-14 11:34:59 +01:00
Tim Bruijnzeels 41763d68b8 Adding configurable limits for RFC 8181 and RFC 6492. (#158) 2019-12-18 12:20:12 +01:00
Tim Bruijnzeels 2f5b9f9c64 Add post size limit to api json (#158) 2019-12-18 11:23:54 +01:00
Tim Bruijnzeels f52ae43e91 Remove logins and cookies as they are not required by Lagosta. 2019-12-18 11:23:54 +01:00
ximon18andGitHub bcf4031fe1 Quick PoC hack to support uploading more children resources. 2019-12-17 17:02:18 +01:00
Tim Bruijnzeels b24ac3d806 Rename /api/v1/health to /api/v1/authorized which reflects more appropriately what it does. (#141) 2019-11-28 11:11:37 +01:00
Tim Bruijnzeels 1e0b2e64e5 Add end-point for getting the RFC8183 Parent Response as XML and json. (#141) 2019-11-28 10:04:08 +01:00
Tim Bruijnzeels 8f7e6d4fcc Add end-point for getting the RFC8183 Publisher Request as XML. (#141) 2019-11-27 16:43:29 +01:00
Tim Bruijnzeels da889f29e9 Add end-point for getting the RFC8183 Child Request as json. (#141) 2019-11-27 16:30:49 +01:00
Tim Bruijnzeels ff6267b9cc Add end-point for getting the RFC8183 Repository Response as json. (#141) 2019-11-27 16:30:07 +01:00
Tim Bruijnzeels 93c6cb5b81 Separate repo config and state endpoints. (#141) 2019-11-27 10:53:00 +01:00
Tim Bruijnzeels a2b2a811e7 Use explicit .xml for child_request xml end point. (#141) 2019-11-27 09:16:12 +01:00
Tim Bruijnzeels 1ffb01b554 Fix inconsistency in path routing. (#141) 2019-11-26 15:12:18 +01:00
Tim Bruijnzeels 1d2f4aa38d Better error reporting when updating a repository for a CA. (#141) 2019-11-25 16:13:53 +01:00
Tim Bruijnzeels df66d8b403 Better responses for unknown methods vs resources in the API. (fixes: #146) 2019-11-24 09:55:22 +01:00
Tim Bruijnzeels 66a0c75acb Add regression tests to ensure that 0.4.0 events can always be parsed. 2019-11-23 21:34:40 +08:00
Tim Bruijnzeels 5c0a04200d Use separate API call for list authorisations (closes #127) 2019-11-14 15:46:58 +01:00
Tim Bruijnzeels 26bb82014f Show parents in list, and parent contact only as separate call in API and CLI (Closes #138) 2019-11-14 15:13:39 +01:00
Tim Bruijnzeels 4d62555466 Add option to refresh, sync and publish all CAs in bulk from the CLI and API. (fixes #114) 2019-11-08 17:21:42 +01:00
Tim Bruijnzeels e2e6c9ee92 Publish at remote server (#60), migrate to it from the embedded (#104), and back (#105). 2019-11-08 13:44:58 +01:00
Tim Bruijnzeels 714f0fcb6e Show repo state and published objects through API and CLI. (#104) 2019-11-04 14:28:56 +01:00
Tim Bruijnzeels c6f38065a7 Add rfc8183 publisher request to API and CLI. (#104) 2019-11-04 11:29:20 +01:00
Tim Bruijnzeels f08d9a359f Allow remote publishers (#107) and remove publishers (#113). 2019-10-31 14:43:16 +01:00
Tim Bruijnzeels 2c6d810aab Allow users of a UI to login using the API token, and then be allowed access. 2019-10-14 16:44:26 +02:00
Tim Bruijnzeels 7fec0e3c5d Remove krillserver (plain api) publication contact. Closes #101. 2019-10-11 17:02:58 +02:00
Tim Bruijnzeels d5e9c03f4a Add/update/remove parent and/or child. Closes #91 #92 #93 2019-10-10 12:18:40 +02:00
Tim Bruijnzeels 3da221afb3 Explicitly trigger background refresh CA certificates when testing. Closes: #87 2019-10-02 17:17:34 +02:00
Tim Bruijnzeels f1f43dcebf Show history of CA in CLI. Closed: #90 2019-10-01 15:23:09 +02:00
Tim Bruijnzeels 1d232e2659 Stop using work space. 2019-09-12 21:46:46 -07:00
Tim Bruijnzeels 6248f0baf0 Introducing api client (issue #34). Still things to do, see below.
Done:
* api client introduced
* code can do a list and parse the json response

Todo:
* Token validation on API
* Synchronise directory
* Binary for api client
* Format output for client (text/json/none)
* Cleanup, most notably move http client code into util for re-use.
2019-01-23 16:48:14 +01:00
Tim Bruijnzeels 0ffcd18e74 Moving shared API data (between server and client) into its own module. 2019-01-23 16:48:14 +01:00
Tim Bruijnzeels c2ba03e679 Some more work done to separate the CMS/XML protocol and JSON. Still some more cleanup coming. (see issue #34) 2019-01-23 16:48:14 +01:00