- services/transparency-log/pkg/backend: Backend interface with in-memory append-log (RFC 6962 Merkle tree) + Trillian wrapper (prod stub). - Idempotenz-Pflicht: Wiederaufruf mit identischem content_hash liefert 200 + gleichen log_index + aktuellen inclusion_proof. - content_hash-Verifikation serverseitig; Mismatch → 409. - pkg/httpapi: ADR-0005-konformer Handler (201/200/400/404/409/503). - cmd/transparency-log: minimaler HTTP-Server, memory default, --backend trillian als Stub (503). - Interop-Test in services/admin-api/internal/tlog/interop_test.go fährt die echte transparency-log pkg gegen die admin-api HTTPSubmitter — Happy-Path, Idempotenz und content_hash-Mismatch abgedeckt. - go test: 10 Tests transparency-log + 2 Interop-Tests admin-api, go vet clean in beiden Modulen. Folge-Subtask: Trillian-Deployment + Keys (siehe ADR-0005 Open Points). Co-Authored-By: Paperclip <noreply@paperclip.ing>
10 lines
438 B
Modula-2
10 lines
438 B
Modula-2
module basicstack.de/proofedmesh/services/admin-api
|
|
|
|
go 1.23
|
|
|
|
// Interop test in internal/tlog exercises the real transparency-log HTTP
|
|
// handler via its public pkg API. The module is only available locally in
|
|
// this monorepo; keep the replace directive aligned with the sibling path.
|
|
replace basicstack.de/proofedmesh/services/transparency-log => ../transparency-log
|
|
|
|
require basicstack.de/proofedmesh/services/transparency-log v0.0.0
|