Skip to content

Latest commit

 

History

History
546 lines (435 loc) · 32.9 KB

CHANGELOG.md

File metadata and controls

546 lines (435 loc) · 32.9 KB

Changelog

All notable changes to the SchemaPin project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Supported runtimes

  • Python package builds and CI use setuptools 83.0.0 or later to include its security fixes.
  • Python now requires 3.10 or later and Rust requires 1.89 or later, matching the patched dependency graph. Packaging metadata and current documentation agree on these minimums; CI tests each minimum alongside a newer runtime.

Security

  • Updated the pinned Python cryptography dependency and JavaScript development dependency lockfile to clear current dependency advisories. The reference server uses patched FastAPI, Starlette, AnyIO and Pydantic versions and no longer installs unused JWT, password, multipart or file-helper libraries.

Fixes from the 2026-10 security review of all four SDKs, the reference server and the demo. IDs refer to the review's findings. Wire-format changes are called out explicitly; everything else is behavior.

  • SP-1 — Skill signatures now cover the whole .schemapin.sig document (schemapin_version: "1.4"): expires_at, schema_version, previous_hash, canonicalization, domain, skill_name, signer_kid, signed_at and file_manifest are all signed. Verifiers recompute the root hash, require skill_hash to match, and verify over the canonical document. Legacy "1.3" documents still verify (with a legacy_signature_format warning) but cannot anchor a lineage. Wire-format change for new signatures.
  • SP-2 — Go signed the schema digest directly while Python, JavaScript and Rust sign ECDSA(SHA-256(digest)); Go now matches. Go-produced schema and skill signatures from earlier releases will not verify elsewhere (they never did). A fixed cross-language ECDSA vector is committed.
  • SP-3 / SP-4 / SP-5 — schemapin-v1 canonicalization is now specified normatively (spec §4) and implemented identically: code-point key order, literal <>& and U+2028/9, minimal escaping, ES6 number formatting with a 2^53−1 magnitude limit, rejection of NaN/Infinity, duplicate keys, lone surrogates and invalid UTF-8, __proto__ preserved. 33 shared vectors in tests/cross-language/canonicalization/ are asserted by all four suites. Schemas containing floats such as 1.0 or integers above 2^53 canonicalize differently than before (or are rejected).
  • SP-6 — Trust-bundle authorities must be allow-listed (seed_bundle_authority); unknown authorities fail with BUNDLE_AUTHORITY_UNTRUSTED unless first-use trust is explicitly allowed, and the result reports first_use.
  • SP-7 — Reference server: bearer-token authentication on all mutations (off by default), merge-on-upload that never wipes revocations, no CORS credentials with wildcard origins, enforced rate limit, localhost/debug-off defaults, host-based /.well-known/schemapin.json with no first-developer fallback.
  • SP-8 — Skill verification binds the caller's domain: resolver paths fail with DOMAIN_MISMATCH before any I/O when the signature's domain differs, offline paths accept an expected domain, and the signature's own domain is display-only.
  • SP-9 — Revocation is fail-closed everywhere: an unreachable revocation_endpoint or .well-known document is DISCOVERY_FETCH_FAILED (opt-out: allow_unreachable_revocation), ChainResolver propagates errors, and the legacy workflows consult revocation_endpoint.
  • SP-10 — Only ECDSA P-256 keys are accepted in every SDK (load, sign, verify, fingerprint).
  • SP-11 — Discovery transport: https:// only, no redirects, 64 KiB body cap, timeouts in every fetcher, and a shared RFC 1123 domain validator applied before URLs, pin keys and file paths.
  • SP-12 / SP-13 — Skill canonicalization v2: symlinks and special files abort hashing, per-entry hashes are length-prefixed ("f" ‖ be64(len(path)) ‖ path ‖ be64(len(content)) ‖ content), the root covers path/digest pairs, and entry count and total size are capped. Wire-format change (selected by schemapin_version: "1.4").
  • SP-14 — skill_hash is hex(root_hash) in all SDKs (Rust previously hashed the root hash again) and is verified.
  • SP-15 — Legacy KeyPinning stores are keyed by (tool_id, domain) with in-place migration; the JavaScript store fails hard on corruption, writes atomically with mode 0600 and checks revocation in its interactive flows; the legacy workflows pin only after a successful verification.
  • SP-16 — LocalFileResolver validates the domain and confines resolved paths to the configured directory.
  • SP-17 — Expiration fails closed (SIGNATURE_EXPIRED, 5-minute skew, strict RFC 3339); allow_expired restores the degraded behavior per call.
  • SP-18 — Private keys are written with mode 0600; committed demo and fixture private keys were removed and the fixture bundle re-signed under the test-only authority schemapin-test-fixture-authority.
  • SP-19 — Parity fixes: strict RFC 3339 parsing in JavaScript, Go rejects an empty canonicalization field and trailing DER bytes, go.mod pins a toolchain, bundle signing input is built from the known field set in every SDK, duplicate bundle domains are rejected.
  • SP-20 — Documentation, CLI and demo drift fixed (see below).
  • Pins are written only after signature verification in every verification path; KeyPinStore gains check / pin / seed.
  • Trust-bundle merges honor an authority precedence list and compare parsed timestamps.

