Merge pull request '[repo] Licence: CPAL-1.0 file headers instead of the MPL-2.0 notice' (#3) from repo/cpal-spdx into main

Merge repo/cpal-spdx: CPAL-1.0 file headers instead of the MPL-2.0 notice (PR #3)
This commit was merged in pull request #3.
This commit is contained in:
2026-11-23 00:49:25 +01:00
15 changed files with 25 additions and 35 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0 # SPDX-License-Identifier: CPAL-1.0
# #
# Pre-commit hook (shared with Ianitor). Rejects staged files that must never be in git: # Pre-commit hook (shared with Ianitor). Rejects staged files that must never be in git:
# - binaries: any NUL byte anywhere in the staged blob (git attributes do not matter) # - binaries: any NUL byte anywhere in the staged blob (git attributes do not matter)
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0 # SPDX-License-Identifier: CPAL-1.0
# #
# Self-test for .githooks/pre-commit. Creates a throw-away repository, points it at the # Self-test for .githooks/pre-commit. Creates a throw-away repository, points it at the
# hook and checks that every forbidden case is rejected and normal files are accepted. # hook and checks that every forbidden case is rejected and normal files are accepted.
Generated
+1 -1
View File
@@ -123,7 +123,7 @@ dependencies = [
[[package]] [[package]]
name = "domi-pki" name = "domi-pki"
version = "1.0.0" version = "1.0.1"
dependencies = [ dependencies = [
"base64 0.22.1", "base64 0.22.1",
"rcgen", "rcgen",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "domi-pki" name = "domi-pki"
version = "1.0.0" version = "1.0.1"
description = "The Domi CA: root certificate through a signer, intermediates, server, device and agent certificates, chain checks. Pure: no I/O." description = "The Domi CA: root certificate through a signer, intermediates, server, device and agent certificates, chain checks. Pure: no I/O."
edition = "2024" edition = "2024"
rust-version = "1.89" rust-version = "1.89"
+1 -1
View File
@@ -11,7 +11,7 @@ the checks on them. Used by [Ianitor](https://gitea.marek-novak.cz/mnovak/Ianito
```toml ```toml
[dependencies] [dependencies]
domi-pki = { git = "https://gitea.marek-novak.cz/mnovak/domi-pki", tag = "v1.0.0" } domi-pki = { git = "https://gitea.marek-novak.cz/mnovak/domi-pki", tag = "v1.0.1" }
``` ```
Design and rules: [docs/01_domi_pki.md](docs/01_domi_pki.md). Licence: CPAL-1.0 (Common Public Attribution License 1.0), see LICENSE. Anyone redistributing this code, or a work that includes it, must show the attribution in Exhibit B: "Built on Domi", https://aula.marek-novak.cz, Copyright (c) 2026 Marek Novák. Versions before this change stay available under MPL-2.0 to those who received them. Design and rules: [docs/01_domi_pki.md](docs/01_domi_pki.md). Licence: CPAL-1.0 (Common Public Attribution License 1.0), see LICENSE. Anyone redistributing this code, or a work that includes it, must show the attribution in Exhibit B: "Built on Domi", https://aula.marek-novak.cz, Copyright (c) 2026 Marek Novák. Versions before this change stay available under MPL-2.0 to those who received them.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! Making certificates: the root's (through a [`Signer`]), intermediates from CSRs, and the //! Making certificates: the root's (through a [`Signer`]), intermediates from CSRs, and the
//! leaves an [`Intermediate`] issues (server, device, agent). //! leaves an [`Intermediate`] issues (server, device, agent).
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! Reading certificates and CSRs (hostile input): what they say, who signed them, match codes. //! Reading certificates and CSRs (hostile input): what they say, who signed them, match codes.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! The Domi CA (docs/01_domi_pki.md): a small CA on rcgen, checked with rustls-webpki. Pure: the //! The Domi CA (docs/01_domi_pki.md): a small CA on rcgen, checked with rustls-webpki. Pure: the
//! caller passes the time in and does every file read and write. Keys are ECDSA P-256; a root //! caller passes the time in and does every file read and write. Keys are ECDSA P-256; a root
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! Who signs: the [`Signer`] trait (the root lives in Custos and signs through it) and the local //! Who signs: the [`Signer`] trait (the root lives in Custos and signs through it) and the local
//! [`KeyPair`] (intermediates, tests, the offline machine). //! [`KeyPair`] (intermediates, tests, the offline machine).
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! Helpers for tests that need certificates the Domi CA itself would never make. //! Helpers for tests that need certificates the Domi CA itself would never make.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! Checking chains (rustls-webpki) and agent certificates. Everything presented is hostile. //! Checking chains (rustls-webpki) and agent certificates. Everything presented is hostile.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! Agent certificates (tests first, docs/01): issued from the agent's own CSR, only by the agents //! Agent certificates (tests first, docs/01): issued from the agent's own CSR, only by the agents
//! intermediate; `verify_agent` names the agent, and refuses expired, foreign and mis-chained ones. //! intermediate; `verify_agent` names the agent, and refuses expired, foreign and mis-chained ones.
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! Chains, expiry and wrong issuers (tests first, docs/01): issued chains validate to the root, //! Chains, expiry and wrong issuers (tests first, docs/01): issued chains validate to the root,
//! a leaf cannot sign, pathLen 0 holds, expired and not-yet-valid certificates are refused, and a //! a leaf cannot sign, pathLen 0 holds, expired and not-yet-valid certificates are refused, and a
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
#![allow(dead_code, clippy::unwrap_used, clippy::expect_used, clippy::panic)] #![allow(dead_code, clippy::unwrap_used, clippy::expect_used, clippy::panic)]
+2 -3
View File
@@ -1,6 +1,5 @@
// This Source Code Form is subject to the terms of the Mozilla Public // SPDX-License-Identifier: CPAL-1.0
// License, v. 2.0. If a copy of the MPL was not distributed with this // Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! The root signs only through `Signer` (tests first, docs/01): once per operation, a signer whose //! The root signs only through `Signer` (tests first, docs/01): once per operation, a signer whose
//! key is not the root's is refused, a lying signer is caught, and CSRs never steer the profile. //! key is not the root's is refused, a lying signer is caught, and CSRs never steer the profile.