Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
454 changes: 109 additions & 345 deletions services/opensecret/Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion services/opensecret/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tiktoken-rs = "0.5"
once_cell = "1.19"
pulldown-cmark = { version = "0.13.6", default-features = false }
pulldown-cmark-to-cmark = "22.0.0"
tinfoil = { git = "https://github.com/MaplePrivacyLabs/tinfoil-rs.git", rev = "f0fef79eec6a5a2c8592cf8aff4b90ab556acfbc" }
tinfoil = { git = "https://github.com/tinfoilsh/tinfoil-rs", tag = "v0.3.0-rc.4", default-features = false }
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }

[dev-dependencies]
Expand Down
8 changes: 4 additions & 4 deletions services/opensecret/deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ unsound = "all"
unmaintained = "none"
ignore = [
{ id = "RUSTSEC-2023-0071", reason = "No patched rsa release; Tinfoil uses RSA public-key verification only, while the advisory affects private-key operations" },
# Reviewed for Tinfoil f0fef79eec6a5a2c8592cf8aff4b90ab556acfbc and
# EHBP 93cc1fa1ad61e19f9a34fb23cb5b5d5635d3edb0. This exception is local
# to the backend; an advisory-ID ignore does not enforce these source pins.
{ id = "RUSTSEC-2026-0387", reason = "Pinned Tinfoil f0fef79 uses crypto-bigint 0.5.5 only for public-input P-256/P-384 attestation and Sigstore verification. Production EHBP key agreement uses X25519/dalek. Re-review when Tinfoil/EHBP pins, crypto consumers or HPKE suite selection change; remove after upgrading the affected dependency." },
# Reviewed for Tinfoil v0.3.0-rc.4 (4d15bea8) and EHBP v0.6.0 (a681fafe).
# This exception is local to the backend; an advisory-ID ignore does not
# enforce these source pins.
{ id = "RUSTSEC-2026-0387", reason = "Tinfoil v0.3.0-rc.4 reaches crypto-bigint 0.5.5 only through p256/p384, to verify ECDSA signatures over public attestation and Sigstore data. OpenSecret uses the TLS transport mode, so EHBP's HPKE (X25519/dalek) is compiled but not used. Re-review when Tinfoil/EHBP pins, crypto consumers or HPKE suite selection change; remove after upgrading the affected dependency." },
]

[bans]
Expand Down
3 changes: 2 additions & 1 deletion services/opensecret/docs/nitro-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,8 @@ sudo vim /etc/nitro_enclaves/vsock-proxy.yaml
Add these lines:
```
- {address: github-proxy.tinfoil.sh, port: 443}
# Retained unchanged by this migration; tinfoil-rs v0.2.0 embeds its trust root.
# Retained unchanged; tinfoil-rs 0.3 verifies offline and no longer contacts the
# GitHub, Sigstore TUF or KDS hosts. Router discovery still needs atc.tinfoil.sh.
- {address: tuf-repo-cdn.sigstore.dev, port: 443}
- {address: kds-proxy.tinfoil.sh, port: 443}
- {address: atc.tinfoil.sh, port: 443}
Expand Down
13 changes: 12 additions & 1 deletion services/opensecret/docs/tinfoil-rust-sdk-parity.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ streaming SSE, terminal framing, and numeric usage. Run it only through the
Tier 3 procedure in
`.agents/skills/validate-opensecret/SKILL.md`.

`provider_client::tests::live_maple_guests_attest_and_complete_through_the_direct_transport`
is ignored for the same reason and needs the dedicated Maple inference
credential. It proves that each dedicated guest verifies against its compiled
release policy and serves models, one completion and one stream through the
production transport.

If raw live evidence is needed, keep it outside the repository, use a
non-secret credential label, and redact authorization and attestation metadata.
The live test proves that provider and moment only; it does not prove
Expand All @@ -39,7 +45,12 @@ provider, EIF identity, or deployment.
## Trust and lifecycle

Preserve Tinfoil discovery, attestation, origin-bound TLS, bounded recovery,
connection reuse, and the no-downgrade rule. Retry only failures known to occur
connection reuse, and the no-downgrade rule. The SDK verifies V3 attestation
documents offline and enforces a freshness deadline on every verification;
OpenSecret renews a verification ahead of that deadline without a request in
hand, and replaces a client that still expires. The SDK pins a dedicated guest
to one repository; `src/maple_inference.rs` narrows each verification to the
approved tag, digest and launch measurement. Retry only failures known to occur
before request acceptance; do not replay ambiguous completion requests or
retain request bodies in shared recovery work.

Expand Down
4 changes: 2 additions & 2 deletions services/opensecret/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"tinfoil-0.2.1-maple.1" = "sha256-vdpdRjBwQ7wyyyuTRZROpRJ7i8OttSrXjJxBG9vBs8s=";
"tinfoil-ehbp-0.3.1" = "sha256-BSSob5uyIIOw/Zr5aZFTU0GOM5imxk7KoZ5g+I4+s70=";
"tinfoil-0.3.0-rc.4" = "sha256-s9w+CRyd0Smtc9INMuy0OZDcKtgF2vNByXZhmFkjQBs=";
"tinfoil-ehbp-0.6.0" = "sha256-JjMZvXuCJOFRkAugN3YJGrHR/6o9thm4SEezqZbHzVU=";
};
};
nativeBuildInputs = [
Expand Down
Loading