Added

  • LineageStore (all SDKs): verifier-side latest_known_hash per tool_id@domain with fork/rollback and monotonic schema_version enforcement (spec §18.4).
  • verify_schema_offline_with_dns (all SDKs).
  • Cross-language fixtures: canonicalization corpus, ECDSA signature vector, v1.4 and legacy skill directories, re-signed trust bundle, and test-only keys under tests/cross-language/keys/.
  • Property-based tests (hypothesis, proptest, Go native fuzz seeds, a seeded generator in JavaScript) and libFuzzer targets under rust/fuzz/.
  • server/tests/ for the reference server.

Changed

  • Dependency bumps: h2, rustls, crossbeam-epoch, chacha20 (Rust, optional features); Go toolchain pinned to go1.26.9.
  • KeyPinning / SchemaVerificationWorkflow are deprecated in favor of KeyPinStore + verify_schema_with_resolver.
  • rust: canonicalize_schema / canonicalize_and_hash return Result; verify_trust_bundle is strict (use verify_trust_bundle_with_options for first-use trust).

[1.4.0-alpha.4] - 2026-06-21

Added

Trust Bundle Distribution for A2A Networks — All Four Languages

Signed trust bundles so they can be exchanged between agents over A2A without per-bundle out-of-band trust establishment. Roadmap item 6. All additions are optional fields — existing unsigned bundles are unaffected.

  • Wire format: trust bundles gain four optional top-level fields — bundle_authority ({ kid, public_key_pem }), signed_at, expires_at, and signature (base64 DER ECDSA P-256). Signing stamps schemapin_bundle_version to "1.4".
  • Signing input: the signature covers the schemapin-v1 canonicalization (recursive sorted keys, compact, UTF-8) of the whole bundle with the signature field set to "". The four SDKs produce byte-identical signing input, so a bundle signed by any SDK verifies in every other (proven by the shared tests/cross-language/signed_bundle.json fixture).
  • sign_trust_bundle(bundle, private_key_pem, kid, signed_at, expires_at?): derives the authority public key from the private key, stamps metadata, and writes the signature. (Camel/Pascal-cased per language.)
  • verify_trust_bundle(bundle, authority_pin_store): requires a signed bundle (else BUNDLE_UNSIGNED), rejects past-expires_at bundles (BUNDLE_EXPIRED), TOFU-pins the authority key by kid (mismatch → KEY_PIN_MISMATCH), then verifies the signature (SIGNATURE_INVALID).
  • merge_trust_bundles(bundles): deduplicates discovery and revocation documents by domain, newest source (signed_at, else created_at) winning. Returns an unsigned merged bundle to be re-signed before redistribution.
  • schemapin/trustBundle JSON-RPC envelope helpers (build_trust_bundle_request / build_trust_bundle_response / parse_trust_bundle_response) for A2A bundle exchange. The libraries provide the message envelope; transport and the receiving pin-store update are the host application's (e.g. Symbiont's) responsibility.
  • New error codes: BUNDLE_UNSIGNED, BUNDLE_EXPIRED.

