Documentation
¶
Overview ¶
Package revocation keeps the set of revoked relay-minted tokens. The control plane adds a token id with the token's expiry to one list in the shared store; every pod holds a copy it re-reads on an interval and checks in memory, so the request path makes no store call for it. A revoked token stays denied until its own expiry, when it would fail anyway, and the entry is dropped.
Scope: the list, its in-memory copy and the poll. Out of scope: who may revoke (control API), the bulk sign-out through a user's token version (plans), and the signature check.
Expected kv ops: none per request; one GET per pod per poll; one locked GET and SET per revocation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
List is the shared list and this pod's copy of it.
func (*List) Refresh ¶
Refresh replaces this pod's copy with the shared list, keeping the ids this pod revoked that the read does not hold yet.
func (*List) Revoke ¶
Revoke adds token id, valid until exp, to the shared list and to this pod's copy. A token already past exp is not recorded.