Ptolemy v0.2.0 Ptolemy.Engines.KV.Engine View Source

Ptolemy.Engines.KV provides interaction with a Vault server's Key Value V2 secret egnine.

Link to this section Summary

Functions

Creates a new vault secret using vault's KV engine

Deletes a specific set of version(s) belonging to a specific secret

Destroys a specific set of version(s) belonging to a specific secret

Reads a secret from a remote vault server using Vault's KV engine

Link to this section Functions

Link to this function

create_secret(client, path, data, cas \\ nil) View Source

Creates a new vault secret using vault's KV engine.

Link to this function

delete(client, path, vers) View Source
delete(Tesla.Client.t(), String.t(), [integer()]) ::
  {:ok, String.t()} | {:error, String.t()}

Deletes a specific set of version(s) belonging to a specific secret.

If a 403 response is received, please check your ACL policy on vault.

Link to this function

destroy(client, path, vers) View Source
destroy(Tesla.Client.t(), String.t(), [integer()]) ::
  {:ok, String.t()} | {:error, String.t()}

Destroys a specific set of version(s) belonging to a specific secret.

If a 403 response is received, please check your ACL policy on vault.

Link to this function

read_secret(client, path, vers \\ []) View Source
read_secret(Tesla.Client.t(), String.t(), [{:version, integer()}] | []) ::
  {:ok, map()} | {:error, String.t()}

Reads a secret from a remote vault server using Vault's KV engine.