Changed

  • All four implementations bumped to 1.4.0-alpha.4 (1.4.0a4 for Python).
  • Deviation from the scope doc: bundle_authority carries the authority key as public_key_pem (consistent with discovery documents) rather than a JWK. PEM is a plain string, which keeps the cross-language canonical signing input trivially identical; JWK would add a key-serialization surface for cross-SDK drift.

Notes

  • This is item 6 of the v1.4 roadmap. Items 7 (scan-aware signatures) and 8 (cross-agent schema cache) were descoped to v1.5 — they are additive and independent, so deferring them does not block the v1.4.0 GA.
  • Symbiont follow-up: receive schemapin/trustBundle over A2A and update the local pin store (filed Symbiont-side).

[1.4.0-alpha.3] - 2026-05-16

Added

Canonicalization Algorithm Identifier — All Four Languages

Optional canonicalization field on .schemapin.sig (and the canonicalization parameter on verify_schema_offline-family functions) naming the algorithm used to produce the signing input. Forward-compatibility hook so a future v2.x can swap canonicalization without breaking v1.x signatures.

  • Wire format: "canonicalization": "schemapin-v1" — optional, omitted when absent. Absence is equivalent to "schemapin-v1" (v1.3 backward compatibility).
  • Verifier semantics: absent / "schemapin-v1" accepted; any other value is a hard failure surfacing as the new CANONICALIZATION_UNSUPPORTED / canonicalization_unsupported error code.
  • Sign-time API: SignOptions.canonicalization (or with_canonicalization builder in Rust). Default omits the field on the wire so v1.3 signatures stay byte-identical.
  • Verifier API:
    • Rust: verify_schema_offline_with_canonicalization(...) (thin extension of verify_schema_offline).
    • JavaScript: optional canonicalization parameter on verifySchemaOffline.
    • Python: optional canonicalization keyword arg on verify_schema_offline.
    • Go: VerifySchemaOfflineWithCanonicalization(...) (paired with the backward-compatible VerifySchemaOffline wrapper).

A2A Verification Context — All Four Languages

A2aVerificationContext and verify_schema_for_a2a extend the standard 7-step verification flow with an A2A (Agent-to-Agent) scope check. Closes the cross-protocol loop with AgentPin v0.3's AllowedDomains typed wrapper (AgentPin technical spec §4.11).

  • A2aVerificationContext: caller_agent_id (URN-style), delegation_depth, originating_domain, trusted_domains. The trusted_domains field uses the AgentPin convention — an empty list means unrestricted (all domains trusted), not "deny-all".
  • verify_schema_for_a2a(...): wraps verify_schema_offline with two extra checks:
    1. Delegation depth cap — reject when delegation_depth > 3. Mirrors AgentPin's max_delegation_depth cap; kept in lockstep at constant A2A_MAX_DELEGATION_DEPTH.
    2. Scope check — when trusted_domains is non-empty, reject when the provider domain is not allowed by it (wildcard-aware via *.suffix matching from AgentPin spec §5.5).
    • Both surface as the new A2A_SCOPE_VIOLATION / a2a_scope_violation error code.
  • AllowedDomains helpers (is_unrestricted / allows / intersect) are exposed locally in each SDK rather than via a hard dependency on the AgentPin SDK. The wire and in-memory shapes are identical to AgentPin's, so callers that link both packages can pass agentpin.AllowedDomains.intersect(...) results into trusted_domains verbatim.
  • Intersection edge case explicitly documented (AgentPin spec §4.11.4): two non-empty disjoint allow-lists intersect to [], which the convention treats as unrestricted. The verify_schema_for_a2a implementation uses allows(trusted_domains, domain) directly, NOT allows(intersect(trusted, [domain])), so the scope check correctly fires when the caller is restricted to a disjoint allow-list.

