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:
@@ -1,5 +1,5 @@
|
||||
#!/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:
|
||||
# - binaries: any NUL byte anywhere in the staged blob (git attributes do not matter)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/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
|
||||
# hook and checks that every forbidden case is rejected and normal files are accepted.
|
||||
|
||||
Generated
+1
-1
@@ -123,7 +123,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "domi-pki"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"rcgen",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
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."
|
||||
edition = "2024"
|
||||
rust-version = "1.89"
|
||||
|
||||
@@ -11,7 +11,7 @@ the checks on them. Used by [Ianitor](https://gitea.marek-novak.cz/mnovak/Ianito
|
||||
|
||||
```toml
|
||||
[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.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||
|
||||
//! Making certificates: the root's (through a [`Signer`]), intermediates from CSRs, and the
|
||||
//! leaves an [`Intermediate`] issues (server, device, agent).
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||
|
||||
//! Reading certificates and CSRs (hostile input): what they say, who signed them, match codes.
|
||||
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||
|
||||
//! 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
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||
|
||||
//! Who signs: the [`Signer`] trait (the root lives in Custos and signs through it) and the local
|
||||
//! [`KeyPair`] (intermediates, tests, the offline machine).
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||
|
||||
//! Helpers for tests that need certificates the Domi CA itself would never make.
|
||||
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||
|
||||
//! Checking chains (rustls-webpki) and agent certificates. Everything presented is hostile.
|
||||
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||
|
||||
//! 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.
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository 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
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||
|
||||
#![allow(dead_code, clippy::unwrap_used, clippy::expect_used, clippy::panic)]
|
||||
|
||||
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// 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/.
|
||||
// SPDX-License-Identifier: CPAL-1.0
|
||||
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||
|
||||
//! 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.
|
||||
|
||||
Reference in New Issue
Block a user