Skip to main content

Robocorp Control Room Vault API integration library

Project description

Robocorp Control Room Vault API library

robocorp-vault is a library which provides read and write access to the Vault at Robocorp Control Room.

Usage

from robocorp import vault
from robocorp import log 

def reading_secrets():
    secrets_container = vault.get_secret('secret_name')
    # Shows secret keys available:
    print(f"My secrets: {secrets_container}")
    # Note: actually prints the secret value below.
    print(f"Username: {secrets_container['username']}")

def modifying_secrets():
    secret = vault.get_secret("swaglabs")
    with log.suppress_variables():
        secret_value = collect_new_secret_value()
        secret["username"] = secret_value
        vault.set_secret(secret)

Note that values set or gotten from the vault will be automatically hidden from robocorp.log logs (if robocorp.log is available in the environment), but care needs to be taken when setting it so that secrets don't become exposed before being set into the vault.

i.e.: When setting values into the vault, if such values are sensitive, use with robocorp.log.suppress_variables() so that such value doesn't become logged before it's received by the vault.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robocorp_vault-1.0.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robocorp_vault-1.0.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file robocorp_vault-1.0.0.tar.gz.

File metadata

  • Download URL: robocorp_vault-1.0.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1041-azure

File hashes

Hashes for robocorp_vault-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cc49cbe26bbf3e757332d25ad6ce1a103f56d9c500428c6918725a1d6e58eb16
MD5 909e30ab3d0aafbfa7c82207162fac06
BLAKE2b-256 3937a956e345ab6c920b01927987b0835075dee95dd180032b695c94552cddba

See more details on using hashes here.

File details

Details for the file robocorp_vault-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: robocorp_vault-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1041-azure

File hashes

Hashes for robocorp_vault-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f05dbf17c2fb48153c75c6702418c1878399fbd41b93e388b71e0d052e6179fc
MD5 968a10ab676e240fc2d76ac56520092e
BLAKE2b-256 364500648a5f15c5ddcad2d22f90170d4da277c33410082a682dd6c1150ec8c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page