Documentation
¶
Overview ¶
Package certrevocation keeps an rpc.CertRevocations in step with the certificate_revocation entities in the store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context, log *slog.Logger, store entity.Store, set *rpc.CertRevocations) error
Load installs every stored revocation into set, leaving it loaded. Any error leaves it unloaded and should stop the server: a record that cannot be read might be the only thing keeping a revoked certificate out, so nothing short of every record counts as loaded. Clearing a bad record then means repairing it in etcd, since the API is not up to do it.
Load runs before the entity server exists, which is why it takes the store rather than an RPC client.
func Watch ¶
func Watch(ctx context.Context, log *slog.Logger, eac *entityserver_v1alpha.EntityAccessClient, set *rpc.CertRevocations)
Watch keeps set current until ctx ends. On the coordinator it picks up writes that bypassed the Revoke handler. On a runner it is the only source, so the runner refuses certificates until the first snapshot arrives, and a revocation reaches it a moment after Revoke returns.
Types ¶
This section is empty.