
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
django-aws-secrets-env-setup
Advanced tools
A helper function for setting environment variables from AWS secret manager
This is a helper function to set up environment variables from AWS secrets manager.
The main function to use is set_env_variables(default_region_name, stop_on_failure=False, **kwargs)
.
In addition to default_region_name
and stop_on_failure
, there are several kwargs that can be passed.
os.environ[region_name_env_name]
is not set, the default_region_name
will be used as the region name instead.
region_name_env_name
is the name of the environment variable to check for the region name.
'SECRETS_REGION_NAME'
stop_on_failure
is a flag to indicate whether or not errors should be fatal.
It is strongly recommended for this to be set to True in a production environment.secrets_name
is the name of the secret to pull secrets from.
os.environ[secrets_name_env_name]'
secrets_name_env_name
is the name of the environment variable to use if secrets_name
is not in kwargs.
'SECRETS_NAME'
aws_access_key_id
is the ID of the AWS access key to be used.
os.environ[aws_access_key_id_env_name]'
aws_access_key_id_env_name
is the name of the environment variable to use if aws_access_key_id
is not in kwargs.
'AWS_ACCESS_KEY_ID'
aws_secret_access_key
is the AWS key used to access the secrets.
os.environ[aws_secret_access_key_env_name]'
aws_secret_access_key_env_name
is the name of the environment variable to use if aws_secret_access_key
is not in kwargs.
'AWS_SECRET_ACCESS_KEY'
service_name
is the service name of the secrets manager to connect to.
'secretsmanager'
FAQs
A helper function for setting environment variables from AWS secret manager
We found that django-aws-secrets-env-setup demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.