Commit Graph
85 Commits
Author SHA1 Message Date
Tim Bruijnzeels e76b6cc7bd Update version to post release dev version. 2021-12-14 12:24:56 +01:00
Tim BruijnzeelsandGitHub b798420cf8 Update version and Changelog for 0.9.3 (#739) 2021-12-14 09:09:28 +01:00
Tim Bruijnzeels 6ac7acfc33 Update version and changelog for release 0.9.3-rc3 2021-11-10 13:25:15 +01:00
Tim BruijnzeelsandGitHub 733a9baae8 Depend on rpki-rs 0.13.1-rc2 with updated aspa OID. (#723) 2021-11-10 13:10:37 +01:00
Tim Bruijnzeels b925f022b2 Prepare release 0.9.3-rc2 2021-11-05 15:07:53 +01:00
Tim BruijnzeelsandGitHub 77dac7a6ca Support ASPAs with an explicit empty provider as set. (#685) 2021-11-05 14:43:35 +01:00
Tim BruijnzeelsandGitHub 9931d61601 Proof of concept ASPA support (#685) 2021-11-02 16:34:33 +01:00
Tim Bruijnzeels 2a696d1be3 Update versions for release 0.9.3-rc1 2021-10-20 11:27:56 +02:00
61e7fc01e4 Add random jitter to ca publish next update times (#692)
Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2021-10-20 10:34:27 +02:00
Tim Bruijnzeels 33379c7c19 Update version for release 0.9.2 2021-10-04 14:22:52 +02:00
Tim Bruijnzeels a09d360ede Update version for 0.9.2-rc3 release. 2021-09-24 10:44:27 +02:00
Tim Bruijnzeels b4ddfccc2b Update version for development. 2021-09-16 10:49:24 +02:00
Tim Bruijnzeels 15b282db98 Update version for release candidate 0.9.2-rc1. 2021-09-13 15:28:32 +02:00
Tim Bruijnzeels 9c90073db1 cargo update 2021-09-13 13:23:24 +02:00
27fd25dcb2 Use async reqwest for openid connect checks (#645)
PR #646

* cargo update
* Use an enum instead of a trait (prepare to allow async)
* Use async reqwest client for openid connect checks.
* Move extract bearer token function to util::httpclient.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2021-09-06 13:38:17 +02:00
Tim Bruijnzeels 1dfffed3ff Update to latest rpki-rs. 2021-08-30 13:25:50 +02:00
Tim Bruijnzeels 9a3a847824 Merge 0.9.1 release into dev 2021-07-20 11:41:30 +02:00
Tim Bruijnzeels d6c03b6f01 Update versions for release 0.9.1 2021-07-20 10:34:23 +02:00
Tim Bruijnzeels 328a92cae6 Update version for 0.9.1-rc2 release. 2021-07-17 19:31:14 +02:00
Tim Bruijnzeels 58c84b224f Update version and changelog for target 0.9.1-rc1 release. 2021-07-16 11:02:47 +02:00
Tim Bruijnzeels 6c9167622a Update verstion to next release (candidate) target. 2021-07-02 10:37:21 +02:00
Tim BruijnzeelsandGitHub 8be620b606 Update dependencies: rpki-rs, bytes, tokio, hyper, reqwest (#584)
* Update dependencies: rpki-rs, and therefore bytes, tokio, hyper, reqwest
* Rust 1.51 clippy
* Update minimal rust version to 1.47
    socket2 requires improved const fn support.
    exponential compile-time and type_length_limit and async in 1.46.

See PR #586
2021-07-02 10:20:24 +02:00
Tim BruijnzeelsandGitHub ff85ea5170 Release 0.9 (#523) 2021-06-01 12:54:50 +02:00
Tim BruijnzeelsandGitHub bee105eabe Prepare 0.9 release (#523) 2021-06-01 12:06:28 +02:00
Tim Bruijnzeels e14b08fed5 Update version for release 0.9.0-rc3 (#528) 2021-05-20 16:22:18 +02:00
Tim Bruijnzeels 60fb21912d Update release version for 0.9.0-rc2 2021-05-11 16:38:25 +02:00
Tim BruijnzeelsandGitHub da10ff09ba Log resource diffs where applicable (#514)
Also fixes an issue with requesting new certificates too often.
2021-05-10 15:10:49 +02:00
Tim Bruijnzeels 16bef69a92 Update version for development. 2021-04-21 14:48:44 +02:00
Tim BruijnzeelsandGitHub ba6ee80423 Updates for the v0.9.0-rc1 release (#489)
* Add documentation on releasing.
* Update version in Cargo.
* Update versions in openapi spec.
* Update changelog
2021-04-20 20:13:59 +02:00
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
Ximon EighteenandGitHub afa860702d Remove unnecessary multi-user dependency features. (#488) 2021-04-19 16:53:43 +02:00
Ximon EighteenandGitHub 192709ff40 Bump openidconnect dependency from beta to final (#486) 2021-04-19 16:49:07 +02:00
2917e21c3b Ran cargo update (#366)
* Ran cargo update.
* Upgrade Oso and remove no-longer needed workaround.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2021-04-15 14:41:32 +02:00
Ximon Eighteen f2fd4ba75d Upgrade to Oso 0.11.2 to get a MUCH better error report when a ?= query in a .polar file fails, plus the Mutex around Oso is no longer needed. 2021-03-26 09:10:02 +01:00
Ximon EighteenandGitHub f3e8023be5 Support fine grained access per CA (resolves #437) (#443)
- Various changes to support a grey policy in between black and white approach of permitting or denying access to CAs entirely, whereby a user can have a different role in one CA than in another.
- Introduces the NoResourceType for requests not relating to a specific "resource", e.g. CA, such as LOGIN. NoResourceType maps to `nil` in Oso policy language.
- Add support for Permission constants in Polar files. Build the Permission enum using a macro.
- Added CA_ADMIN (for bulk operations) and CA_DELETE permissions.
- Support loading more than one custom auth policy file.
- Checks were missing on some API calls if the user had the necessary permission *on the relevant resources*.
- Rename the team policy as a demo to indicate that it is educational only.
- Split a role-per-ca demo out of the team policy demo.
- Extend the with_ta Cypress test to cover the role-per-ca ca demo policy (as it creates the needed data).
- Don't misrepresent an external policy file in log statements as being internal.
- Better comments describing what the tests are doing.
- Remove unused role parameter in team access demo policy.
- Add disallow() in Oso policies as a way to define deny rules.
2021-03-25 21:35:38 +01:00
Ximon Eighteen 38d98078a3 Bump openidconnect dependency. 2021-03-20 21:03:59 +01:00
Ximon EighteenandGitHub 0f930f37ef Logout enhancements (closes #385, closes #397, fixes #408, closes #425) (#436)
- Formalize support for different logout strategies and add the fallback strategy.
- Generate the logout URL at logout time in preparation for supporting dynamic logout requests (as needed by token revocation).
- Secure the connection to the mock OpenID Connect provider with a self-signed TLS certificate.
- Allow self-signed certificates for HTTPS connections to localhost (same policy as elsewhere in Krill).
- Upgrade openidconnect-rs to latest v2.0.0 alpha to gain contributed support for OAuth 2.0 Token Revocation. (#385 and #397)
- Use reqwest 0.9.x directly instead of via the openidconnect-rs crate (we cannot use the v0.11.x reqwest that comes with the crate as (a) it doesn't permit self-signed certificates, (b) the blocking implementation was changed to be async which causes problems when inside an existing async runtime, and (c) switching the OpenID Connect client code over to be async is non-trivial - see #428).
- Pass the ID token as `id_token_hint` to the OpenID Connect RP-Initiated Logout 1.0 endpoint. (#408)
- Refined logic for the various logout mechanism permutations. (#425).
- Require OpenID Connection RP-Initiated Logout 1.0 and OAuth 2.0 Token Revocation endpoints to be HTTPS per the specs.
- Passes manual testing with Microsoft Azure Active Directory RP-Initiated Logout support and Google Compute Cloud OAuth 2.0 Token Revocation support.
- Added a Google Cloud Platform example to the comments in the default config file.
- Updated and added tests.
- Fixed logout and token revocation in the mock OpenID Connect provider to actually terminate login sessions.
- Handle a race condition in Lagosta where null user data was accessed that was just deleted due to logout.
- Handle errors from the Krill logout endpoint in Lagosta.
2021-03-08 23:39:45 +01:00
Ximon EighteenandGitHub e3eb5e6752 Add a CTRL-C handler to Cypress UI tests to prevent the Cypress Docker container being left running if the test is aborted while running. (#431) 2021-03-08 11:27:23 +01:00
Ximon EighteenandGitHub fa59e69d59 Bump 0.8.1-bis -> 0.8.2-bis. (#393) 2021-01-15 15:20:39 +01:00
Ximon Eighteen a060b8c122 Implement proper OpenID Connect nonce. 2020-12-14 13:38:19 +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 a8d3a9c1de Update versions for dev branch. 2020-11-18 12:11:46 +01:00
Tim Bruijnzeels b5b0b03d0f Remove lazy_static! (#349) 2020-11-17 17:15:43 +01:00
Tim Bruijnzeels a054f76ba8 Remove derive_more to reduce dependency tree. 2020-11-10 16:11:28 +01:00
Tim Bruijnzeels 62bb32babd Starting dev branch targetting 1.0.0 release. 2020-11-10 14:17:57 +01:00
Tim Bruijnzeels a74bd158fa Update Changelog and versions for 0.8.1-rc1 release. 2020-11-10 09:23:09 +01:00
Tim Bruijnzeels d10f65535f Update dependency versions. 2020-10-27 14:33:00 +01:00
Tim Bruijnzeels 8203eade74 Remove unnecessary dependency. 2020-10-27 10:51:32 +01:00
Tim Bruijnzeels e90acaa3d9 Remove unnecessary dependency. 2020-10-27 10:42:47 +01:00
Tim Bruijnzeels a318328a06 Update development version. 2020-10-27 09:00:12 +01:00