Commit Graph
116 Commits
Author SHA1 Message Date
Ximon EighteenandGitHub 13b6f7d1f3 Security tweaks (#382) (#484)
* Encrypt session state using ChaCha20-Poly1305 instead of AES-GCM.
* Replace config file users login use of insecure unsalted SHA2 password hashing with secure scrypt salted password hashing.
* Log the start of the request before determining the actor.
* Allow sufficient time for password hashing delays during login with config file user based tests..
* Synced with Lagosta commit b49f23de.
2021-04-20 00:47:22 +02:00
Tim BruijnzeelsandGitHub b43a6815cf Inconsistent and unacceptable token references (#433) (#483) 2021-04-19 22:23:02 +02:00
67ca2f4914 Disable update existing repository (#481)
* Disallow updating a repository if it had been set before
* Check that a repository is available before adding it
* Use "krillc repo configure" because it describes the action better

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2021-04-19 16:10:35 +02:00
Tim BruijnzeelsandGitHub 3b139e4a9f Clippy and spelling fixes (#471)
* Fix clippy warnings.
* Fix spelling - as agreed use american spelling in code (like RFCs do as well).
2021-04-15 14:42:32 +02:00
7cb5674033 Stabilize API and CLI (#330 and #360)
* Move child_request API endpoint for conststency. (#330)
* Move get RFC 8183 Publisher Request API endpoints (#330)
* Accept XML and json to add/update parent on same endpoints (#330)
* Simplify the JSON to add a child and remove unused fields. (#330)
* Update path to child_request in openapi spec.
* Update path to publisher request.
* Update api spec and documentation.
* Fix update parent API documentation and call by CLI.
* CLI stability
* Update pubd OpenAPI spec t o match changes made to the Krill API.
* Update the e2e test client code to submit only the id_cert and not the whole RFC8183 request, as required by changes made to the Krill API.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2021-04-12 17:24:41 +02:00
a715c82f7f Remove embedded repo/ca choices (#461)
* Remove embedded repository contact option, migrate commands and events.
* Migrate old CA init events. Test upgrade from 0.6.0.
* Migrate embedded in CA history.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2021-04-01 17:18:28 +02:00
e662c1553b Change to a hybrid event sourcing model for CAs and Repository. (#426)
This allows us to keep the full history of semantically important events, while not spamming the history and avoiding excessive use of disk space. See issues #370 and #423.

This is a substantial change. Highlights follow:
* Added a developer documentation section
* No longer using events for manifest/crl generation (#370)
* No longer using events for publication deltas (#423)
* Removed pre 0.6.0 migration code - people will have to upgrade to at least 0.6.0 first
* Added migration code for 0.6.0-0.8.1 to this
* Migrate repository by doing a keyroll. (#370)
* Remove archiving code for commands (no longer applicable)

Minor other fixes:
* Use a swap file when writing (avoid corrupt json if disk is full) (#370)
* Make removing publisher content idempotent for publishers already removed.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
Co-authored-by: Jasper den Hertog <jasper@plainspace.com>
2021-03-17 12:08:36 +01:00
Tim Bruijnzeels a1c8889b56 Remove a CA (CLI and API only) #359 2021-01-05 16:08:23 +01:00
Tim Bruijnzeels 0413217c53 Rename 'krillpubc server delete' to `krillpubc server clear' #365 2020-12-23 15:00:38 +01:00
Tim Bruijnzeels fa1cebf4d1 Fix multi-user config initialisation. 2020-12-15 17:23:42 +01:00
Tim Bruijnzeels e8eee26246 Change 'publishers' api path back for backwards compatibility. 2020-12-14 16:41:06 +01:00
Tim Bruijnzeels 9d2d0eabc0 Manage Repository Server init/remove through API (#353) 2020-12-14 16:01:33 +01:00
Tim Bruijnzeels 4db7721fc1 Fix clippy warnings in latests rust version. 2020-12-09 12:32:46 +01:00
Tim Bruijnzeels 5efe2fa377 Separate krillpubd and krillpubc. (#338) 2020-12-09 11:31:42 +01:00
Ximon Eighteen 8ced1564e8 More multi-user feature exclusions for krillc. 2020-12-07 18:18:49 +01:00
Ximon Eighteen 472a0e4751 Merge multi-user branch. Uses Lagosta master branch commit a7e73cba which includes multi-user support. 2020-12-07 16:55:40 +01:00
Tim Bruijnzeels 81c737fdd8 Remove derive_more dependency #297 2020-11-11 13:39:31 +01:00
Tim Bruijnzeels a054f76ba8 Remove derive_more to reduce dependency tree. 2020-11-10 16:11:28 +01:00
Tim Bruijnzeels 2d42bd6949 Hide the "rta" functionality in the CLI behind a feature. 2020-09-18 10:48:04 +02:00
Tim Bruijnzeels 31394d3ba0 Cosign RTA (#284) 2020-09-16 16:08:13 +02:00
Tim Bruijnzeels cba2bb852d Add prep multi-sign RTA to CLI (#284) 2020-09-14 15:36:34 +02:00
Tim Bruijnzeels acd189c486 Prepare keys for multisigned RTA (#284) 2020-09-14 15:08:20 +02:00
Tim Bruijnzeels bc19fb7987 Remember and show (oneoff) RTA. (#284) 2020-09-14 15:08:20 +02:00
Tim Bruijnzeels 7ec21fb539 Make Signer an explicit enum rather than generic. (#314) 2020-09-07 16:13:15 +02:00
Tim Bruijnzeels 727eeadcb0 Show full entitlements for parent status. (#250) 2020-08-24 14:59:41 +02:00
Tim Bruijnzeels 17588d727a Clean up old repo state code. (#250) 2020-08-20 14:01:15 +02:00
Tim Bruijnzeels 6adfe7821e Get repository status through CLI. (#250) 2020-08-11 10:30:02 +02:00
Tim Bruijnzeels 5cbbe2e6ca Get repository status through API. (#250) 2020-08-10 15:21:26 +02:00
Tim Bruijnzeels d70294d913 Let users try a ROA delta, and reject it with advice if it would result in invalids. (#302) 2020-08-05 16:09:03 +02:00
Tim Bruijnzeels 65b7148d7d Allow large enum variants for clippy. 2020-08-05 14:15:50 +02:00
Tim Bruijnzeels fb059a6d96 Show the statuses of parents through the CLI and API. (#260) 2020-08-03 11:03:20 +02:00
Tim Bruijnzeels 58b4e27287 Improve AS0 suggestions and analysis. (#293) 2020-07-29 14:54:53 +02:00
Tim Bruijnzeels 5d3dcf1642 Dry-run ROA updates, show the impact for the affected prefixes. (#290) 2020-07-28 17:03:32 +02:00
Tim Bruijnzeels 3fb4d164b3 Provide (scoped) ROA suggestions. (#289) 2020-07-28 11:16:14 +02:00
Tim Bruijnzeels cc41dde274 Configure rustfmt to allow 120 chars per line. 2020-07-24 14:17:44 +02:00
Tim Bruijnzeels af7a9c6c12 Use local (and now much cleaner) implementation for ID Certificate logic. (closes #45) 2020-07-22 15:07:49 +02:00
Tim Bruijnzeels aa89b3dbe7 Sign oneoff RTA (still needs e2e testing). (#283) 2020-07-20 16:54:48 +02:00
Tim Bruijnzeels cb1ad601ca Clean up unneeded BGP analysis endpoints. (#259) 2020-06-19 10:18:19 +02:00
Tim Bruijnzeels 5009ab509f Remove the 'embedded' option from the CLI and openapi spec (#258) 2020-06-12 09:37:05 +02:00
Tim Bruijnzeels 6a206fe254 Change notify.xml to notification.xml (#237) 2020-06-10 15:56:25 +02:00
Tim Bruijnzeels 7e48920717 Merge branch 'master' into 0.6.0-plus 2020-06-10 14:01:02 +02:00
Ximon Eighteen 7a2dd77d19 Be consistent when referring to ending with a / (fixes: #255) 2020-06-05 15:10:36 +02:00
Ximon Eighteen cd98336060 Use the term CAs consistently in krillc help summary texts (fixes: #254) 2020-06-03 16:39:14 +02:00
Ximon Eighteen a7d610c7e5 Don't report XML as a possible output format (fixes #253) 2020-06-03 15:55:27 +02:00
Ximon Eighteen 875f595bb4 Normalize request/response krillc help texts (fixes: #252) 2020-06-03 13:55:17 +02:00
Ximon Eighteen 38c5564791 krillc parents help text correction (fixes: #251) 2020-06-03 13:51:40 +02:00
Tim Bruijnzeels 1e4d0954d5 Add ROA centric API end-point for BGP vs ROAs analysis (#242) 2020-06-02 15:17:07 +02:00
Ximon Eighteen 095ac3c7bf Updated krillc to use the changed 'issues' API paths. (fixes: #248) 2020-06-02 11:22:15 +02:00
Tim Bruijnzeels f4ff7e3d36 Make specific end-point for announcement centric ROA vs BGP analysis. (closes: #241) 2020-05-29 17:06:17 +02:00
Tim Bruijnzeels 6eefebdbdc Show BGP vs ROA analysis in CLI. (#233) 2020-05-27 09:55:24 +02:00