Notes

  • All v1.4 alpha.3 additions are additive optional fields / parameters. v1.3 verifiers and existing v1.4 alpha.1/alpha.2 signatures are unaffected.
  • This is items 4 + 5 of the v1.4 roadmap. Items 6–8 (A2A trust bundle distribution, scan-aware signatures, cross-agent schema cache) follow in 1.4.0-alpha.4 and 1.4.0 final.
  • All four SDKs at 1.4.0-alpha.3 / 1.4.0a3 (Python per PEP 440).

[1.4.0-alpha.2] - 2026-05-01

Added

Schema Version Binding (schema_version + previous_hash) — All Four Languages

  • SkillSignature.schema_version: Optional caller-supplied semver string identifying this version of the signed artifact. Opaque to SchemaPin (treated as a tag); surfaced via VerificationResult.schema_version for policy use.
  • SkillSignature.previous_hash: Optional sha256:<hex> of the prior signed version's skill_hash. Forms a hash chain across successive signatures.
  • SignOptions.with_schema_version / SignOptions.with_previous_hash (Rust); equivalent fields on the Python dataclass, JS options object, and Go struct. Either field bumps schemapin_version to "1.4".
  • verify_chain(current, previous): New chain-verification helper in every language. Returns success when current.previous_hash == previous.skill_hash. Distinguishes two failure modes — NoPreviousHash (current sig lacks the field) and Mismatch (both present but unequal). Pure-metadata check; cryptographic verification of both signatures must happen separately.
  • VerificationResult.schema_version / VerificationResult.previous_hash: New optional fields, mirrored from the signature when present. No automatic enforcement — chain verification is opt-in via verify_chain.
  • ChainError: Per-language error/exception type carrying the kind (no_previous_hash / mismatch) and, on mismatch, the expected and observed values.

Specification Updates (v1.4)

  • Section 18: Schema Version Binding — wire format, informational verifier semantics for schema_version and previous_hash, opt-in chain verification, operational pattern (per-tool latest_known_hash pinned alongside the TOFU key), backward compatibility.

Changed

  • All four implementations bumped to 1.4.0-alpha.2 (1.4.0a2 for Python per PEP 440).

Notes

  • Item #2 from the v1.4 roadmap. The full v1.4.0 release also requires items 4–8 (canonicalization id, A2A context, A2A trust bundles, scan-aware signatures, cross-agent schema cache).
  • Both new fields are additive optional fields — v1.3 verifiers ignore them, and v1.4 signatures without lineage opts behave identically to v1.3 signatures.

[1.4.0-alpha.1] - 2026-04-30

Added

Signature Expiration (expires_at) — Rust

  • SkillSignature::expires_at: Optional ISO 8601 / RFC 3339 timestamp on .schemapin.sig documents. v1.3 verifiers ignore the field; v1.4 verifiers degrade expired signatures to a warning rather than failing.
  • SignOptions builder (SignOptions::new().with_expires_in(Duration::days(N))): Optional sign-time configuration. Wraps the existing sign_skill parameters and adds expires_in. The legacy sign_skill function delegates to sign_skill_with_options for backward compatibility.
  • VerificationResult::expired + VerificationResult::expires_at: Surface expiration state on the result. valid remains true for expired signatures (degraded, not failed), and a signature_expired warning is appended.
  • VerificationResult::with_expiration_check: Helper applied automatically by verify_skill_offline after a successful signature check. Unparseable timestamps emit a signature_expires_at_unparseable warning rather than failing closed.
  • Documents written by sign_skill_with_options with expires_in set advertise schemapin_version: "1.4"; documents without expires_at retain "1.3".

