Skip to content

Align copyright headers with agreed OpenSOVD header#97

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/improve-copyright-header
Draft

Align copyright headers with agreed OpenSOVD header#97
Copilot wants to merge 2 commits into
mainfrom
copilot/improve-copyright-header

Conversation

Copilot AI commented Jun 15, 2026

Copy link
Copy Markdown

opensovd-core used a short two-line SPDX header. This migrates all files to the canonical multi-line OpenSOVD header agreed in cicd-workflows#56, so the same header is used across all repositories.

Changes

  • Header text — replaced the two-line header with the full agreed block (copyright → NOTICE/Apache-2.0 notice → SPDX license id) across all 145 headered files.
  • Per-language markers// for Rust; # for TOML/YAML/Python/shell/Dockerfile/rego/CODEOWNERS/etc.; <!-- … --> HTML block for Markdown (normalizing both prior inline and block Markdown variants).
  • Ordering preserved — headers remain after shebangs (scripts/mkcerts.sh) and before Rust inner attributes (#![doc = …]).

Rust example:

// SPDX-FileCopyrightText: Copyright (c) 2026 Contributors to the Eclipse Foundation
//
// See the NOTICE file(s) distributed with this work for additional
// information regarding copyright ownership.
//
// This program and the accompanying materials are made available under the
// terms of the Apache License Version 2.0 which is available at
// https://www.apache.org/licenses/LICENSE-2.0
//
// SPDX-License-Identifier: Apache-2.0

Note for reviewers

Header text follows the agreed wording from the linked issue (Copyright (c) 2026 Contributors to the Eclipse Foundation, license identifier last). The sibling cicd-workflows REUSE template currently still carries an older (see CONTRIBUTORS) variant and year-placement is under active discussion there; if that finalizes differently, the migration is mechanical and can be re-run.

Copilot AI changed the title [WIP] Update copyright header to align with OpenSOVD standards Align copyright headers with agreed OpenSOVD header Jun 15, 2026
Copilot AI requested a review from rama492 June 15, 2026 14:40
@rama492 rama492 requested a review from Copilot June 15, 2026 15:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR standardizes SPDX copyright/license headers across the repository by replacing the prior short form with the agreed canonical multi-line OpenSOVD header, using the correct per-language comment markers and preserving required ordering (e.g., after shebangs, before Rust inner attributes).

Changes:

  • Replaced existing SPDX headers with the canonical multi-line NOTICE/Apache-2.0 block across the touched files.
  • Normalized comment markers per file type (//, #, <!-- ... -->) while keeping special top-of-file requirements intact (shebang-first, Rust #![...] placement).

Reviewed changes

Copilot reviewed 145 out of 145 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/test_rust.py Canonical multi-line SPDX header (Python #).
tests/opensovd-mcp/conftest.py Canonical multi-line SPDX header (Python #).
tests/opensovd-mcp/cli/test_version.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/test_signals.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/test_gateway_version.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/test_api.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/mocks/test_data_filter.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/mocks/conftest.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/conftest.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/test_version.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/test_transport_unix_socket.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/test_transport_unix_abstract.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/test_transport_tcp.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/test_tls.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/test_mtls.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/test_mock.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/test_cors.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/test_auth.py Canonical multi-line SPDX header (Python #).
tests/opensovd-gateway/cli/conftest.py Canonical multi-line SPDX header (Python #).
tests/fixtures.py Canonical multi-line SPDX header (Python #).
tests/conftest.py Canonical multi-line SPDX header (Python #).
tests/bruno/conftest.py Canonical multi-line SPDX header (Python #).
scripts/mkcerts.sh Canonical multi-line SPDX header placed after shebang (shell #).
rustfmt.toml Canonical multi-line SPDX header (TOML #).
README.md Canonical multi-line SPDX header (HTML comment block).
pyproject.toml Canonical multi-line SPDX header (TOML #).
opensovd-server/tests/routes.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/tests/data_filter.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/tests/common/mod.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/tests/builder.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/tests/auth.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/tls.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/server.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/schema.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/routes/version.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/routes/mod.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/routes/error.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/routes/entities/mod.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/routes/entities/component.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/routes/entities/area.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/routes/entities/app.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/routes/data.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/lib.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/connect_info.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/body.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/src/auth.rs Canonical multi-line SPDX header (Rust //).
opensovd-server/README.md Canonical multi-line SPDX header (HTML comment block).
opensovd-server/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-providers/src/lib.rs Canonical multi-line SPDX header (Rust //).
opensovd-providers/src/data/resource.rs Canonical multi-line SPDX header (Rust //).
opensovd-providers/src/data/mod.rs Canonical multi-line SPDX header (Rust //).
opensovd-providers/src/data/constant.rs Canonical multi-line SPDX header (Rust //).
opensovd-providers/src/data/builder.rs Canonical multi-line SPDX header (Rust //).
opensovd-providers/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-models/src/version.rs Canonical multi-line SPDX header (Rust //).
opensovd-models/src/types.rs Canonical multi-line SPDX header (Rust //).
opensovd-models/src/lib.rs Canonical multi-line SPDX header (Rust //).
opensovd-models/src/error.rs Canonical multi-line SPDX header (Rust //).
opensovd-models/src/discovery.rs Canonical multi-line SPDX header (Rust //).
opensovd-models/src/data.rs Canonical multi-line SPDX header (Rust //).
opensovd-models/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-mocks/src/lib.rs Canonical multi-line SPDX header (Rust //).
opensovd-mocks/README.md Canonical multi-line SPDX header (HTML comment block).
opensovd-mocks/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-extra/src/unit.rs Canonical multi-line SPDX header (Rust //).
opensovd-extra/src/lib.rs Canonical multi-line SPDX header (Rust //).
opensovd-extra/src/auth/rego.rs Canonical multi-line SPDX header (Rust //).
opensovd-extra/src/auth/mod.rs Canonical multi-line SPDX header (Rust //).
opensovd-extra/src/auth/jwt.rs Canonical multi-line SPDX header (Rust //).
opensovd-extra/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-core/src/topology.rs Canonical multi-line SPDX header (Rust //).
opensovd-core/src/lib.rs Canonical multi-line SPDX header (Rust //).
opensovd-core/src/entity/mod.rs Canonical multi-line SPDX header (Rust //).
opensovd-core/src/entity/component.rs Canonical multi-line SPDX header (Rust //).
opensovd-core/src/entity/area.rs Canonical multi-line SPDX header (Rust //).
opensovd-core/src/entity/app.rs Canonical multi-line SPDX header (Rust //).
opensovd-core/src/discovery.rs Canonical multi-line SPDX header (Rust //).
opensovd-core/src/data.rs Canonical multi-line SPDX header (Rust //).
opensovd-core/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-client/tests/unix.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/tests/discovery.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/tests/data.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/tests/components.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/tests/common/mod.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/tests/client.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/tests/areas.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/tests/apps.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/unix.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/list.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/lib.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/error.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/entities/mod.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/entities/component.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/entities/area.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/entities/app.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/discovery.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/data.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/src/client.rs Canonical multi-line SPDX header (Rust //).
opensovd-client/README.md Canonical multi-line SPDX header (HTML comment block).
opensovd-client/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-cli/mcp/src/main.rs Canonical multi-line SPDX header (Rust //).
opensovd-cli/mcp/src/cli.rs Canonical multi-line SPDX header (Rust //).
opensovd-cli/mcp/README.md Canonical multi-line SPDX header (HTML comment block).
opensovd-cli/mcp/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-cli/mcp/build.rs Canonical multi-line SPDX header (Rust //).
opensovd-cli/lib/src/trace.rs Canonical multi-line SPDX header (Rust //).
opensovd-cli/lib/src/lib.rs Canonical multi-line SPDX header (Rust //).
opensovd-cli/lib/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-cli/gateway/src/serve_dir.rs Canonical multi-line SPDX header (Rust //).
opensovd-cli/gateway/src/main.rs Canonical multi-line SPDX header (Rust //).
opensovd-cli/gateway/src/cors.rs Canonical multi-line SPDX header (Rust //).
opensovd-cli/gateway/src/cli.rs Canonical multi-line SPDX header (Rust //).
opensovd-cli/gateway/README.md Canonical multi-line SPDX header (HTML comment block).
opensovd-cli/gateway/Cargo.toml Canonical multi-line SPDX header (TOML #).
opensovd-cli/gateway/build.rs Canonical multi-line SPDX header (Rust //).
examples/server/systemd/systemd.rs Canonical multi-line SPDX header (Rust //).
examples/server/simple/simple.rs Canonical multi-line SPDX header (Rust //).
examples/server/mtls/mtls.rs Canonical multi-line SPDX header (Rust //).
examples/server/Cargo.toml Canonical multi-line SPDX header (TOML #).
examples/server/auth/sovd_authz.rego Canonical multi-line SPDX header (Rego #).
examples/server/auth/auth.rs Canonical multi-line SPDX header (Rust //).
examples/client/src/client.rs Canonical multi-line SPDX header (Rust //).
examples/client/Cargo.toml Canonical multi-line SPDX header (TOML #).
docs/development.md Canonical multi-line SPDX header (HTML comment block).
docker/Dockerfile.mcp Canonical multi-line SPDX header (Dockerfile #).
docker/Dockerfile.gateway Canonical multi-line SPDX header (Dockerfile #).
devenv.nix Canonical multi-line SPDX header (Nix #).
deny.toml Canonical multi-line SPDX header (TOML #).
CONTRIBUTING.md Canonical multi-line SPDX header (HTML comment block).
cliff.toml Canonical multi-line SPDX header (TOML #).
Cargo.toml Canonical multi-line SPDX header (TOML #).
benches/src/topology.rs Canonical multi-line SPDX header (Rust //).
benches/src/main.rs Canonical multi-line SPDX header (Rust //).
benches/Cargo.toml Canonical multi-line SPDX header (TOML #).
.pre-commit-config.yaml Canonical multi-line SPDX header (YAML #).
.markdownlint.yaml Canonical multi-line SPDX header (YAML #).
.github/workflows/labeler.yaml Canonical multi-line SPDX header (YAML #).
.github/workflows/first-interaction.yaml Canonical multi-line SPDX header (YAML #).
.github/workflows/ci.yaml Canonical multi-line SPDX header (YAML #).
.github/labeler.yaml Canonical multi-line SPDX header (YAML #).
.github/dependabot.yml Canonical multi-line SPDX header (YAML #).
.github/CODEOWNERS Canonical multi-line SPDX header (CODEOWNERS #).
.github/actions/docker-publish/action.yaml Canonical multi-line SPDX header (YAML #).
.envrc Canonical multi-line SPDX header (shell #).
.clippy.toml Canonical multi-line SPDX header (TOML #).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants