Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,24 +112,24 @@ build` only — they are not in the compose stack.

## Architecture

![ANS reference implementation: system topology](docs/architecture/reference-implementation.svg)

*Three daemons (`ans-ra`, `ans-tl`, `ans-finder`), an offline verifier,
and the numbered register → seal → discover → verify lifecycle. Editable
source: [`reference-implementation.drawio`](docs/architecture/reference-implementation.drawio).*

Hexagonal / ports-and-adapters. The domain model (`internal/domain`)
has zero framework or storage dependencies. Services depend on port
interfaces (`internal/port`) which adapters in `internal/adapter/`
implement against real drivers.

```
cmd/ans-ra/main.go ───────┐
├─► internal/ra/service ─► port.AgentStore ─► internal/adapter/store/sqlite
cmd/ans-tl/main.go ───────┤ port.KeyManager ─► internal/adapter/keymanager
│ port.DNSVerifier ─► internal/adapter/dns
└─► internal/tl/service ─► port.RenewalStore ─► …

cmd/ans-verify/main.go ─► internal/tl/receipt (Verify, ExtractKID, ComputeLeafHash)
cmd/ans-dns/main.go ─► miekg/dns authoritative server + RA-driven record install/clear
```
implement against real drivers: `cmd/ans-ra` and `cmd/ans-tl` wire
`internal/ra/service` and `internal/tl/service` to the SQLite, file
key-manager, DNS, and certificate adapters; `cmd/ans-verify` depends
only on `internal/tl/receipt`; `cmd/ans-dns` is a miekg/dns
authoritative server with RA-driven record `install` / `clear`.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 50f8c89. The sentence now says ans-verify verifies receipts through internal/tl/receipt and checkpoints through internal/lognote, with no dependency on the TL's storage or service layer, which is the boundary that matters for an offline verifier. go list -deps ./cmd/ans-verify confirms the internal set is domain, port, crypto, lognote, and tl/receipt.


See `spec/api-spec-v2.yaml` + `spec/api-spec-tl-v2.yaml` for the
authoritative OpenAPI contracts.
authoritative OpenAPI contracts. `docs/architecture/ans-finder.md`
covers the discovery service in depth.

## Core contracts

Expand Down
Loading