trust: the verifying half of publisher signatures (own module)

Moved from yet/internal/trust, behavior and file formats unchanged, so
yacota (images) checks against the same trust-policy.json and
known-keys.json as yet (packages): the signature payload and its check
(Verify over fetched referrers), known keys with TOFU pinning
(Reconcile; refusals are ErrRefused), the trust policy (Evaluate,
AllowsCapability), Curated, Pinned and Home (yet's data directory).
Signing, key storage and the registry side stay in yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
terminarandClaude Opus 5.5 committed 2026-11-12 16:27:35 +01:00
1 parent 764b6f36ea
commit 35f8b7d18a
11 files changed
+1921 -3

No files matched your search

+7 -3
View File
@@ -17,7 +17,9 @@ Two **separate, nested modules** keep this module at its single
dependency: the native WebView GUI host `yetano.dev/yetano/core/gui`
(tags `gui/vX.Y.Z`, cgo, see [gui/README.md](gui/README.md)) and the
shared terminal-UI kernel `yetano.dev/yetano/core/tui` (tags
`tui/vX.Y.Z`, Charm lipgloss v2, see [tui/README.md](tui/README.md)).
`tui/vX.Y.Z`, Charm lipgloss v2, see [tui/README.md](tui/README.md)), and
the publisher-signature check `yetano.dev/yetano/core/trust` (tags
`trust/vX.Y.Z`, minisign, see [trust/README.md](trust/README.md)).
```text
yetano.dev/yetano/core
@@ -39,6 +41,7 @@ yetano.dev/yetano/core/gui/document
yetano.dev/yetano/core/gui/bridge
yetano.dev/yetano/core/gui/window
yetano.dev/yetano/core/tui (own module, tags tui/vX.Y.Z)
yetano.dev/yetano/core/trust (own module, tags trust/vX.Y.Z)
```
Target platforms: Linux, FreeBSD, macOS, Windows. No Unix assumptions
@@ -460,8 +463,9 @@ one-line form for log lines and web UI footers.
Tagged as plain semver on this repository (`v0.1.0`, ...), per the
meta-repo `AGENTS.md`'s versioning rules: an existing tag is never
force-moved to a different commit. The nested `gui` and `tui` modules
have their own prefixed tags (`gui/v0.1.0`, `tui/v0.1.0`, ...); a change
force-moved to a different commit. The nested `gui`, `tui` and `trust`
modules have their own prefixed tags (`gui/v0.1.0`, `tui/v0.1.0`,
`trust/v0.1.0`, ...); a change
there needs no main-module tag and vice versa.
## core/secretref