DNS TXT Cross-Verification — Rust

  • New dns module with DnsTxtRecord, parse_txt_record, verify_dns_match, and txt_record_name. Always available; the parser/matcher have no DNS dependencies.
  • fetch_dns_txt(domain): Async lookup behind the new dns Cargo feature. Brings in hickory-resolver, tokio, and async-trait.
  • verify_skill_offline_with_dns(...): Variant of verify_skill_offline that accepts an optional &DnsTxtRecord. A mismatching record converts the result into a hard DOMAIN_MISMATCH failure; an absent record is a no-op (DNS TXT is additive).
  • TXT record format: _schemapin.{domain} IN TXT "v=schemapin1; kid=...; fp=sha256:...". Whitespace-tolerant parser, case-insensitive on fp, ignores unknown fields for forward compatibility.

Specification Updates (v1.4)

  • Section 16: Signature Expiration — expires_at field, degraded-vs-failed semantics, backward compatibility.
  • Section 17: DNS TXT Cross-Verification — _schemapin.{domain} TXT record format, verifier semantics, lookup name construction.
  • Section 12: Updated version compatibility note for v1.4.

Changed

  • Rust crate version: 1.3.0 → 1.4.0-alpha.1.
  • sign_skill now formats signed_at with second-level precision and a Z UTC suffix (RFC 3339 SecondsFormat::Secs). Existing v1.3 signatures continue to verify; the change only affects newly minted signatures.

Notes

  • This is the first v1.4 alpha. Python, JavaScript, and Go implementations follow in subsequent alphas before the v1.4.0 release.
  • Both new features are additive optional fields/records — v1.3 clients are unaffected.

[1.3.0] - 2026-02-14

Added

SkillSigner — File-Based Skill Folder Signing & Verification (All Languages)

  • skill module (Rust, Python, JavaScript, Go): Deterministic directory canonicalization and cryptographic signing for AgentSkills (SKILL.md) folders.
  • canonicalize_skill(): Recursively walks skill directory in sorted order, hashes each file as SHA256(relative_path + content), produces deterministic root hash and file manifest. Skips .schemapin.sig and symlinks.
  • parse_skill_name(): Extracts skill name from SKILL.md YAML frontmatter name: field, falls back to directory basename.
  • sign_skill(): Signs a skill folder with an ECDSA P-256 private key. Writes .schemapin.sig JSON containing root hash, per-file manifest, signature, domain, signer KID, and timestamp.
  • verify_skill_offline(): 7-step offline verification: load signature, validate discovery, extract key, check revocation, TOFU pin, canonicalize and compare, verify ECDSA signature.
  • verify_skill_with_resolver(): Resolves discovery and revocation documents via SchemaResolver trait, then delegates to offline verification.
  • load_signature(): Loads and parses .schemapin.sig JSON from a skill directory.
  • detect_tampered_files(): Compares current file manifest against signed manifest, reports modified, added, and removed files.
  • SkillSignature struct: Serializable signature document with schemapin_version, skill_name, skill_hash, signature, signed_at, domain, signer_kid, and file_manifest.

Security

  • Bumped cryptography dependency from 44.0.1/45.0.5 to 46.0.5 in Python and server packages.

[1.2.0] - 2026-02-11

Added

