Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Release.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "1.63.0"
version = "1.64.0"

[migrations]
"(0.3.1, 0.3.2)" = ["migrate_v0.3.2_admin-container-v0-5-0.lz4"]
Expand Down Expand Up @@ -475,3 +475,6 @@ version = "1.63.0"
"migrate_v1.63.0_image-verifier-plugins-settings.lz4",
"migrate_v1.63.0_nvidia-k8s-device-plugin-enabled.lz4",
]
"(1.63.0, 1.64.0)" = [
"migrate_v1.64.0_measurement-excluded-settings.lz4",
]
2 changes: 1 addition & 1 deletion Twoliter.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
schema-version = 2
release-version = "1.63.0"
release-version = "1.64.0"
project-vendor = "Bottlerocket"

[vendor.bottlerocket]
Expand Down
7 changes: 7 additions & 0 deletions sources/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sources/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ members = [
"settings-migrations/v1.60.0/container-runtime-max-concurrent-unpacks",
"settings-migrations/v1.63.0/image-verifier-plugins-settings",
"settings-migrations/v1.63.0/nvidia-k8s-device-plugin-enabled",
"settings-migrations/v1.64.0/measurement-excluded-settings",

"settings-plugins/aws-dev",
"settings-plugins/aws-ecs-2",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "measurement-excluded-settings"
version = "0.1.0"
license = "Apache-2.0 OR MIT"
edition = "2021"
publish = false
exclude = ["README.md"]

[dependencies]
migration-helpers.workspace = true
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;

/// We added a new setting for configuring which settings are excluded from PCR 8 measurement:
/// - settings.measurement.excluded-settings
fn run() -> Result<()> {
migrate(AddSettingsMigration(&[
"settings.measurement.excluded-settings",
]))
}

// Returning a Result from main makes it print a Debug representation of the error, but with Snafu
// we have nice Display representations of the error, so we wrap "main" (run) and print any error.
// https://github.com/shepmaster/snafu/issues/110
fn main() {
if let Err(e) = run() {
eprintln!("{e}");
process::exit(1);
}
}
1 change: 1 addition & 0 deletions sources/settings-plugins/aws-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ struct AwsDevSettings {
oci_hooks: bottlerocket_settings_models::OciHooksSettingsV1,
cloudformation: bottlerocket_settings_models::CloudFormationSettingsV1,
dns: bottlerocket_settings_models::DnsSettingsV1,
measurement: bottlerocket_settings_models::MeasurementSettingsV1,
}
1 change: 1 addition & 0 deletions sources/settings-plugins/aws-ecs-3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ struct AwsEcs3Settings {
autoscaling: bottlerocket_settings_models::AutoScalingSettingsV1,
dns: bottlerocket_settings_models::DnsSettingsV1,
image_verifier_plugins: bottlerocket_settings_models::ImageVerifierPluginsSettingsV1,
measurement: bottlerocket_settings_models::MeasurementSettingsV1,
}
1 change: 1 addition & 0 deletions sources/settings-plugins/aws-ecs-4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ struct AwsEcs4Settings {
autoscaling: bottlerocket_settings_models::AutoScalingSettingsV1,
dns: bottlerocket_settings_models::DnsSettingsV1,
image_verifier_plugins: bottlerocket_settings_models::ImageVerifierPluginsSettingsV1,
measurement: bottlerocket_settings_models::MeasurementSettingsV1,
}
1 change: 1 addition & 0 deletions sources/settings-plugins/vmware-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ struct VmwareDevSettings {
container_registry: bottlerocket_settings_models::RegistrySettingsV1,
oci_hooks: bottlerocket_settings_models::OciHooksSettingsV1,
dns: bottlerocket_settings_models::DnsSettingsV1,
measurement: bottlerocket_settings_models::MeasurementSettingsV1,
}
Loading