Skip to content

Security & Trust a.k.a. "The Fort Knox DEX release"

Latest

Choose a tag to compare

@crevilla2050 crevilla2050 released this 24 Nov 04:52
1203615

Dennis v0.9.4 — Security & Trust

Portable evidence. Independent verification. Trust without dependency.

Dennis v0.9.4 introduces a significant expansion of the DEX security model: cryptographically protected trust evidence, independently pinned Trust Roots, online-first trust resolution, and the foundations for secure remote evidence issuance.

The goal is straightforward: a DEX artifact should carry verifiable evidence of its integrity and provenance without requiring permanent access to Dennis Forge or any particular service provider.

This release strengthens that principle while preserving existing DEX workflows and historical signatures.


What's new

1. Portable Trust Evidence 1.0

DEX artifacts can now carry structured, cryptographically verifiable trust evidence.

The implementation includes:

  • Ed25519 digital signatures over canonicalized JSON (JCS).

  • SHA-256 integrity binding to artifact payloads.

  • Evidence descriptors protected by DEX finalization signatures.

  • Preservation of payload identity, artifact lineage, and existing signatures.

  • Atomic evidence attachment to prevent partial artifact replacement.

The dennis dex attach-evidence command remains available for attaching previously obtained evidence.

Trust evidence is portable: it can travel with the artifact and be inspected independently of the service that originally issued it.

Cryptographic validity and authority trust remain separate concepts. A signature can be mathematically valid without proving that its signer is currently trusted.

2. Trust Root management

Versioned ILP-TRUST-ROOT records establish an explicit foundation for authoritative trust verification.

New CLI commands:

dennis trust-root inspect <record>
dennis trust-root pin <record> --fingerprint <sha256>
dennis trust-root rotate <record>

The Trust Root lifecycle supports:

  • Explicit bootstrap against an independently obtained SHA-256 fingerprint.

  • Signed authorization of routine rotations by the currently trusted root.

  • Anti-rollback protection against unauthorized predecessor records.

  • Local historical retention in SQLite.

  • Rejection of trust established solely from downloading a record.

A newly downloaded Trust Root is not automatically trusted.

Routine rotation and recovery from a compromised root are deliberately different procedures. Compromise recovery requires explicit operator action and independent verification.

3. Online-first trust resolution

Dennis supports cryptographically authenticated trust-status responses through the TESSA-TRUST-LOOKUP/1.0 contract.

The trust-resolution model distinguishes between:

  • A valid cryptographic signature.

  • An authenticated authority's reported trust status.

  • Revoked, invalid, conflicting, or unknown trust information.

  • An unavailable remote authority.

When an authoritative endpoint is genuinely unreachable, Dennis can use an existing local SQLite trust snapshot, subject to its recorded provenance and freshness limitations.

Invalid, conflicting, or explicitly negative responses do not trigger a favorable offline fallback.

This prevents a failed trust validation from being mistaken for a network outage.

The public trust-resolution service is not yet deployed as part of this CLI release.

4. Secure remote issuance and atomic attachment

The new command surface introduces remote evidence issuance and attachment:

dennis dex issue-and-attach <artifact> \
  --endpoint https://<trusted-gateway>/api/v2/trust/evidence \
  --request-id <unique-request-id>

The command is designed to request evidence from a compatible authority gateway, validate the returned evidence, and attach it using the existing atomic DEX attachment path.

Security protections include:

  • HTTPS-only endpoints.

  • Rejection of embedded URL credentials, query strings, fragments, and malformed endpoint URLs.

  • Disabled automatic HTTP redirects to prevent bearer-token forwarding.

  • Endpoint validation before requesting credentials.

  • Hidden terminal input for bearer tokens.

  • Preservation of original DEX bytes when remote issuance or response validation fails.

Issuance uses an explicit request identifier to support the authority's idempotency contract.

Availability notice: The command and supporting protocol are implemented, but the production Tessa/Ziggy issuance service is not yet available. Remote issuance requires a compatible, independently trusted authority endpoint.

5. Timestamp transport and runtime improvements