Rust Crate: Offline Verification, Trust Bundles, Resolver Abstraction

  • error.rs: Unified Error type using thiserror, wrapping crypto::Error via From. Feature-gated Http variant. ErrorCode enum for structured verification results.
  • types/discovery.rs: WellKnownResponse with optional contact and revocation_endpoint fields.
  • types/revocation.rs: RevocationDocument, RevokedKey, RevocationReason enum (KeyCompromise, Superseded, CessationOfOperation, PrivilegeWithdrawn).
  • types/pinning.rs: PinnedTool, PinnedKey, TrustLevel enum (Tofu, Verified, Pinned).
  • types/bundle.rs: SchemaPinTrustBundle, BundledDiscovery with find_discovery() and find_revocation() methods.
  • canonicalize.rs: JSON canonicalization with recursive key sorting and SHA-256 hashing. Functions: canonicalize_schema(), hash_canonical(), canonicalize_and_hash().
  • discovery.rs: URL construction, validation, builder. Functions: construct_well_known_url(), validate_well_known_response(), build_well_known_response(), check_key_revocation(), and fetch-gated fetch_well_known().
  • revocation.rs: Standalone revocation documents. Functions: build_revocation_document(), add_revoked_key(), check_revocation(), check_revocation_combined(), and fetch-gated fetch_revocation_document().
  • pinning.rs: TOFU key pinning keyed by tool_id@domain. KeyPinStore with check_and_pin(), add_key(), get_tool(), JSON serialization. PinningResult enum and check_pinning() wrapper.
  • resolver.rs: SchemaResolver trait with 4 implementations: WellKnownResolver (fetch-gated), LocalFileResolver, TrustBundleResolver, ChainResolver. AsyncSchemaResolver trait (fetch-gated).
  • verification.rs: VerificationResult struct. Functions: verify_schema_offline() (7-step flow), verify_schema_with_resolver(), and fetch-gated verify_schema().

Python: Offline Verification, Trust Bundles, Resolver Abstraction

  • revocation.py: RevocationReason enum, RevokedKey/RevocationDocument dataclasses. Functions: build_revocation_document(), add_revoked_key(), check_revocation(), check_revocation_combined(), fetch_revocation_document().
  • bundle.py: SchemaPinTrustBundle dataclass with find_discovery(), find_revocation(). Flattened BundledDiscovery format via dict merging.
  • resolver.py: SchemaResolver ABC with 4 implementations: WellKnownResolver, LocalFileResolver, TrustBundleResolver, ChainResolver.
  • verification.py: ErrorCode enum (8 codes), KeyPinStore in-memory pin store, VerificationResult dataclass. Functions: verify_schema_offline() (7-step flow), verify_schema_with_resolver().
  • utils.py: create_well_known_response() now accepts revocation_endpoint parameter, default schema_version changed to "1.2".

JavaScript: Offline Verification, Trust Bundles, Resolver Abstraction

  • revocation.js: RevocationReason constants. Functions: buildRevocationDocument(), addRevokedKey(), checkRevocation(), checkRevocationCombined(), fetchRevocationDocument().
  • bundle.js: Functions: createTrustBundle(), createBundledDiscovery(), findDiscovery(), findRevocation(), parseTrustBundle(). Flattened format via object spread.
  • resolver.js: SchemaResolver base class with 4 implementations: WellKnownResolver, LocalFileResolver, TrustBundleResolver, ChainResolver.
  • verification.js: ErrorCode constants, KeyPinStore class. Functions: verifySchemaOffline() (7-step flow), verifySchemaWithResolver().
  • utils.js: createWellKnownResponse() now accepts revocationEndpoint parameter, default schemaVersion changed to "1.2".

Go: Offline Verification, Trust Bundles, Resolver Abstraction

  • pkg/revocation/: RevocationReason type with constants, RevokedKey/RevocationDocument structs. Functions: BuildRevocationDocument(), AddRevokedKey(), CheckRevocation(), CheckRevocationCombined(), FetchRevocationDocument().
  • pkg/bundle/: SchemaPinTrustBundle struct with FindDiscovery(), FindRevocation(). BundledDiscovery with custom MarshalJSON/UnmarshalJSON for flattened format.
  • pkg/resolver/: SchemaResolver interface with 4 implementations: WellKnownResolver, LocalFileResolver, TrustBundleResolver, ChainResolver.
  • pkg/verification/: ErrorCode type (8 codes), KeyPinStore struct, VerificationResult struct. Functions: VerifySchemaOffline() (7-step flow), VerifySchemaWithResolver().
  • pkg/discovery/: Added RevocationEndpoint field to WellKnownResponse.
  • pkg/utils/: CreateWellKnownResponse() now accepts revocationEndpoint parameter, default schemaVersion changed to "1.2".

