From 03dd1b39bed6930e3821e8fc9022f55fea3ca5ca Mon Sep 17 00:00:00 2001 From: David Crespo Date: Wed, 1 Jul 2026 08:35:42 -0500 Subject: [PATCH 1/3] add skywalking-eyes license scanner --- .github/workflows/license-check.yml | 24 ++++++++++++++++++++++++ .licenserc.yaml | 16 ++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/license-check.yml create mode 100644 .licenserc.yaml diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml new file mode 100644 index 00000000000..db8463c17c3 --- /dev/null +++ b/.github/workflows/license-check.yml @@ -0,0 +1,24 @@ +# To run this check locally, install SkyWalking Eyes +# (https://github.com/apache/skywalking-eyes). On macOS you can `brew install +# license-eye` and run `license-eye header check` or `license-eye header fix`. + +name: license-check + +on: + push: + branches: [main] + pull_request: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + +jobs: + license: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + ref: ${{ github.event.pull_request.head.sha }} # see omicron#4461 + - name: Check License Header + uses: apache/skywalking-eyes/header@e9f91c35e4d4ae4420f722aa6598c4a13cc69093 # v0.8.0 diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 00000000000..dafa7cfc3ff --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,16 @@ +header: + # default is 80; allow shebangs and XML prologs before the header + license-location-threshold: 120 + license: + spdx-id: MPL-2.0 + + paths: + - '**/*.rs' + - '**/*.sh' + + paths-ignore: + - 'target' + - 'out' + - 'workspace-hack' + - '**/*.md' + - 'LICENSE' From 655cb0f0fc07e881252597fdafb46ffb1b73969b Mon Sep 17 00:00:00 2001 From: David Crespo Date: Wed, 1 Jul 2026 09:27:29 -0500 Subject: [PATCH 2/3] fix em --- .github/buildomat/build-and-test.sh | 4 ++++ .github/buildomat/ci-env.sh | 4 ++++ .github/buildomat/jobs/a4x2-deploy.sh | 4 ++++ .github/buildomat/jobs/a4x2-prepare.sh | 4 ++++ .github/buildomat/jobs/build-and-test-helios.sh | 4 ++++ .github/buildomat/jobs/build-and-test-linux.sh | 4 ++++ .github/buildomat/jobs/check-features.sh | 4 ++++ .github/buildomat/jobs/clippy.sh | 4 ++++ .github/buildomat/jobs/deploy.sh | 4 ++++ .github/buildomat/jobs/omicron-common.sh | 4 ++++ .github/buildomat/jobs/package.sh | 4 ++++ .github/buildomat/jobs/tuf-repo.sh | 4 ++++ end-to-end-tests/src/bin/bootstrap.rs | 4 ++++ end-to-end-tests/src/bin/commtest.rs | 4 ++++ end-to-end-tests/src/bin/dhcp-server.rs | 4 ++++ end-to-end-tests/src/helpers/cli.rs | 4 ++++ end-to-end-tests/src/helpers/icmp.rs | 4 ++++ end-to-end-tests/src/helpers/mod.rs | 4 ++++ end-to-end-tests/src/instance_launch.rs | 4 ++++ end-to-end-tests/src/lib.rs | 4 ++++ end-to-end-tests/src/no_spoof.rs | 4 ++++ end-to-end-tests/src/noop_blueprint.rs | 4 ++++ env.sh | 4 ++++ illumos-utils/src/coreadm.rs | 4 ++++ illumos-utils/src/dumpadm.rs | 4 ++++ nexus/auth/src/lib.rs | 4 ++++ nexus/db-model/src/affinity.rs | 4 ++-- nexus/db-model/src/allow_list.rs | 4 ++-- nexus/db-model/src/audit_log.rs | 4 ++-- nexus/db-model/src/bootstore.rs | 4 ++++ nexus/db-model/src/internet_gateway.rs | 4 ++++ nexus/db-model/src/quota.rs | 4 ++++ nexus/db-model/src/silo_auth_settings.rs | 4 ++++ nexus/db-model/src/sled_instance.rs | 4 ++++ nexus/db-model/src/utilization.rs | 4 ++++ nexus/db-queries/src/db/datastore/bootstore.rs | 4 ++++ nexus/db-queries/src/db/datastore/image.rs | 4 ++++ nexus/db-queries/src/db/datastore/multicast/members.rs | 4 ++++ nexus/db-queries/src/db/datastore/quota.rs | 4 ++++ nexus/db-queries/src/db/datastore/silo_auth_settings.rs | 4 ++++ nexus/db-queries/src/db/datastore/sled_instance.rs | 4 ++++ nexus/db-queries/src/db/datastore/switch.rs | 4 ++++ nexus/db-queries/src/db/datastore/utilization.rs | 4 ++++ nexus/src/app/background/tasks/alert_subscription.rs | 4 ++++ nexus/src/app/sled_instance.rs | 4 ++++ nexus/src/app/ssh_key.rs | 4 ++++ nexus/src/app/switch.rs | 4 ++++ nexus/src/cidata.rs | 4 ++++ nexus/src/context.rs | 1 + nexus/src/populate.rs | 4 ++++ nexus/test-utils-macros/src/lib.rs | 4 ++++ nexus/tests/integration_tests/multicast/instances.rs | 4 ++-- nexus/tests/integration_tests/probe.rs | 4 ++++ nexus/tests/integration_tests/quotas.rs | 4 ++++ nexus/tests/integration_tests/ssh_keys.rs | 4 ++++ nexus/tests/integration_tests/users_builtin.rs | 4 ++++ nexus/tests/integration_tests/utilization.rs | 4 ++++ oximeter/db/benches/backup_field_tables.sh | 4 ++++ oximeter/db/benches/backup_measurement_tables.sh | 4 ++++ oximeter/db/benches/load_field_tables.sh | 4 ++++ oximeter/db/benches/load_measurement_tables.sh | 4 ++++ oximeter/types/src/queue.rs | 4 ++++ package/src/dot.rs | 4 ++++ package/src/lib.rs | 4 ++++ sled-agent/src/bin/tofino-monitor.rs | 4 ++++ .../types/versions/src/add_attached_subnets/instance.rs | 4 ++++ sled-diagnostics/src/contract_stub.rs | 4 ++++ smf/clickhouse/method_script.sh | 4 ++++ smf/cockroach-admin/method_script.sh | 4 ++++ smf/cockroachdb/method_script.sh | 4 ++++ smf/ntp-admin/method_script.sh | 4 ++++ tools/ci_check_opte_ver.sh | 4 ++++ tools/create_self_signed_cert.sh | 4 ++++ tools/delete-reservoir.sh | 4 ++++ tools/ensure_buildomat_artifact.sh | 4 ++++ tools/include/force-git-over-https.sh | 4 ++++ tools/install_builder_prerequisites.sh | 4 ++++ tools/install_opte.sh | 4 ++++ tools/install_prerequisites.sh | 4 ++++ tools/install_runner_prerequisites.sh | 4 ++++ tools/reflector/helpers.sh | 4 ++++ tools/renovate-post-upgrade.sh | 4 ++++ tools/scrimlet/create-softnpu-zone.sh | 4 ++++ tools/scrimlet/destroy-softnpu-zone.sh | 4 ++++ tools/uninstall_opte.sh | 4 ++++ tools/update_crucible.sh | 4 ++++ tools/update_dendrite.sh | 4 ++++ tools/update_helpers.sh | 4 ++++ tools/update_lldp.sh | 4 ++++ tools/update_maghemite.sh | 4 ++++ tools/update_propolis.sh | 4 ++++ tools/update_pumpkind.sh | 4 ++++ tools/update_transceiver_control.sh | 4 ++++ trust-quorum/types/versions/src/impls/salt.rs | 4 ++++ wicket/src/ui/widgets/fade.rs | 4 ++++ 95 files changed, 369 insertions(+), 8 deletions(-) diff --git a/.github/buildomat/build-and-test.sh b/.github/buildomat/build-and-test.sh index 43502d3c9ec..b4fec28c00f 100755 --- a/.github/buildomat/build-and-test.sh +++ b/.github/buildomat/build-and-test.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o errexit set -o pipefail diff --git a/.github/buildomat/ci-env.sh b/.github/buildomat/ci-env.sh index 3971eeec3a1..4aa193da26b 100644 --- a/.github/buildomat/ci-env.sh +++ b/.github/buildomat/ci-env.sh @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # Setup shared across Buildomat CI builds. # # This file contains environment variables shared across Buildomat CI jobs. diff --git a/.github/buildomat/jobs/a4x2-deploy.sh b/.github/buildomat/jobs/a4x2-deploy.sh index c6d6b803c1e..2ee2ad21429 100755 --- a/.github/buildomat/jobs/a4x2-deploy.sh +++ b/.github/buildomat/jobs/a4x2-deploy.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "a4x2-deploy" #: variety = "basic" diff --git a/.github/buildomat/jobs/a4x2-prepare.sh b/.github/buildomat/jobs/a4x2-prepare.sh index 4e0647bff41..935239da265 100755 --- a/.github/buildomat/jobs/a4x2-prepare.sh +++ b/.github/buildomat/jobs/a4x2-prepare.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "a4x2-prepare" #: variety = "basic" diff --git a/.github/buildomat/jobs/build-and-test-helios.sh b/.github/buildomat/jobs/build-and-test-helios.sh index 206fe51573b..f7e6359c3db 100755 --- a/.github/buildomat/jobs/build-and-test-helios.sh +++ b/.github/buildomat/jobs/build-and-test-helios.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "build-and-test (helios)" #: variety = "basic" diff --git a/.github/buildomat/jobs/build-and-test-linux.sh b/.github/buildomat/jobs/build-and-test-linux.sh index 7bc9e587282..002304cd8d2 100755 --- a/.github/buildomat/jobs/build-and-test-linux.sh +++ b/.github/buildomat/jobs/build-and-test-linux.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "build-and-test (ubuntu-22.04)" #: variety = "basic" diff --git a/.github/buildomat/jobs/check-features.sh b/.github/buildomat/jobs/check-features.sh index 0e3e982ccd4..3656bda8871 100644 --- a/.github/buildomat/jobs/check-features.sh +++ b/.github/buildomat/jobs/check-features.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "check-features (helios)" #: variety = "basic" diff --git a/.github/buildomat/jobs/clippy.sh b/.github/buildomat/jobs/clippy.sh index 179c21d737b..31f3202cd0e 100755 --- a/.github/buildomat/jobs/clippy.sh +++ b/.github/buildomat/jobs/clippy.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "clippy (helios)" #: variety = "basic" diff --git a/.github/buildomat/jobs/deploy.sh b/.github/buildomat/jobs/deploy.sh index 3ce09d88f0b..98e203dc01c 100755 --- a/.github/buildomat/jobs/deploy.sh +++ b/.github/buildomat/jobs/deploy.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "helios / deploy" #: variety = "basic" diff --git a/.github/buildomat/jobs/omicron-common.sh b/.github/buildomat/jobs/omicron-common.sh index fe75a1249d3..ef7c06d0ec7 100755 --- a/.github/buildomat/jobs/omicron-common.sh +++ b/.github/buildomat/jobs/omicron-common.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "omicron-common (helios)" #: variety = "basic" diff --git a/.github/buildomat/jobs/package.sh b/.github/buildomat/jobs/package.sh index c7f47e9477c..d39f4b14969 100755 --- a/.github/buildomat/jobs/package.sh +++ b/.github/buildomat/jobs/package.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "helios / package" #: variety = "basic" diff --git a/.github/buildomat/jobs/tuf-repo.sh b/.github/buildomat/jobs/tuf-repo.sh index 93ac977971c..ce1be088115 100755 --- a/.github/buildomat/jobs/tuf-repo.sh +++ b/.github/buildomat/jobs/tuf-repo.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #: #: name = "helios / build TUF repo" #: variety = "basic" diff --git a/end-to-end-tests/src/bin/bootstrap.rs b/end-to-end-tests/src/bin/bootstrap.rs index bc6e535d5c3..00d0b26ea5d 100644 --- a/end-to-end-tests/src/bin/bootstrap.rs +++ b/end-to-end-tests/src/bin/bootstrap.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use anyhow::Result; use end_to_end_tests::helpers::ctx::{ClientParams, Context}; use end_to_end_tests::helpers::{ diff --git a/end-to-end-tests/src/bin/commtest.rs b/end-to-end-tests/src/bin/commtest.rs index cd9d3ada201..d257552ac21 100644 --- a/end-to-end-tests/src/bin/commtest.rs +++ b/end-to-end-tests/src/bin/commtest.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use anyhow::{Result, anyhow}; use clap::{Parser, Subcommand}; use end_to_end_tests::helpers::icmp::ping4_test_run; diff --git a/end-to-end-tests/src/bin/dhcp-server.rs b/end-to-end-tests/src/bin/dhcp-server.rs index e0a83bc9043..3827e5652d5 100644 --- a/end-to-end-tests/src/bin/dhcp-server.rs +++ b/end-to-end-tests/src/bin/dhcp-server.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! This is a dirt simple DHCP server for handing out addresses in a given //! range. Leases do not expire. If the server runs out of addresses, it //! panics. This is a stopgap program to hand out addresses to VMs in CI. It's diff --git a/end-to-end-tests/src/helpers/cli.rs b/end-to-end-tests/src/helpers/cli.rs index 049ab5a8b7e..36d1acc20ce 100644 --- a/end-to-end-tests/src/helpers/cli.rs +++ b/end-to-end-tests/src/helpers/cli.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + /// An Oxide color theme for your clap-based CLIs pub fn oxide_cli_style() -> clap::builder::Styles { clap::builder::Styles::styled() diff --git a/end-to-end-tests/src/helpers/icmp.rs b/end-to-end-tests/src/helpers/icmp.rs index 858763584f2..ac4a6b45913 100644 --- a/end-to-end-tests/src/helpers/icmp.rs +++ b/end-to-end-tests/src/helpers/icmp.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use colored::*; use internet_checksum::Checksum; use serde::{Deserialize, Serialize}; diff --git a/end-to-end-tests/src/helpers/mod.rs b/end-to-end-tests/src/helpers/mod.rs index b24abd7a762..46e5893b5d3 100644 --- a/end-to-end-tests/src/helpers/mod.rs +++ b/end-to-end-tests/src/helpers/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub mod cli; pub mod ctx; pub mod icmp; diff --git a/end-to-end-tests/src/instance_launch.rs b/end-to-end-tests/src/instance_launch.rs index 90de68e2692..2db6e10b825 100644 --- a/end-to-end-tests/src/instance_launch.rs +++ b/end-to-end-tests/src/instance_launch.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + #![cfg(test)] use crate::helpers::{ctx::Context, generate_name}; diff --git a/end-to-end-tests/src/lib.rs b/end-to-end-tests/src/lib.rs index 5994da687a7..9ef15332b5e 100644 --- a/end-to-end-tests/src/lib.rs +++ b/end-to-end-tests/src/lib.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub mod helpers; mod instance_launch; diff --git a/end-to-end-tests/src/no_spoof.rs b/end-to-end-tests/src/no_spoof.rs index e781be9f5ae..63a912495cd 100644 --- a/end-to-end-tests/src/no_spoof.rs +++ b/end-to-end-tests/src/no_spoof.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Validates that legacy spoof-based authentication does not work #![cfg(test)] diff --git a/end-to-end-tests/src/noop_blueprint.rs b/end-to-end-tests/src/noop_blueprint.rs index 79c3f443c50..01f1dfe29ef 100644 --- a/end-to-end-tests/src/noop_blueprint.rs +++ b/end-to-end-tests/src/noop_blueprint.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Test that generating a new blueprint on a freshly-installed system will not //! change anything. diff --git a/env.sh b/env.sh index 114b53f07ed..ba9b6a84c5f 100644 --- a/env.sh +++ b/env.sh @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # omicron environment file: source this file to set up your PATH to use the # various tools in the Omicron workspace where this file lives. The test suite # and other commands expect these copies of these tools to be on your PATH. diff --git a/illumos-utils/src/coreadm.rs b/illumos-utils/src/coreadm.rs index 3a4558fb2fd..c580b298a36 100644 --- a/illumos-utils/src/coreadm.rs +++ b/illumos-utils/src/coreadm.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ExecutionError, execute}; use std::process::Command; diff --git a/illumos-utils/src/dumpadm.rs b/illumos-utils/src/dumpadm.rs index fa84cf1430a..88a79499e67 100644 --- a/illumos-utils/src/dumpadm.rs +++ b/illumos-utils/src/dumpadm.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ExecutionError, execute}; use camino::Utf8PathBuf; use slog_error_chain::SlogInlineError; diff --git a/nexus/auth/src/lib.rs b/nexus/auth/src/lib.rs index 962d5f8fbb6..4fa290ab011 100644 --- a/nexus/auth/src/lib.rs +++ b/nexus/auth/src/lib.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub mod authn; pub mod authz; pub mod context; diff --git a/nexus/db-model/src/affinity.rs b/nexus/db-model/src/affinity.rs index 6cb3dd3c9cf..675ad532c79 100644 --- a/nexus/db-model/src/affinity.rs +++ b/nexus/db-model/src/affinity.rs @@ -1,8 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at https://mozilla.org/MPL/5.0/. +// file, You can obtain one at https://mozilla.org/MPL/2.0/. -// Copyright 2025 Oxide Computer Company +// Copyright 2026 Oxide Computer Company //! Database representation of affinity and anti-affinity groups diff --git a/nexus/db-model/src/allow_list.rs b/nexus/db-model/src/allow_list.rs index 67b0f66ba1d..5715c795720 100644 --- a/nexus/db-model/src/allow_list.rs +++ b/nexus/db-model/src/allow_list.rs @@ -1,8 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at https://mozilla.org/MPL/5.0/. +// file, You can obtain one at https://mozilla.org/MPL/2.0/. -// Copyright 2024 Oxide Computer Company +// Copyright 2026 Oxide Computer Company //! Database representation of allowed source IP address, for implementing basic //! IP allowlisting. diff --git a/nexus/db-model/src/audit_log.rs b/nexus/db-model/src/audit_log.rs index 7db6486e1ef..079dcbff7a2 100644 --- a/nexus/db-model/src/audit_log.rs +++ b/nexus/db-model/src/audit_log.rs @@ -1,8 +1,8 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at https://mozilla.org/MPL/5.0/. +// file, You can obtain one at https://mozilla.org/MPL/2.0/. -// Copyright 2025 Oxide Computer Company +// Copyright 2026 Oxide Computer Company use std::net::IpAddr; diff --git a/nexus/db-model/src/bootstore.rs b/nexus/db-model/src/bootstore.rs index 51e9f0b2294..17edd894f6e 100644 --- a/nexus/db-model/src/bootstore.rs +++ b/nexus/db-model/src/bootstore.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use chrono::{DateTime, Utc}; use nexus_db_schema::schema::{bootstore_config, bootstore_keys}; use serde::{Deserialize, Serialize}; diff --git a/nexus/db-model/src/internet_gateway.rs b/nexus/db-model/src/internet_gateway.rs index b4eae2bd00f..82437f251e0 100644 --- a/nexus/db-model/src/internet_gateway.rs +++ b/nexus/db-model/src/internet_gateway.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::Generation; use crate::DatastoreCollectionConfig; use db_macros::Resource; diff --git a/nexus/db-model/src/quota.rs b/nexus/db-model/src/quota.rs index 2e3f8b39864..22fbb0f2b12 100644 --- a/nexus/db-model/src/quota.rs +++ b/nexus/db-model/src/quota.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::ByteCount; use chrono::{DateTime, Utc}; use nexus_db_schema::schema::silo_quotas; diff --git a/nexus/db-model/src/silo_auth_settings.rs b/nexus/db-model/src/silo_auth_settings.rs index 9a9d9032ddf..ea9f35cda93 100644 --- a/nexus/db-model/src/silo_auth_settings.rs +++ b/nexus/db-model/src/silo_auth_settings.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::SqlU32; use chrono::{DateTime, Utc}; use nexus_db_schema::schema::silo_auth_settings; diff --git a/nexus/db-model/src/sled_instance.rs b/nexus/db-model/src/sled_instance.rs index 7a93b44bfca..a026e74744d 100644 --- a/nexus/db-model/src/sled_instance.rs +++ b/nexus/db-model/src/sled_instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::Name; use crate::VmmState; use chrono::{DateTime, Utc}; diff --git a/nexus/db-model/src/utilization.rs b/nexus/db-model/src/utilization.rs index 9eafa55359d..a94fc260e91 100644 --- a/nexus/db-model/src/utilization.rs +++ b/nexus/db-model/src/utilization.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ByteCount; use crate::Name; use nexus_db_schema::schema::silo_utilization; diff --git a/nexus/db-queries/src/db/datastore/bootstore.rs b/nexus/db-queries/src/db/datastore/bootstore.rs index e2b48589c88..153a26658b5 100644 --- a/nexus/db-queries/src/db/datastore/bootstore.rs +++ b/nexus/db-queries/src/db/datastore/bootstore.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::DataStore; use crate::context::OpContext; use async_bb8_diesel::AsyncRunQueryDsl; diff --git a/nexus/db-queries/src/db/datastore/image.rs b/nexus/db-queries/src/db/datastore/image.rs index b48bcf2912b..af6729a7a57 100644 --- a/nexus/db-queries/src/db/datastore/image.rs +++ b/nexus/db-queries/src/db/datastore/image.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::authz; use crate::authz::ApiResource; use crate::context::OpContext; diff --git a/nexus/db-queries/src/db/datastore/multicast/members.rs b/nexus/db-queries/src/db/datastore/multicast/members.rs index 1c2d25a703b..48cea80bbe5 100644 --- a/nexus/db-queries/src/db/datastore/multicast/members.rs +++ b/nexus/db-queries/src/db/datastore/multicast/members.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Multicast group member management operations. //! //! Database operations for managing multicast group memberships, including diff --git a/nexus/db-queries/src/db/datastore/quota.rs b/nexus/db-queries/src/db/datastore/quota.rs index 3aaf1f15e67..36cb7c529d0 100644 --- a/nexus/db-queries/src/db/datastore/quota.rs +++ b/nexus/db-queries/src/db/datastore/quota.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::DataStore; use crate::authz; use crate::context::OpContext; diff --git a/nexus/db-queries/src/db/datastore/silo_auth_settings.rs b/nexus/db-queries/src/db/datastore/silo_auth_settings.rs index d4b3f431d04..150851128fb 100644 --- a/nexus/db-queries/src/db/datastore/silo_auth_settings.rs +++ b/nexus/db-queries/src/db/datastore/silo_auth_settings.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::DataStore; use crate::authz; use crate::context::OpContext; diff --git a/nexus/db-queries/src/db/datastore/sled_instance.rs b/nexus/db-queries/src/db/datastore/sled_instance.rs index d75b2ee6fdf..82db9689fbf 100644 --- a/nexus/db-queries/src/db/datastore/sled_instance.rs +++ b/nexus/db-queries/src/db/datastore/sled_instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::DataStore; use crate::authz; diff --git a/nexus/db-queries/src/db/datastore/switch.rs b/nexus/db-queries/src/db/datastore/switch.rs index 232526f2917..3572fa85db9 100644 --- a/nexus/db-queries/src/db/datastore/switch.rs +++ b/nexus/db-queries/src/db/datastore/switch.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::DataStore; use crate::authz; use crate::context::OpContext; diff --git a/nexus/db-queries/src/db/datastore/utilization.rs b/nexus/db-queries/src/db/datastore/utilization.rs index 590c9cb1e0f..93b8bf191a0 100644 --- a/nexus/db-queries/src/db/datastore/utilization.rs +++ b/nexus/db-queries/src/db/datastore/utilization.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::DataStore; use crate::authz; use crate::context::OpContext; diff --git a/nexus/src/app/background/tasks/alert_subscription.rs b/nexus/src/app/background/tasks/alert_subscription.rs index e69de29bb2d..c1464fa12cd 100644 --- a/nexus/src/app/background/tasks/alert_subscription.rs +++ b/nexus/src/app/background/tasks/alert_subscription.rs @@ -0,0 +1,4 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + diff --git a/nexus/src/app/sled_instance.rs b/nexus/src/app/sled_instance.rs index 95c064e3669..147a98635f8 100644 --- a/nexus/src/app/sled_instance.rs +++ b/nexus/src/app/sled_instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use nexus_db_lookup::lookup; use nexus_db_queries::authz; use nexus_db_queries::context::OpContext; diff --git a/nexus/src/app/ssh_key.rs b/nexus/src/app/ssh_key.rs index 7135233b011..dcf21899748 100644 --- a/nexus/src/app/ssh_key.rs +++ b/nexus/src/app/ssh_key.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use nexus_db_lookup::LookupPath; use nexus_db_lookup::lookup; use nexus_db_queries::authz; diff --git a/nexus/src/app/switch.rs b/nexus/src/app/switch.rs index 148857ce718..824c3b19b10 100644 --- a/nexus/src/app/switch.rs +++ b/nexus/src/app/switch.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use nexus_db_lookup::LookupPath; use nexus_db_lookup::lookup; use nexus_db_model::Switch; diff --git a/nexus/src/cidata.rs b/nexus/src/cidata.rs index 922c4b2fb0a..85534753f79 100644 --- a/nexus/src/cidata.rs +++ b/nexus/src/cidata.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use fatfs::{FatType, FileSystem, FormatVolumeOptions, FsOptions}; use nexus_db_queries::db::{identity::Resource, model::Instance}; use num_integer::Integer; diff --git a/nexus/src/context.rs b/nexus/src/context.rs index 0d9c9a5419d..b00629cb924 100644 --- a/nexus/src/context.rs +++ b/nexus/src/context.rs @@ -1,3 +1,4 @@ +// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. diff --git a/nexus/src/populate.rs b/nexus/src/populate.rs index 93632d77c10..1a7ee9394e0 100644 --- a/nexus/src/populate.rs +++ b/nexus/src/populate.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Nexus startup task to load hardcoded data into the database //! //! Initial populating of the CockroachDB database happens in two different ways: diff --git a/nexus/test-utils-macros/src/lib.rs b/nexus/test-utils-macros/src/lib.rs index 767f09b9d39..11e138c1508 100644 --- a/nexus/test-utils-macros/src/lib.rs +++ b/nexus/test-utils-macros/src/lib.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use proc_macro::TokenStream; use quote::quote; use std::collections::HashSet as Set; diff --git a/nexus/tests/integration_tests/multicast/instances.rs b/nexus/tests/integration_tests/multicast/instances.rs index 245e284248e..cd5bb4d0efe 100644 --- a/nexus/tests/integration_tests/multicast/instances.rs +++ b/nexus/tests/integration_tests/multicast/instances.rs @@ -1,7 +1,7 @@ // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at https://mozilla.org/MPL/2.0/ -// +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + // Copyright 2025 Oxide Computer Company //! Tests multicast group + instance integration. diff --git a/nexus/tests/integration_tests/probe.rs b/nexus/tests/integration_tests/probe.rs index 2d4f4fbf09c..745f1a55a28 100644 --- a/nexus/tests/integration_tests/probe.rs +++ b/nexus/tests/integration_tests/probe.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use dropshot::HttpErrorResponseBody; use http::{Method, StatusCode}; use nexus_test_utils::{ diff --git a/nexus/tests/integration_tests/quotas.rs b/nexus/tests/integration_tests/quotas.rs index 83fbff84a49..baa771a29bf 100644 --- a/nexus/tests/integration_tests/quotas.rs +++ b/nexus/tests/integration_tests/quotas.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use anyhow::Error; use dropshot::HttpErrorResponseBody; use dropshot::test_util::ClientTestContext; diff --git a/nexus/tests/integration_tests/ssh_keys.rs b/nexus/tests/integration_tests/ssh_keys.rs index c7b750f687e..9ecb657b904 100644 --- a/nexus/tests/integration_tests/ssh_keys.rs +++ b/nexus/tests/integration_tests/ssh_keys.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Sanity-tests for public SSH keys use http::{StatusCode, method::Method}; diff --git a/nexus/tests/integration_tests/users_builtin.rs b/nexus/tests/integration_tests/users_builtin.rs index c5315305436..8480f232905 100644 --- a/nexus/tests/integration_tests/users_builtin.rs +++ b/nexus/tests/integration_tests/users_builtin.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Sanity-tests for built-in users use dropshot::ResultsPage; diff --git a/nexus/tests/integration_tests/utilization.rs b/nexus/tests/integration_tests/utilization.rs index 4409e6e9640..ccafe3a83f4 100644 --- a/nexus/tests/integration_tests/utilization.rs +++ b/nexus/tests/integration_tests/utilization.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use dropshot::test_util::ClientTestContext; use http::Method; use http::StatusCode; diff --git a/oximeter/db/benches/backup_field_tables.sh b/oximeter/db/benches/backup_field_tables.sh index 1e59624de36..d1a96a737ad 100755 --- a/oximeter/db/benches/backup_field_tables.sh +++ b/oximeter/db/benches/backup_field_tables.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # # Dump ClickHouse field and schema tables to disk in native format. Run against # a test rack with realistic oximeter data. Used to capture test data for diff --git a/oximeter/db/benches/backup_measurement_tables.sh b/oximeter/db/benches/backup_measurement_tables.sh index b1f303fb77a..ba570440ab2 100755 --- a/oximeter/db/benches/backup_measurement_tables.sh +++ b/oximeter/db/benches/backup_measurement_tables.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # # Dump a partial ClickHouse measurement table (time-windowed slice) to disk in # native format. Run against a test rack with realistic oximeter data. Used to diff --git a/oximeter/db/benches/load_field_tables.sh b/oximeter/db/benches/load_field_tables.sh index 97672606507..e50566a3425 100755 --- a/oximeter/db/benches/load_field_tables.sh +++ b/oximeter/db/benches/load_field_tables.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # # Load field table backups into a fresh ClickHouse for benchmarking. # Crashes if the destination database already contains data. diff --git a/oximeter/db/benches/load_measurement_tables.sh b/oximeter/db/benches/load_measurement_tables.sh index 547a536fb4c..8e5c621adcf 100755 --- a/oximeter/db/benches/load_measurement_tables.sh +++ b/oximeter/db/benches/load_measurement_tables.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # # Load a measurement table backup into a ClickHouse for benchmarking. # Crashes if the destination table already contains data. diff --git a/oximeter/types/src/queue.rs b/oximeter/types/src/queue.rs index 9ba72c074c5..d515ec22fd5 100644 --- a/oximeter/types/src/queue.rs +++ b/oximeter/types/src/queue.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::collections::VecDeque; #[derive(Debug)] diff --git a/package/src/dot.rs b/package/src/dot.rs index dbc78c8c8ea..433d8ee59b0 100644 --- a/package/src/dot.rs +++ b/package/src/dot.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Visualize the package manifest using Graphviz use anyhow::anyhow; diff --git a/package/src/lib.rs b/package/src/lib.rs index 2aa73342e0c..453b7106ed5 100644 --- a/package/src/lib.rs +++ b/package/src/lib.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Common code shared between `omicron-package` and `thing-flinger` binaries. use camino::{Utf8Path, Utf8PathBuf}; diff --git a/sled-agent/src/bin/tofino-monitor.rs b/sled-agent/src/bin/tofino-monitor.rs index 973b58f4bc3..aaaee643514 100644 --- a/sled-agent/src/bin/tofino-monitor.rs +++ b/sled-agent/src/bin/tofino-monitor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use signal_hook::consts::SIGHUP; use signal_hook::consts::SIGINT; use signal_hook::consts::SIGQUIT; diff --git a/sled-agent/types/versions/src/add_attached_subnets/instance.rs b/sled-agent/types/versions/src/add_attached_subnets/instance.rs index 82a5bc06e91..e226b32374c 100644 --- a/sled-agent/types/versions/src/add_attached_subnets/instance.rs +++ b/sled-agent/types/versions/src/add_attached_subnets/instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::net::SocketAddr; use omicron_common::api::external::Hostname; diff --git a/sled-diagnostics/src/contract_stub.rs b/sled-diagnostics/src/contract_stub.rs index 40424d1cbfa..506d05fd829 100644 --- a/sled-diagnostics/src/contract_stub.rs +++ b/sled-diagnostics/src/contract_stub.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Stub implementation for platfroms without libcontract(3lib). use std::collections::BTreeSet; diff --git a/smf/clickhouse/method_script.sh b/smf/clickhouse/method_script.sh index 27864cb1ede..70ef511f22a 100755 --- a/smf/clickhouse/method_script.sh +++ b/smf/clickhouse/method_script.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -x set -o errexit diff --git a/smf/cockroach-admin/method_script.sh b/smf/cockroach-admin/method_script.sh index cb9e62d1991..2ecea8d11bd 100755 --- a/smf/cockroach-admin/method_script.sh +++ b/smf/cockroach-admin/method_script.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -x set -o errexit diff --git a/smf/cockroachdb/method_script.sh b/smf/cockroachdb/method_script.sh index f94d430f173..cd7f7b472a1 100755 --- a/smf/cockroachdb/method_script.sh +++ b/smf/cockroachdb/method_script.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -x set -o errexit diff --git a/smf/ntp-admin/method_script.sh b/smf/ntp-admin/method_script.sh index b8c1aed685c..a5f92b2a55d 100755 --- a/smf/ntp-admin/method_script.sh +++ b/smf/ntp-admin/method_script.sh @@ -1,4 +1,8 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -x set -o errexit diff --git a/tools/ci_check_opte_ver.sh b/tools/ci_check_opte_ver.sh index 8715792defb..82b3e5fbfe1 100755 --- a/tools/ci_check_opte_ver.sh +++ b/tools/ci_check_opte_ver.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -euo pipefail source tools/opte_version_override diff --git a/tools/create_self_signed_cert.sh b/tools/create_self_signed_cert.sh index cc127a5c5d8..946108c4763 100755 --- a/tools/create_self_signed_cert.sh +++ b/tools/create_self_signed_cert.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # Creates a self-signed certificate. # diff --git a/tools/delete-reservoir.sh b/tools/delete-reservoir.sh index b148f0ccf3b..9b56e23a946 100755 --- a/tools/delete-reservoir.sh +++ b/tools/delete-reservoir.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + size=`pfexec /usr/lib/rsrvrctl -q | grep Free | awk '{print $3}'` let x=$size/1024 diff --git a/tools/ensure_buildomat_artifact.sh b/tools/ensure_buildomat_artifact.sh index 9507435b9e7..9d76c9cca24 100755 --- a/tools/ensure_buildomat_artifact.sh +++ b/tools/ensure_buildomat_artifact.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # # Ensure a buildomat artifact is downloaded and available locally. diff --git a/tools/include/force-git-over-https.sh b/tools/include/force-git-over-https.sh index 3bc7b86798b..77a4e81b5aa 100644 --- a/tools/include/force-git-over-https.sh +++ b/tools/include/force-git-over-https.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # # The token authentication mechanism that affords us access to other private # repositories requires that we use HTTPS URLs for GitHub, rather than SSH. diff --git a/tools/install_builder_prerequisites.sh b/tools/install_builder_prerequisites.sh index d79a923ca1f..95ad4091da5 100755 --- a/tools/install_builder_prerequisites.sh +++ b/tools/install_builder_prerequisites.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -eu diff --git a/tools/install_opte.sh b/tools/install_opte.sh index ec13294f948..c37db1b8483 100755 --- a/tools/install_opte.sh +++ b/tools/install_opte.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # # Small tool to install OPTE and the xde kernel driver and ONU bits. diff --git a/tools/install_prerequisites.sh b/tools/install_prerequisites.sh index a7d3cc5aa5d..50c6f27133e 100755 --- a/tools/install_prerequisites.sh +++ b/tools/install_prerequisites.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -eu diff --git a/tools/install_runner_prerequisites.sh b/tools/install_runner_prerequisites.sh index 7661b95bf08..e3e67fe8e07 100755 --- a/tools/install_runner_prerequisites.sh +++ b/tools/install_runner_prerequisites.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -eu diff --git a/tools/reflector/helpers.sh b/tools/reflector/helpers.sh index 052d7ff29a9..2d4dc0c076a 100644 --- a/tools/reflector/helpers.sh +++ b/tools/reflector/helpers.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o pipefail set -o errexit diff --git a/tools/renovate-post-upgrade.sh b/tools/renovate-post-upgrade.sh index 3316af9dd65..47a9698ed70 100755 --- a/tools/renovate-post-upgrade.sh +++ b/tools/renovate-post-upgrade.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # This script is run after Renovate upgrades dependencies or lock files. diff --git a/tools/scrimlet/create-softnpu-zone.sh b/tools/scrimlet/create-softnpu-zone.sh index c507cc8dd84..f5232e6530e 100755 --- a/tools/scrimlet/create-softnpu-zone.sh +++ b/tools/scrimlet/create-softnpu-zone.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -x set -e diff --git a/tools/scrimlet/destroy-softnpu-zone.sh b/tools/scrimlet/destroy-softnpu-zone.sh index f94e047302c..e7111e88c46 100755 --- a/tools/scrimlet/destroy-softnpu-zone.sh +++ b/tools/scrimlet/destroy-softnpu-zone.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -x set -e diff --git a/tools/uninstall_opte.sh b/tools/uninstall_opte.sh index efb2ec44820..39a01861ecb 100755 --- a/tools/uninstall_opte.sh +++ b/tools/uninstall_opte.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # # Small tool to _uninstall_ OPTE and the xde kernel driver and ONU bits. # diff --git a/tools/update_crucible.sh b/tools/update_crucible.sh index 1bfd65ba591..be0b7d91e84 100755 --- a/tools/update_crucible.sh +++ b/tools/update_crucible.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o pipefail set -o errexit diff --git a/tools/update_dendrite.sh b/tools/update_dendrite.sh index 684a719d6b4..31bb9f702be 100755 --- a/tools/update_dendrite.sh +++ b/tools/update_dendrite.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o pipefail set -o errexit diff --git a/tools/update_helpers.sh b/tools/update_helpers.sh index 4d51db93192..27c9e650726 100755 --- a/tools/update_helpers.sh +++ b/tools/update_helpers.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o pipefail set -o errexit diff --git a/tools/update_lldp.sh b/tools/update_lldp.sh index 2a9d1d6bae0..9f9ff8e3b50 100755 --- a/tools/update_lldp.sh +++ b/tools/update_lldp.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o pipefail set -o errexit diff --git a/tools/update_maghemite.sh b/tools/update_maghemite.sh index 0a482cb4440..b93b3fe43ac 100755 --- a/tools/update_maghemite.sh +++ b/tools/update_maghemite.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o pipefail set -o errexit diff --git a/tools/update_propolis.sh b/tools/update_propolis.sh index 32abfa3031f..8c4d22be124 100755 --- a/tools/update_propolis.sh +++ b/tools/update_propolis.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o pipefail set -o errexit diff --git a/tools/update_pumpkind.sh b/tools/update_pumpkind.sh index 22e386d5cc3..85b98cf46f7 100755 --- a/tools/update_pumpkind.sh +++ b/tools/update_pumpkind.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o pipefail set -o errexit diff --git a/tools/update_transceiver_control.sh b/tools/update_transceiver_control.sh index 53e09c217f2..1975908dea4 100755 --- a/tools/update_transceiver_control.sh +++ b/tools/update_transceiver_control.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + set -o pipefail set -o errexit diff --git a/trust-quorum/types/versions/src/impls/salt.rs b/trust-quorum/types/versions/src/impls/salt.rs index cf1d315a3bd..dbb010384a9 100644 --- a/trust-quorum/types/versions/src/impls/salt.rs +++ b/trust-quorum/types/versions/src/impls/salt.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use rand::{TryRngCore as _, rngs::OsRng}; use crate::v1::crypto::Salt; diff --git a/wicket/src/ui/widgets/fade.rs b/wicket/src/ui/widgets/fade.rs index 5462a4ecf29..ba54a36dc63 100644 --- a/wicket/src/ui/widgets/fade.rs +++ b/wicket/src/ui/widgets/fade.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ui::defaults::style; use ratatui::buffer::Buffer; use ratatui::layout::Rect; From 8de5eb2049b6d1a1e1c410a1d986955eb8042557 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Wed, 1 Jul 2026 10:06:32 -0500 Subject: [PATCH 3/3] fix buildomat frontmatter broken by license header insertion --- .github/buildomat/jobs/a4x2-deploy.sh | 1 - .github/buildomat/jobs/a4x2-prepare.sh | 1 - .github/buildomat/jobs/build-and-test-helios.sh | 1 - .github/buildomat/jobs/build-and-test-linux.sh | 1 - .github/buildomat/jobs/check-features.sh | 1 - .github/buildomat/jobs/clippy.sh | 1 - .github/buildomat/jobs/deploy.sh | 1 - .github/buildomat/jobs/omicron-common.sh | 1 - .github/buildomat/jobs/package.sh | 1 - .github/buildomat/jobs/tuf-repo.sh | 1 - 10 files changed, 10 deletions(-) diff --git a/.github/buildomat/jobs/a4x2-deploy.sh b/.github/buildomat/jobs/a4x2-deploy.sh index 2ee2ad21429..0214a902658 100755 --- a/.github/buildomat/jobs/a4x2-deploy.sh +++ b/.github/buildomat/jobs/a4x2-deploy.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "a4x2-deploy" #: variety = "basic" diff --git a/.github/buildomat/jobs/a4x2-prepare.sh b/.github/buildomat/jobs/a4x2-prepare.sh index 935239da265..37c332f2221 100755 --- a/.github/buildomat/jobs/a4x2-prepare.sh +++ b/.github/buildomat/jobs/a4x2-prepare.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "a4x2-prepare" #: variety = "basic" diff --git a/.github/buildomat/jobs/build-and-test-helios.sh b/.github/buildomat/jobs/build-and-test-helios.sh index f7e6359c3db..eb7327531f1 100755 --- a/.github/buildomat/jobs/build-and-test-helios.sh +++ b/.github/buildomat/jobs/build-and-test-helios.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "build-and-test (helios)" #: variety = "basic" diff --git a/.github/buildomat/jobs/build-and-test-linux.sh b/.github/buildomat/jobs/build-and-test-linux.sh index 002304cd8d2..ecc5b0d7f49 100755 --- a/.github/buildomat/jobs/build-and-test-linux.sh +++ b/.github/buildomat/jobs/build-and-test-linux.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "build-and-test (ubuntu-22.04)" #: variety = "basic" diff --git a/.github/buildomat/jobs/check-features.sh b/.github/buildomat/jobs/check-features.sh index 3656bda8871..b0a269ee183 100644 --- a/.github/buildomat/jobs/check-features.sh +++ b/.github/buildomat/jobs/check-features.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "check-features (helios)" #: variety = "basic" diff --git a/.github/buildomat/jobs/clippy.sh b/.github/buildomat/jobs/clippy.sh index 31f3202cd0e..cb1ad584280 100755 --- a/.github/buildomat/jobs/clippy.sh +++ b/.github/buildomat/jobs/clippy.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "clippy (helios)" #: variety = "basic" diff --git a/.github/buildomat/jobs/deploy.sh b/.github/buildomat/jobs/deploy.sh index 98e203dc01c..336b50d2eba 100755 --- a/.github/buildomat/jobs/deploy.sh +++ b/.github/buildomat/jobs/deploy.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "helios / deploy" #: variety = "basic" diff --git a/.github/buildomat/jobs/omicron-common.sh b/.github/buildomat/jobs/omicron-common.sh index ef7c06d0ec7..4c07cd5f0d8 100755 --- a/.github/buildomat/jobs/omicron-common.sh +++ b/.github/buildomat/jobs/omicron-common.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "omicron-common (helios)" #: variety = "basic" diff --git a/.github/buildomat/jobs/package.sh b/.github/buildomat/jobs/package.sh index d39f4b14969..7b84f20700a 100755 --- a/.github/buildomat/jobs/package.sh +++ b/.github/buildomat/jobs/package.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "helios / package" #: variety = "basic" diff --git a/.github/buildomat/jobs/tuf-repo.sh b/.github/buildomat/jobs/tuf-repo.sh index ce1be088115..ab9cfa10789 100755 --- a/.github/buildomat/jobs/tuf-repo.sh +++ b/.github/buildomat/jobs/tuf-repo.sh @@ -2,7 +2,6 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. - #: #: name = "helios / build TUF repo" #: variety = "basic"