Storage logic for Vault secrets and their associated leases.
Storage logic for Vault secrets and their associated leases.
(auth-lease auth)
Adds extra fields and sanitizes an authentication lease.
Adds extra fields and sanitizes an authentication lease.
(expired? lease)
Determines whether the lease has expired.
Determines whether the lease has expired.
(expires-within? lease duration)
Determines whether the lease expires within the given number of seconds.
Determines whether the lease expires within the given number of seconds.
(lease-watcher path watch-fn)
Constructs a watch function which will call the given function with the secret info at a given path when the lease changes.
Constructs a watch function which will call the given function with the secret info at a given path when the lease changes.
(leased? secret)
Determines whether the secret is leased.
Determines whether the secret is leased.
(list-leases store)
Returns a list of lease information currently stored.
Returns a list of lease information currently stored.
(lookup store path-or-id)
Looks up the given secret path in the store by path or lease-id. Returns the lease data, if present.
Looks up the given secret path in the store by path or lease-id. Returns the lease data, if present.
(new-store)
Creates a new stateful store for leased secrets.
This takes the form of a reference map of secret paths to lease data, including the secret data and any registered callbacks.
Creates a new stateful store for leased secrets. This takes the form of a reference map of secret paths to lease data, including the secret data and any registered callbacks.
(remove-lease! store lease-id)
Removes a lease from the store by id.
Removes a lease from the store by id.
(remove-path! store path)
Removes a lease from the store by path.
Removes a lease from the store by path.
(renewable-leases store window)
Returns a sequence of leases which are within window
seconds of expiring,
are renewable, and are marked for renewal.
Returns a sequence of leases which are within `window` seconds of expiring, are renewable, and are marked for renewal.
(renewable? secret)
Determines whether a leased lease is renewable.
Determines whether a leased lease is renewable.
(rotatable-leases store window)
Returns a sequence of leases which are within window
seconds of expiring,
are not renewable, and are marked for rotation.
Returns a sequence of leases which are within `window` seconds of expiring, are not renewable, and are marked for rotation.
(secret-lease info)
Adds extra fields and cleans up the secret lease info.
Adds extra fields and cleans up the secret lease info.
(sweep! store)
Removes expired leases from the store.
Removes expired leases from the store.
(update! store info)
Updates secret lease information in the store.
Updates secret lease information in the store.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close