Specification Updates (v1.2)

  • Section 6: Added revocation_endpoint and contact optional fields to .well-known response.
  • Section 8.5: Standalone Revocation Document format.
  • Section 8.6: Revocation Reasons (key_compromise, superseded, cessation_of_operation, privilege_withdrawn).
  • Section 8.7: Combined Revocation Checking (simple list + standalone document).
  • Section 13: Trust Bundles — format, use cases, SchemaPinTrustBundle structure.
  • Section 14: Discovery Resolver — SchemaResolver abstraction, four implementations, fetch feature gate.
  • Section 15: Offline Verification — verify_schema_offline() as core primitive, 7-step flow.
  • Section 12: Updated backward compatibility note for v1.2.

Changed

  • Rust: Version bumped from 1.1.7 to 1.2.0
  • Rust: Added serde_json, thiserror, chrono dependencies
  • Rust: Added feature-gated reqwest, tokio, async-trait dependencies under fetch feature
  • Rust: Added tempfile dev-dependency
  • Python: Version bumped from 1.1.7 to 1.2.0
  • JavaScript: Version bumped from 1.1.7 to 1.2.0
  • Go: Version bumped from 1.1.7 to 1.2.0
  • All languages: Default schema_version in create_well_known_response() changed from "1.1" to "1.2"

Notes

  • Backward Compatible: Existing core/crypto modules are untouched — no breaking changes in any language
  • No new dependencies: Python uses stdlib dataclasses/json/abc, JS uses Node builtins, Go uses stdlib
  • Feature Flags (Rust only): default = [] (everything except HTTP). fetch enables HTTP-based discovery.
  • 109 Python tests, 96 JavaScript tests, and all Go tests pass

[1.1.7] - 2026-02-06

Fixed

  • Go: NewSchemaVerificationWorkflow now validates that pinning database path is not empty
  • Go: Fixed all golangci-lint errors (unchecked error returns, gosimple, ineffassign)
  • Rust: Fixed cargo fmt formatting issues in core and crypto modules
  • CI: Fixed version consistency check in release-combined workflow (grep for var Version not const Version)
  • CI: Fixed GitHub Release race condition where parallel release workflows would fail trying to create duplicate releases
  • CI: Fixed duplicate [dependencies] section in crates.io release workflow test step

