Supply-chain hardening at build time and zero-PII observability at runtime protect the two boundaries most frequently exploited in modern software stacks: unpinned third-party packages during install and credential-bearing query strings written into HTTP access logs or telemetry spans.
Across eu-cra-cyclonedx-sbom-bidi-release-audit, lockfile-sbom-audit-to-trojan-source-scan-to-notarized-release, cargo-npm-pypi-lockfile-typosquat-integrity-spec.json, and opentelemetry-zero-pii-redacted-observability-spec.json, Destiny 2.0.0 locks down Cargo/npm/PyPI dependencies while keeping default cloud telemetry at 0 B (0 PyPI runtime wheels in guard_scan.py).
1. Combined Lockfile Pinning & Zero-PII Observability Invariants
| Security Domain | Baseline Hazard | Required Verifiable Control |
|---|---|---|
Rust Cargo.lock |
Mutable git deps or lockfile drift in CI |
cargo build --locked --offline with SHA-256 checksums & explicit source allowlists |
Node package-lock.json / pnpm |
postinstall script execution or npx -y / @latest
|
SHA-512 SRI (sha512-...), npm ci --ignore-scripts / pnpm install --frozen-lockfile --ignore-scripts, verified offline via MCP #11 audit_mcp_config_security
|
Python / PyPI / uv |
Unhashed wheels or --extra-index-url dependency confusion |
Enforce --require-hashes --no-deps or zero-PyPI stdlib tooling (0 external wheels) + sbom.cdx.json
|
| Nginx & OpenTelemetry Redaction |
$request_uri logging ?code= / ?token= or exporting Authorization / gen_ai.prompt
|
Nginx W7-57 map $request_uri $destiny_redacted_uri (^([^?]+)\?), log_format destiny_redacted, and 0 B default cloud export (verify_zero_telemetry_privacy_contract) |
2. Combined Zero-Dependency Python Lockfile & Nginx Redaction Verifier
#!/usr/bin/env python3
"""Verify Cargo/npm/PyPI lockfile hashes alongside Nginx $destiny_redacted_uri query stripping."""
import json
import re
import urllib.request
HEADERS = {"User-Agent": "DestinyVerifier/2.0"}
def fetch_json(url: str) -> dict:
with urllib.request.urlopen(urllib.request.Request(url, headers=HEADERS), timeout=15) as r:
assert r.status == 200
return json.loads(r.read().decode("utf-8"))
lock_spec = fetch_json("https://nandai.org/.well-known/cargo-npm-pypi-lockfile-typosquat-integrity-spec.json")
otel_spec = fetch_json("https://nandai.org/.well-known/opentelemetry-zero-pii-redacted-observability-spec.json")
assert lock_spec["destinyZeroDependencyPosture"]["pythonExternalWheels"] == 0
assert lock_spec["destinyZeroDependencyPosture"]["npmRuntimePackages"] == 0
assert otel_spec["nginxLogRedactionArchitecture"]["ruleId"] == "W7-57"
assert otel_spec["openTelemetryZeroPiiPolicy"]["defaultClientCloudExportBytes"] == 0
assert not re.search(r"\bnpx\s+-y\b|@latest\b", '{"command":"node","args":["server.js"]}')
assert "/oauth?token=secret".split("?", 1)[0] == "/oauth"
print("Lockfile SHA pinning & W7-57 zero-PII Nginx observability verified.")
Additional sovereign references: https://nandai.org/privacy, https://nandai.org/api/mcp, https://nandai.org/git/destiny.git/, https://nandai.org/src/destiny/, https://huggingface.co/nandai-org, and https://doi.org/10.5281/zenodo.24642737.
Top comments (0)