This release introduces dedicated timestamp configuration, runtime, and transport components.

The separation supports clearer timestamp-service contracts and more predictable handling of HTTP requests, configuration, and failures.

Timestamp services and signing authorities retain their own versioned protocols; the Dennis CLI release number does not redefine those contracts.

6. Packaging and CI improvements

The release also improves Dennis distribution reliability:

  • Required runtime JSON schemas are included in the wheel.

  • Wheel and source-distribution builds complete successfully.

  • A historical experimental Scope module is excluded from distribution artifacts without modifying the original tracked source.

  • GitHub Actions now runs the Dennis regression suite and builds distributions.

  • Git-mode tests no longer depend on workstation-specific GPG signing configuration.


Verification and test results

The final reported Dennis regression run completed with:

Check | Result -- | -- Dennis tests | 259 passed Test failures | 0 Known warnings | 155 Wheel build | Passed Source distribution build | Passed CLI command discovery | Passed Runtime schema packaging | Verified Release artifact exclusions | Verified

The 155 warnings consist of one project-level Python deprecation warning and 154 third-party PathSpec deprecation warnings. They do not represent failing tests.

Both generated distributions were inspected to confirm exclusion of the historical experimental module and the checked private-file patterns.

These results document local CLI validation, not production authority acceptance testing.


Verification and trust boundaries

Dennis 0.9.4 deliberately avoids treating every successful signature check as proof of trust.

Integrity: Does the artifact still match its cryptographic commitments?

Authenticity: Does the signature verify against the identified public key?

Trust: Is that key recognized by an independently authenticated authority under the applicable policy?

Freshness: Is the available authority status sufficiently current for the verifier's requirements?

A valid artifact can carry historical evidence even when current online trust cannot be established.

Offline verification remains useful, but it cannot establish a fresh revocation status without sufficiently recent authenticated information.

No software can guarantee that a completely removed evidence object will be detectable without an independently preserved commitment to its existence.


Installation

Dennis 0.9.4 is distributed as a Python package.

Download the source distribution or wheel from the assets attached to this GitHub release, then install the downloaded wheel:

python -m pip install ./dennis-0.9.4-py3-none-any.whl

Confirm the installed command interface:

dennis --help
dennis trust-root --help
dennis dex --help

To inspect the new Trust Root commands:

dennis trust-root inspect --help
dennis trust-root pin --help
dennis trust-root rotate --help

The release archive and Python environment must satisfy the dependencies declared in the package metadata.


Compatibility and deployment status

Dennis CLI 0.9.4 is a standalone release. It does not require a Dennis Forge account for existing local artifact operations.

The following production integrations remain under development or deployment review:

  • Tessa's public Trust Gateway and Forge issuance authorization.

  • Ziggy's production signing authority and encrypted key custody provisioning.

  • Private mTLS certificate deployment.

  • Separate authority registries and production migrations.

  • Live issuance and authoritative online revocation tests.

  • End-to-end production signing and verification evidence.

These are not advertised as operational services in this release.

The existing offline DEX workflows, portable evidence handling, and independent verification capabilities remain available without these services.


Known limitations

  • Live public evidence issuance is not yet available.

  • Fresh authoritative online revocation requires a deployed compatible trust service.

  • Offline trust snapshots may not represent the authority's current status.

  • Trust Root compromise recovery requires an independently authenticated operator procedure.

  • The historical Scope experiment new_feature.py is excluded from this distribution.

  • Formal compatibility guarantees remain a future 1.0.0 objective.

For security-sensitive use, distinguish successful local cryptographic verification from current authority trust.


What's next?

Dennis 0.9.5 will focus on The Cast, continuing the development of the wider Dennis ecosystem.

Production Trust Authority integration and deployment will be announced separately once the Tessa–Ziggy infrastructure passes its live security acceptance tests.

The project will continue to preserve its central architectural principle:

Dennis is independently useful. Forge extends it; Forge does not define its validity.


Dennis v0.9.4 — Security & Trust

An artifact should remain verifiable long after the service that created it is gone.

Download string-audit