Security

  • python-multipart: Updated from 0.0.18 to 0.0.22 to fix HIGH severity CVE (dependabot alert #18)
  • js-yaml transitive CVE: Eliminated by migrating ESLint from v8 to v9 flat config, removing the vulnerable transitive dependency (dependabot alert #17, MEDIUM severity)
  • brace-expansion: Updated to fix low severity ReDoS vulnerability
  • cryptography: Updated from 44.0.1 to 45.0.5 in server requirements to align with main Python package

Changed

  • ESLint 9 migration: Replaced legacy .eslintrc.cjs with eslint.config.js (flat config format) in JavaScript package
  • Version alignment: Server and integration demo versions now aligned with core library versions

Dependencies

  • python-multipart 0.0.18 → 0.0.22 (server)
  • cryptography 44.0.1 → 45.0.5 (server)
  • eslint ^8.57.0 → ^9.0.0 (JavaScript devDependencies)
  • Added @eslint/js ^9.0.0 and globals ^16.0.0 (JavaScript devDependencies)

[1.1.0] - 2025-01-07

Added

Phase 1: Key Revocation System

  • Schema Version 1.1: Enhanced .well-known/schemapin.json format with revoked_keys array
  • Key Revocation Support: Automatic checking of revoked keys during verification
  • Backward Compatibility: Full support for schema v1.0 endpoints
  • Revocation Validation: Comprehensive validation of revoked key entries

Phase 2: Interactive Key Pinning

  • Interactive Pinning: User prompts for key pinning decisions with detailed information
  • Domain Policies: Configurable policies for automatic vs. interactive pinning
  • Enhanced UX: Rich terminal output with colored status indicators and clear prompts
  • Key Management: Advanced key pinning with metadata and policy enforcement

Phase 3: CLI Tools

  • schemapin-keygen: Complete key generation tool with ECDSA/RSA support
  • schemapin-sign: Schema signing tool with batch processing and metadata
  • schemapin-verify: Verification tool with interactive pinning and discovery
  • Comprehensive Options: Full CLI interface with extensive configuration options

Phase 4: Integration Demo and Production Server

  • Integration Demo: Complete cross-language compatibility demonstration
  • Production Server: Docker-ready .well-known endpoint server
  • Real-world Examples: Practical usage scenarios and deployment guides
  • Cross-language Testing: Validation of Python/JavaScript interoperability

Phase 5: Package Management and Distribution

  • Python Package: Complete PyPI-ready package with modern packaging standards
  • JavaScript Package: npm-ready package with comprehensive metadata
  • Build Scripts: Automated building and testing infrastructure
  • Distribution Tools: Publishing workflows and validation scripts

Enhanced

Core Functionality

  • ECDSA P-256 Signatures: Industry-standard cryptographic verification
  • Schema Canonicalization: Deterministic JSON serialization for consistent hashing
  • Trust-On-First-Use (TOFU): Secure key pinning with user control
  • Public Key Discovery: RFC 8615 compliant .well-known endpoint discovery

Security Features

  • Key Revocation: Comprehensive revocation checking and validation
  • Signature Verification: Robust cryptographic signature validation
  • Key Pinning Storage: Secure local storage of pinned keys with metadata
  • Domain Validation: Proper domain-based key association and verification

Developer Experience

  • High-level APIs: Simple workflows for both developers and clients
  • Comprehensive Testing: Full test suites with security validation
  • Rich Documentation: Complete API documentation and usage examples
  • Cross-platform Support: Works on Linux, macOS, and Windows

Package Quality

  • Modern Packaging: Uses pyproject.toml and latest npm standards
  • Comprehensive Metadata: Rich package information for discoverability
  • Development Tools: Integrated linting, testing, and quality checks
  • Security Compliance: Bandit security scanning and vulnerability checks

Technical Specifications

Cryptographic Standards

  • Signature Algorithm: ECDSA with P-256 curve (secp256r1)
  • Hash Algorithm: SHA-256 for schema integrity
  • Key Format: PEM encoding for interoperability
  • Signature Format: Base64 encoding for transport

Protocol Compliance

  • RFC 8615: .well-known URI specification compliance
  • JSON Schema: Structured schema validation and canonicalization
  • HTTP Standards: Proper HTTP headers and status codes
  • Cross-language: Full Python and JavaScript compatibility

Package Standards

  • Python: PEP 517/518 compliant with pyproject.toml
  • JavaScript: Modern ES modules with comprehensive exports
  • Semantic Versioning: Proper version management and compatibility
  • License Compliance: MIT license with proper attribution

Dependencies

Python Requirements

  • cryptography>=41.0.0 - ECDSA cryptographic operations
  • requests>=2.31.0 - HTTP client for key discovery
  • Python 3.8+ support with type hints

JavaScript Requirements

  • Node.js 18.0.0+ - Modern JavaScript runtime
  • Zero external dependencies - Uses built-in crypto module
  • ES modules with proper exports configuration

Breaking Changes

  • None - Full backward compatibility maintained

Security Notes

  • All cryptographic operations use industry-standard algorithms
  • Key revocation checking prevents use of compromised keys
  • Interactive pinning provides user control over trust decisions
  • Secure storage of pinned keys with proper metadata

Migration Guide

  • Existing v1.0 implementations continue to work without changes
  • New features are opt-in and backward compatible
  • CLI tools provide migration assistance for existing workflows

[1.0.0] - 2024-12-01

Added

  • Initial release of SchemaPin protocol
  • Basic ECDSA P-256 signature verification
  • Simple key pinning mechanism
  • Python and JavaScript reference implementations
  • Core cryptographic operations and schema canonicalization

For more details on any release, see the GitHub releases page.