Skip to main content

Set Azure Secrets as environment variables.

Project description

Azure KeyVault Secrets as Environment Variable

FOSSA Status

Get Azure KeyVault variables ans use them as environment variables.

Install

pip install azsecrets

Usage

You can set environment variables for:

export AZURE_VAULT_BASE_URL=***
export AZURE_CLIENT_ID=***
export AZURE_SECRET_KEY=***
export AZURE_TENANT_ID=***

or send it via the CLI as

secrets --vault-base-url *** --client-id *** --secret *** --tenant *** env --shell bash

Once you have set up the environment variables, just call the CLI:

secrets env --shell bash

You can also use it at as an package my importing it:

from azsecrets import AzureSecrets

print(AzureSecrets().get_secret("SECRET-NAME"))
print(AzureSecrets().get_secrets(["SECRET-NAME-1", "SECRET-NAME-1"]))

Contributions

All contributions are welcome.

License

FOSSA Status

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

azsecrets-2.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

azsecrets-2.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file azsecrets-2.0.1.tar.gz.

File metadata

  • Download URL: azsecrets-2.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for azsecrets-2.0.1.tar.gz
Algorithm Hash digest
SHA256 4f0f5fce9c70a980e612b4d31b77f5622bcc58678e8aba81e84dec424ddd68f2
MD5 f064dd6de14e93741b520fc79325c1c0
BLAKE2b-256 1932f59c89d3675fb05374d8799e3bfbf70a16acce1087de797c397651e7ff74

See more details on using hashes here.

File details

Details for the file azsecrets-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: azsecrets-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for azsecrets-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e773ac58767d9bd57ec31029230f074c115ba20084d60dc4a1bf1be50c2d9bc2
MD5 64ce04bd92e48bc0b927961ef49348c0
BLAKE2b-256 79be54c72d9582aea21babc2d525f11f5f35099f124a4d67e2499cfa102c72bf

See more details on using hashes here.

Supported by

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