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
055b817881
Cargo clippy - rust 1.54
2021-08-30 13:13:20 +02:00
Tim Bruijnzeels
8584efe429
Cargo fmt - rust 1.54
2021-08-30 11:31:35 +02:00
Ximon Eighteen and GitHub
d59ffc39f4
Remove errant file.
2021-08-30 11:11:11 +02:00
Tim Bruijnzeels and GitHub
12d802a9fc
Add unguessable subdir to RRDP snapshot and delta paths. ( #515 ) ( #641 )
2021-08-30 10:48:08 +02:00
Tim Bruijnzeels
6953fe917f
Use explicit functions for 'suspend' and 'unsuspend' rather than a boolean.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
5c90624ffd
Restrict ca_refresh_seconds to 10-60 minutes.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
4c554fb78f
Change ca_refresh in config to ca_refresh_seconds to be explicit.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
925020f7d6
Formatting
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
8bbd5c2e78
Remove calls to refresh_all in test
...
This is done in the expectation check now.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
40c06a4f9e
Remove a child from the child stats when it is removed from the parent ca.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
8c9da393c4
Track 'unsuspended' in its own field for ChildCertificateUpdates.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
3101cf9622
Improved variant documentation.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
412a9eab37
Rename 'inner' to 'issued' for clarity.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
ecbac2d19b
Improve clarity of terms.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
b7258e7462
Rename command label for consitency.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
e2bd486d88
Document funtion.
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
eb420f9d02
Clarify suspend directive in example config file. ( #623 )
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
4dc54f3a8c
Automatically suspend inactive child CAs *if* configured to do so. ( #623 )
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
48c6557bd3
Unsuspend child CA when it sends a valid RFC 6492 request. ( #623 )
...
(also make tests more deterministic wrt ca refresh)
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
319f00081a
Add support (and API) for suspending/unsuspending child CAs. ( #623 )
2021-08-30 10:47:28 +02:00
Tim Bruijnzeels
bc24111a51
Update to latest lagosta
2021-08-30 10:24:33 +02:00
Tim Bruijnzeels and GitHub
2301c1645e
Perform RRDP session reset on startup (if repo is initialized) ( #533 ) ( #637 )
2021-08-28 08:46:43 +02:00
Ximon Eighteen and GitHub
7e3cf9982c
Exclude Git repository content that should not be part of the Rust crate when published to crates.io. ( fixes #630 ) ( #640 )
2021-08-18 09:58:12 +02:00
Ximon Eighteen
55a944e255
Temporarily disable the RIPE NCC Validator 3 test until I can work out why it is trying to rsync from an HTTP URI...
2021-08-17 14:52:23 +02:00
Ximon Eighteen
62cadf8e8a
E2E test minor logging improvements: Fix an empty "->" log line in the E2E test and add the API call being made to each of the messages logged during initial Krill setup.
2021-08-17 12:32:49 +02:00
6b9d437d11
Add rsync uri to (new) TALs in testbed setup. ( #624 ) ( #633 )
...
Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com >
2021-08-17 10:43:38 +02:00
Ximon Eighteen
2b81eeaba4
Merge branch 'main' into dev
2021-08-16 17:04:30 +02:00
Ximon Eighteen
19e6b934b5
Merge branch 'main' into dev
2021-08-16 17:03:56 +02:00
Ximon Eighteen and GitHub
2141226c6c
Patch workflow for cargo-generate-rpm issue #21 ( #613 ) ( #617 )
2021-08-16 14:46:28 +02:00
Tim Bruijnzeels and GitHub
29ea7f64ce
Optionally fall back to KRILL_AUTH_TOKEN for docker. ( #632 , #605 )
2021-08-11 11:40:39 +02:00
Tim Bruijnzeels and GitHub
4daf0daea3
Accept insecure certs when submitting protocol CMS ( #628 , #629 )
...
Includes minor code cleanup:
- remove unnecessary async
- do not try to print protocol CMS (not accessible throug CLI and we have logging)
2021-08-10 16:00:52 +02:00
Tim Bruijnzeels and GitHub
37ce99298e
Monitor child CA versions and send version to parent/repo ( #622 , #620 )
2021-08-10 15:45:54 +02:00
Tim Bruijnzeels and GitHub
a189e6867c
Deal with parent errors or not-performed responses to sign requests. ( #499 )
2021-08-04 16:43:42 +02:00
Tim Bruijnzeels
b173c32129
Improve formatting or error reply.
2021-08-04 14:58:26 +02:00
Tim Bruijnzeels and GitHub
25fa398ec7
Mark roas lost resources ( #602 )
2021-08-04 12:51:49 +02:00
Tim Bruijnzeels and GitHub
765b131184
Create ROAs if needed, when keys are activated ( #601 )
2021-08-04 12:06:47 +02:00
Ximon Eighteen and GitHub
47d23f87a7
Permit disabling automatic sending of prompt=login to the OIDC provider ( #616 )
...
Adds a new `prompt_for_login` configuration file setting in the `[auth_openidconnect`]` block (defaults to true for backward compatibility) which can be used to avoid advising the OpenID Connect provider to prompt for login details even if the user has a valid provider login session. Resolves #614 .
2021-08-03 11:20:38 +02:00
Ximon Eighteen
45977aa136
Remove more intercepts and waits that might be blocking the test from progressing.
2021-08-03 10:00:19 +02:00
Ximon Eighteen
fa95116bc5
Comment out problematic waiting for now...
2021-08-03 10:00:16 +02:00
Ximon Eighteen
a2667c2db3
Ignore all unhandled promise rejections
...
Newer Cypress fails tests in more situations than Cypress 6.8.0, but we’re not ready to investigate the root cause yet so just retain the previous behaviour for now.
2021-08-03 09:57:47 +02:00
Ximon Eighteen
8a708c9c72
FIX: Test Rust function name should match the JS test being executed.
2021-08-01 21:48:24 +02:00
Ximon Eighteen
fc5683cefa
FIX: Logout intercept should be POST not GET.
2021-08-01 21:48:18 +02:00
Ximon Eighteen
ffd6c09460
FIX: syntax error in Cypress intercept() call.
2021-08-01 20:33:16 +02:00
Ximon Eighteen
5c3a463e1b
Update intercept calls per Cypress 7 migration guide.
2021-08-01 20:14:45 +02:00
Ximon Eighteen
ba0bb12cc7
Upgrade Cypress from 8.0.0 to 8.1.0.
...
See if any of the fixes help with the hanging UI tests.
2021-08-01 20:14:36 +02:00
Ximon Eighteen
9323ca9dea
Don't complain about missing UI artifacts to upload as this is normal for tests of builds that lack the ui-tests cargo feature.
2021-07-30 22:08:07 +02:00
Ximon Eighteen
f39e8499d1
Set bgp_risdumps_enabled = false in UI integration tests as we don't test this part of the UI and it causes Krill to do more work on already slow GH Actions runner VMs, and tests seem to be locking up with the last message being "Updated announcements based on BGP Ris Dumps".
2021-07-30 21:58:00 +02:00
Ximon Eighteen
ad70e0e05a
Attempt to work around the ESOCKETTIMEDOUT test failure in GH Actions. This change solves the issue in an AWS t2.small VM.
2021-07-30 00:38:39 +02:00