Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .github/buildomat/build-and-test.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/buildomat/ci-env.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/a4x2-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/a4x2-prepare.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/build-and-test-helios.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/build-and-test-linux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/check-features.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/clippy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/omicron-common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/tuf-repo.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/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"
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -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'
4 changes: 4 additions & 0 deletions end-to-end-tests/src/bin/bootstrap.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down
4 changes: 4 additions & 0 deletions end-to-end-tests/src/bin/commtest.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions end-to-end-tests/src/bin/dhcp-server.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions end-to-end-tests/src/helpers/cli.rs
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
4 changes: 4 additions & 0 deletions end-to-end-tests/src/helpers/icmp.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
4 changes: 4 additions & 0 deletions end-to-end-tests/src/helpers/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions end-to-end-tests/src/instance_launch.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
4 changes: 4 additions & 0 deletions end-to-end-tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions end-to-end-tests/src/no_spoof.rs
Original file line number Diff line number Diff line change
@@ -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)]

Expand Down
4 changes: 4 additions & 0 deletions end-to-end-tests/src/noop_blueprint.rs
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
4 changes: 4 additions & 0 deletions env.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions illumos-utils/src/coreadm.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 4 additions & 0 deletions illumos-utils/src/dumpadm.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/auth/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions nexus/db-model/src/affinity.rs
Original file line number Diff line number Diff line change
@@ -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/.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol... how?

// 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

Expand Down
4 changes: 2 additions & 2 deletions nexus/db-model/src/allow_list.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions nexus/db-model/src/audit_log.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 4 additions & 0 deletions nexus/db-model/src/bootstore.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-model/src/internet_gateway.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-model/src/quota.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-model/src/silo_auth_settings.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-model/src/sled_instance.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-model/src/utilization.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-queries/src/db/datastore/bootstore.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-queries/src/db/datastore/image.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-queries/src/db/datastore/multicast/members.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-queries/src/db/datastore/quota.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-queries/src/db/datastore/silo_auth_settings.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-queries/src/db/datastore/sled_instance.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-queries/src/db/datastore/switch.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nexus/db-queries/src/db/datastore/utilization.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Loading
Loading