You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed — SonarCloud findings sweep: one real security gap, 49 hygiene items
REAL BUG (python:S1172 on audit_pack._verify_pack_chain): the pack's
require_pq declaration was accepted but never enforced. A pack whose
index declared require_pq=True but whose receipts carried only
classical signatures verified as valid - the exact field-stripping
downgrade the strict mode exists to close. ProvenanceVerifier gains
require_pq strict mode (mirror of AuditVerifier's): every receipt in
the chain must be a 4-segment pq1 hybrid. Regression test:
test_declared_require_pq_with_classical_chain_fails. Pack verdicts now
surface the verifier's specific errors (bounded) instead of only the
generic chain-invalid reason.
handshake.accept_call: removed the unused require_unrevoked parameter
(documented behaviour is fail-closed on revoked keys; nothing passed
the override).
Receipt-page and export collection logic extracted to module helpers
(cognitive complexity: _register_receipt_routes 74, check_tool_call,
gate_tool_call, _verify_chain_header, _check_issuer_uniqueness,
_verify_operator_signatures, _verify_signature all now under the 15
threshold; behaviour unchanged, 1003 tests pass).
raucle/approvals.py: ApprovalManager. Escalated calls now create a
receipted human approval request (x_approval); decisions through the
admin API are receipted with the named approver; the approval binds to
the exact tool, agent and canonical args hash and is consumed once.
Re-submitted call with X-Approval-Id allows through the threshold and
the action receipt cites the approval (full authority chain:
request → human decision → action).
Policy change ledger: every admin panel policy write appends a
hash-chained entry (seq, actor, action, content sha256, prev_hash) to
RAUCLE_POLICY_LEDGER; GET /api/policy-ledger returns entries and
recomputed-chain integrity. Receipts already bind ruleset hashes; the
ledger closes the loop upward: who changed the rules, and when.
Authority envelope: GET /api/agents/{id}/authority returns a signed
statement (raucle/authority-envelope/v1) of what the agent could use:
policies (tools, constraints, TTL) and credential status, verifiable
offline with the gate identity's public key.
Kill switch: POST /api/agents/{id}/suspend (admin-only) revokes the
agent's credential and writes an x_stop receipt (agent, reason, actor,
revoked). The stop itself is evidence: who stopped the agent, when, why.
tests/test_authority_attribution.py: 16 tests across all four features
(full approval flow, args binding, single consumption, expiry, denial,
tamper detection, envelope signature, suspend RBAC).
docs/security/key-operations.md: rotation (versioned-issuer zero-downtime
procedure; the registry's one-active-key-per-issuer impersonation control
is the reason), escrow, recovery, split PQ-key posture, fail-closed list.
Maps 1:1 to the executable test.
tests/test_key_rotation_e2e.py: the runbook's proof. Old receipts verify
after rotation (archival property: revoke != erase), new mints use the new
key, revocation fails new authorisation closed while old signatures still
verify; gateway signing-key restart rotation with both generations in one
chain.
docs/deployment-topologies.md: where raucle sits (not the model path),
the trust boundary stated plainly (in-process = observability; the
boundary is out-of-process gate + credential isolation), single node /
hot standby / namespace sharding, edge patterns (TLS/mTLS/OIDC), the
Postgres trigger, retention as a file operation.
docs/getting-started/20-production-hardening.md: the 90-minute evaluator
path (auth on, segments+index, restart test, offline verify, query,
checklist, runbooks).
deploy/helm/raucle-gateway: chart with REQUIRED adminKey (renders fail
without it), replicaCount pinned to 1 (one writer per chain), PVC,
probes, ingress; CI job lints + kubeconform-validates templates and
asserts the no-adminKey render fails.
Added — receipt query index, ancestry API and bulk egress (PR-C)
ReceiptIndex: SQLite (WAL) projection over the segmented store; rebuild
from chain at any time; never a trust decision.
/api/receipts upgraded to real query: agent/tool/decision/trace/time
filters with keyset pagination (tie-safe composite cursor).
/api/receipts/export: JSONL streaming egress for the caller's data
platform.
Admin panel Receipts tab: filter bar, paginated table, ancestry
drill-down.
Added — signed gate receipts and segmented storage (PR-B, production readiness)
Every /gate decision (allow, deny, escalate) emits a signed provenance
receipt (guardrail_scan + x_gate extension) written as a minimal envelope;
receipt_id returned in the response and verifiable offline with the
standard verifier, CLI, MCP tool and all five reference ports.
X-Trace-Id threads caller traces through receipts; generated and echoed
when absent.
Fail-closed accountability: an unwritable receipt downgrades the
decision to deny.
SegmentedReceiptStore: size-based segments with read-only sealing and
.meta sidecars; sealed segments are pure receipt chains (verify and
audit-pack directly); bounded-memory newest-first queries. Opt-in via
RAUCLE_RECEIPT_STORE_DIR; the legacy flat file remains the default.
Added — gateway identity and key persistence (PR-A, production readiness)
Gate authentication modes (RAUCLE_GATE_AUTH=off|apikey|token): per-agent
API keys (X-Api-Key, hashed at rest, constant-time verify, instant
revocation) and capability-token authentication (X-Capability-Token,
verified against the trust registry with per-call revocation propagation). off preserves the previous declared-identity behaviour (compat).
Auth failures return a receipted DENY with the reason, not a bare 401.
raucle agents issue-key|revoke-key|list CLI for credential management.
Gateway signing key persistence: local signers persist the Ed25519 key
(0600, default <data-dir>/gateway-signing-key.pem); tokens and receipts
now verify across restarts; corrupt key material fails closed instead of
silently regenerating.
Admin user persistence (RAUCLE_USERS_FILE): users and MFA secrets
survive restarts; demo-mode users remain in-memory by design.
Field-level Merkle commitments over call arguments (JCS-canonical leaves,
UTF-16 code-unit ordering, domain-separated SHA-256 throughout; the scheme
is deliberately zk-proof-system-portable).
Selective disclosure: the operator opens only the fields a verifier
requests, with Merkle paths; verify_disclosure fails closed on any
tamper or root mismatch.
Partial constraint re-check: per-constraint SATISFIED / VIOLATED / UNKNOWN verdicts re-derived independently of the operator's runtime. UNKNOWN is fail-closed and never counts as conformance.
Design document: docs/spec/provenance/v1/conformance-reverification.md
(Layer 1 of a three-layer roadmap; Layer 2 is a zkVM proof of the gate
check with zero disclosure).
Documentation
NCSC Cyber Assessment Framework (CAF v3.2) and NCSC ML-security-principles
control mapping: docs/security/ncsc-caf-mapping.md.
Repository URLs updated across docs, package metadata, reference ports,
and CI after the organisation move to epic28-ltd/raucle.
Paper (§5, §8, author's note): conformance layer, remote-key signing, and
policy-DSL gateway recorded as post-freeze engineering additions; the
evaluation's pre-registration scope is unchanged.