Ptolemy v0.2.0 Ptolemy.Engines.PKI.Engine View Source
Ptolemy.Engines.PKI.Engine
provides interaction with a Vault server's Public Key Infrastructure secret egnine.
Link to this section Summary
Functions
Creates a new role in Vault
Reads a secret from a remote vault server using Vault's KV engine
Deletes a specific set of version(s) belonging to a specific secret
Revoke a role, but this does not invalidate the cert generated from the role
Link to this section Functions
Link to this function
create_role(client, path, payload \\ %{})
View Source
create_role(client, path, payload \\ %{})
View Source
create_role(Tesla.Client.t(), String.t(), map()) ::
{:ok, String.t()} | {:error, String.t()}
create_role(Tesla.Client.t(), String.t(), map()) :: {:ok, String.t()} | {:error, String.t()}
Creates a new role in Vault.
Link to this function
generate_secret(client, path, common_name, payload \\ %{}) View Source
Reads a secret from a remote vault server using Vault's KV engine.
Link to this function
revoke_cert(client, path, serial_number, payload \\ %{}) View Source
Deletes a specific set of version(s) belonging to a specific secret.
Note:
If a 403 response is received, please check your ACL policy on vault.
Link to this function
revoke_role(client, path)
View Source
revoke_role(client, path)
View Source
revoke_role(Tesla.Client.t(), String.t()) ::
{:ok, String.t()} | {:error, String.t()}
revoke_role(Tesla.Client.t(), String.t()) :: {:ok, String.t()} | {:error, String.t()}
Revoke a role, but this does not invalidate the cert generated from the role.