Liking cljdoc? Tell your friends :D
Clojure only.

vault.sys.wrapping

The `/sys/wrapping` endpoint is used to wrap secrets and lookup, rewrap, and
unwrap tokens.

Reference:
- https://www.vaultproject.io/api-docs/system/wrapping-lookup
- https://www.vaultproject.io/api-docs/system/wrapping-rewrap
- https://www.vaultproject.io/api-docs/system/wrapping-unwrap
- https://www.vaultproject.io/api-docs/system/wrapping-wrap
raw docstring

APIcljprotocol

The wrapping endpoint is used to manage response-wrapped tokens.

The wrapping endpoint is used to manage response-wrapped tokens.

lookupclj

(lookup client token-id)

Read the wrapping properties for the given token.

Read the wrapping properties for the given token.

rewrapclj

(rewrap client token-id)

Rotate the given wrapping token and refresh its TTL. Returns the new token info.

Rotate the given wrapping token and refresh its TTL. Returns the new token
info.

unwrapclj

(unwrap client)
(unwrap client token-id)

Read the original response inside the given wrapping token.

Read the original response inside the given wrapping token.

wrapclj

(wrap client data ttl)

Wrap the given map of data inside a response-wrapped token with the specified time-to-live. The TTL can be either an integer number of seconds or a string duration such as 15s, 20m, 25h, etc. Returns the new token info.

Wrap the given map of data inside a response-wrapped token with the
specified time-to-live. The TTL can be either an integer number of seconds
or a string duration such as `15s`, `20m`, `25h`, etc. Returns the new
token info.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close