Azure KeyVault Secrets as Environment Variable
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
Metadata
Release files for azsecrets 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| azsecrets-2.0.1.tar.gz | 3.7 kB | Without provenance | Details for azsecrets-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| azsecrets-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for azsecrets-2.0.1-py3-none-any.whl |
Total release size: 8.5 kB
Release files / azsecrets-2.0.1.tar.gz
| Download URL | azsecrets-2.0.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f0f5fce9c70a980e612b4d31b77f5622bcc58678e8aba81e84dec424ddd68f2
|
|
BLAKE2b-256 checksum How to use checksums |
1932f59c89d3675fb05374d8799e3bfbf70a16acce1087de797c397651e7ff74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / azsecrets-2.0.1-py3-none-any.whl
| Download URL | azsecrets-2.0.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e773ac58767d9bd57ec31029230f074c115ba20084d60dc4a1bf1be50c2d9bc2
|
|
BLAKE2b-256 checksum How to use checksums |
79be54c72d9582aea21babc2d525f11f5f35099f124a4d67e2499cfa102c72bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for azsecrets 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.