certrevocation

package
v0.17.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL