Skip to content

Commit

Permalink
Merge branch 'main' into simplify-openid-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Dec 5, 2024
2 parents 4f23dc4 + 5fa686c commit b56265d
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 19 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ depends = "$auto, passwd"
[package.metadata.deb.variants.debian-bookworm]
depends = "$auto, passwd, libssl3"

[package.metadata.deb.variants.ubuntu-noble]
depends = "$auto, passwd, libssl3"

# Cross compilation variants:
# Note: we have to specifiy dependencies manually because we don't run cargo-deb
# on the target platform and so it cannot determine the dependencies correctly
Expand Down
10 changes: 10 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,22 @@ Bug Fixes
* Fixed a potential infinite recursion in PKCS11 error handling. ([#1215])
* Open ID connect: Re-initialize the connection after 60s to pick up
configuration changes at the provider. ([#1226])
* Fixed the naming of the trust anchor timing configuration. It was
expected to be `timing_config` for the config used by Krill and
`ta_timing` if used by the Krill TA signer. It is now `ta_timing` in
both cases while `timing_config` is accepted as an alias in both cases.
([#1241])

Other changes

* Added packaging support for Ubuntu Noble; removed packaging support for
Ubuntu Xenial and Bionic, and Debian Stretch. ([#1239])

[#1215]: https://github.com/NLnetLabs/krill/pull/1215
[#1226]: https://github.com/NLnetLabs/krill/pull/1226
[#1228]: https://github.com/NLnetLabs/krill/pull/1228
[#1239]: https://github.com/NLnetLabs/krill/pull/1239
[#1241]: https://github.com/NLnetLabs/krill/pull/1241


## 0.14.5 ‘Who dis? New Phone’
Expand Down
1 change: 1 addition & 0 deletions doc/manual/source/install-and-run.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public rsyncd and HTTPS web server available.
To install a Routinator package, you need the 64-bit version of one of
these Ubuntu versions:

- Ubuntu Noble 24.04 (LTS)
- Ubuntu Jammy 22.04 (LTS)
- Ubuntu Focal 20.04 (LTS)

Expand Down
1 change: 1 addition & 0 deletions pkg/common/krill-ubuntu-noble.krill.service
4 changes: 1 addition & 3 deletions pkg/rules/packages-to-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ pkg:
- "krillup"
- "krillta"
image:
- "ubuntu:xenial" # ubuntu/16.04
- "ubuntu:bionic" # ubuntu/18.04
- "ubuntu:focal" # ubuntu/20.04
- "ubuntu:jammy" # ubuntu/22.04
- "debian:stretch" # debian/9
- "ubuntu:noble" # ubuntu/24.04
- "debian:buster" # debian/10
- "debian:bullseye" # debian/11
- "debian:bookworm" # debian/12
Expand Down
12 changes: 5 additions & 7 deletions pkg/rules/packages-to-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ pkg:
- "krillup"
- "krillta"
image:
- "ubuntu:xenial" # ubuntu/16.04
- "ubuntu:bionic" # ubuntu/18.04
- "ubuntu:focal" # ubuntu/20.04
- "ubuntu:jammy" # ubuntu/22.04
- "debian:stretch" # debian/9
- "ubuntu:noble" # ubuntu/24.04
- "debian:buster" # debian/10
- "debian:bullseye" # debian/11
- "debian:bookworm" # debian/12
Expand Down Expand Up @@ -70,14 +68,14 @@ include:
image: "debian:buster"
target: "aarch64-unknown-linux-gnu"

# Exclude upgrade testing on Debian Bookworm as no prior released versions exist to upgrade from.
# Exclude upgrade testing on Ubuntu Noble as no prior released versions exist to upgrade from.
exclude:
- pkg: "krill"
image: "debian:bookworm"
image: "ubuntu:noble"
mode: "upgrade-from-published"
- pkg: "krillta"
image: "debian:bookworm"
image: "ubuntu:noble"
mode: "upgrade-from-published"
- pkg: "krillup"
image: "debian:bookworm"
image: "ubuntu:noble"
mode: "upgrade-from-published"
1 change: 1 addition & 0 deletions src/bin/krillup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ fn main() {

/// The command line options for the krillup command.
#[derive(clap::Parser)]
#[command(version)]
pub struct Options {
/// Path to the Krill config file
#[arg(
Expand Down
4 changes: 2 additions & 2 deletions src/cli/ta/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl TrustAnchorSignerManager {
tal_rsync: info.tal_rsync,
private_key_pem: info.private_key_pem,
ta_mft_nr_override: info.ta_mft_nr_override,
timing: self.config.timing_config,
timing: self.config.ta_timing,
signer: self.signer.clone(),
},
&self.actor,
Expand All @@ -170,7 +170,7 @@ impl TrustAnchorSignerManager {
let cmd = TrustAnchorSignerCommand::make_process_request_command(
&self.ta_handle,
signed_request,
self.config.timing_config,
self.config.ta_timing,
ta_mft_number_override,
self.signer.clone(),
&self.actor,
Expand Down
1 change: 0 additions & 1 deletion src/commons/crypto/signing/dispatch/krillsigner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ use crate::commons::crypto::{
/// struct AND implement management of signers and dispatch to the correct
/// signer all in one place, and that quickly becomes harder to read,
/// understand and maintain.
type SignerBuilderFn = fn(
&SignerType,
SignerFlags,
Expand Down
2 changes: 1 addition & 1 deletion src/commons/crypto/signing/signers/pkcs11/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ where
{
struct UintOrString(PhantomData<fn() -> SlotIdOrLabel>);

impl<'de> Visitor<'de> for UintOrString {
impl Visitor<'_> for UintOrString {
type Value = SlotIdOrLabel;

fn expecting(
Expand Down
7 changes: 5 additions & 2 deletions src/daemon/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ pub enum OneOrMany<'a, T> {
_LifeTimeMarker(std::marker::PhantomData<&'a u32>),
}

impl<'a, T> From<OneOrMany<'a, T>> for Vec<T> {
impl<T> From<OneOrMany<'_, T>> for Vec<T> {
fn from(one_or_many: OneOrMany<T>) -> Self {
match one_or_many {
OneOrMany::One(t) => vec![t],
Expand Down Expand Up @@ -637,7 +637,10 @@ pub struct Config {

pub benchmark: Option<Benchmark>,

#[serde(default)]
#[serde(
default,
alias="timing_config"
)]
pub ta_timing: TaTimingConfig,
}

Expand Down
7 changes: 5 additions & 2 deletions src/ta/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,11 @@ pub struct Config {
#[serde(default = "crate::daemon::config::ConfigDefaults::signers")]
pub signers: Vec<SignerConfig>,

#[serde(default)]
pub timing_config: TaTimingConfig,
#[serde(
default,
alias="timing_config"
)]
pub ta_timing: TaTimingConfig,
}

impl Config {
Expand Down
2 changes: 1 addition & 1 deletion tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ impl<'a> ExpectedObjects<'a> {
}
}

impl<'a> std::iter::Extend<String> for ExpectedObjects<'a> {
impl std::iter::Extend<String> for ExpectedObjects<'_> {
fn extend<T: IntoIterator<Item = String>>(&mut self, iter: T) {
self.files.extend(iter)
}
Expand Down

0 comments on commit b56265d

Please sign in to comment.