New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

azsecrets

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azsecrets

Set Azure Secrets as environment variables.

  • 2.0.1
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc