Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
auth0-deploy-cli-config-values
Advanced tools
Reads the configuration file for auth0-deploy-cli and replaces values found in AWS Secret Manager.
Provides the ability to externalize the secure values of your auth0-cli-deploy configuration file to AWS Secret manager. This way they are not stored in source control where the value can be accidentally leaked.
npm i -g auth0-deploy-cli-config-values aws-sdk
aws configure
. You can alternatively edit your .credentials file directly. The aws-sdk in use within this module will pickup the values appropriately. This includes being able to specify a profile at execution time. Make sure the account/profile you are using has permissions to read the secrets, see Permissions below for more details.a0deploy-config --profile dev --config ./a0deploy.json --output ./a0deploy.dev.json --profile some-profile
.Before secrets are resolved, the file has all of its double hash values resolved. Within your secret values you can use double hash to distinguish which environment the configuration will be for. The below example shows you an example configuration file were the environment is used to choose a different secret bundle based on the environment.
The logic will also respect nested values, so you can chain them as appropriate.
{
"AUTH0_DOMAIN": "YOUR_DOMAIN.auth0.com",
"AUTH0_CLIENT_ID": "secretmanager:/##STAGE##/auth0Deploy:CLIENT_ID",
"AUTH0_CLIENT_SECRET": "secretmanager:/##STAGE##/auth0Deploy:CLIENT_ID",
"AUTH0_ALLOW_DELETE": true,
"AUTH0_KEYWORD_REPLACE_MAPPINGS": {
"ENVIRONMENT": "dev",
"STAGE": "##ENVIRONMENT##-PR102",
"APP1_SECRET": "secretmanager:/##STAGE##/app1:SUPER_SECRET",
"APP2_SECRET": "secretmanager:/##STAGE##/app2:SUPER_SECRET"
}
}
Secrets will be added to values of the configurations by looking for secretmanager:
at the begining of a value. Next, the AWS Secret to lookup will be determined between the two semi-colons. Next, the final value will be looked up in the secret file. If nothing is found, an exception is thrown.
For instance, if you have a secret file called /dev/auth0Secrets and its contents are {"FOO":"bar"}
. To inject this value into your configuraiton file you would specify secret:/dev/auth0Secrets:FOO. This functionallity respects the double hash notation of auth0-deploy-cli, see the Double Hash section for more details.
{
"AUTH0_DOMAIN": "YOUR_DOMAIN.auth0.com",
"AUTH0_CLIENT_ID": "secretmanager:/##STAGE##/auth0Deploy:CLIENT_ID",
"AUTH0_CLIENT_SECRET": "secretmanager:/##STAGE##/auth0Deploy:CLIENT_ID",
"AUTH0_ALLOW_DELETE": true,
"AUTH0_KEYWORD_REPLACE_MAPPINGS": {
"ENVIRONMENT": "dev",
"STAGE": "##ENVIRONMENT##-PR102",
"APP1_SECRET": "secretmanager:/##STAGE##/app1:SUPER_SECRET",
"APP2_SECRET": "secretmanager:/##STAGE##/app2:SUPER_SECRET"
}
}
Use --help to get a complete list of commands.
FAQs
Reads the configuration file for auth0-deploy-cli and replaces values found in AWS Secret Manager.
We found that auth0-deploy-cli-config-values demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.