src.hcp_vault_secrets_client package

Submodules

src.hcp_vault_secrets_client.hcp module

This module contains the code for the HCP client.

class src.hcp_vault_secrets_client.hcp.HcpClient[source]

Bases: object

Sets up the client with credentials loaded from environment variables. Reads required HCP credentials from the following environment variables: * HCP_ORGANIZATION_ID * HCP_PROJECT_NAME * HCP_PROJECT_ID * HCP_ACCESS_TOKEN

async create_app_secret(session, secret_name, secret_value)[source]

Creates a secret in a vault app.

Parameters:
  • session (ClientSession)

  • secret_name (str)

  • secret_value (str)

Return type:

str

async delete_app_secret(session, secret_name)[source]

Deletes a secret from a vault app.

Parameters:
  • session (ClientSession)

  • secret_name (str)

Return type:

str

async get_app_secret(session, secret_name)[source]

Gets a secret value from a vault app.

Parameters:
  • session (ClientSession)

  • secret_name (str)

Return type:

str

Module contents