Represent SSH distribution sync as a resource log
This commit is contained in:
parent
eec4c92145
commit
42d7301bdb
6 changed files with 247 additions and 52 deletions
19
README.md
19
README.md
|
|
@ -215,14 +215,17 @@ node; it only unlocks the requested capability on that one resource.
|
|||
`geth ssh cert sync <node-id>` requires `ssh_cert.sync` on `resource:ssh:certs`
|
||||
at the peer. `geth ssh revocation sync <node-id>` requires
|
||||
`ssh_revocation.sync` on `resource:ssh:revocations`. Both commands merge
|
||||
authorized peer metadata into the local store for offline listing and later
|
||||
approval/signing workflows. While the daemon is running, it also performs a
|
||||
background live-sync tick for known peers. The default interval is 30 seconds
|
||||
and can be changed in `config.toml` with `[sync] live_sync_enabled` and
|
||||
`live_sync_interval_ms`. Live-sync stores per-peer high-water cursors in local
|
||||
metadata so repeated ticks request only newer SSH certificate-flow and
|
||||
revocation records. Sync import preserves local metadata by rejecting
|
||||
conflicting records with ids that already exist locally.
|
||||
authorized peer SSH distribution log entries into the local store for offline
|
||||
listing and later approval/signing workflows. The current log is materialized
|
||||
from signed certificate requests, signed certificate imports, and signed
|
||||
revocation records, then reduced locally; it is not a mutable remote ACL blob.
|
||||
While the daemon is running, it also performs a background live-sync tick for
|
||||
known peers. The default interval is 30 seconds and can be changed in
|
||||
`config.toml` with `[sync] live_sync_enabled` and `live_sync_interval_ms`.
|
||||
Live-sync stores per-peer high-water cursors in local metadata so repeated ticks
|
||||
request only newer SSH certificate-flow and revocation log entries. Sync import
|
||||
preserves local metadata by rejecting conflicting records with ids that already
|
||||
exist locally.
|
||||
Before probing individual modules, the daemon asks the peer for an authorized
|
||||
sync-status summary over Iroh. The peer only returns stream watermarks for
|
||||
resources where the caller already has the matching capability, letting the
|
||||
|
|
|
|||
Loading…
Reference in a new issue