Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Inject values into your structured text doc from remote or CLI sources.
Inject values into your structured text doc.
Below is a list of prefixes you can use to indicate the location of the value to be looked up. WHen any of these value syntaxes are found as a value, then it will replace the entirety of the value when its located and if not located, it will be removed from the document.
cli:NAME_TO_LOOKUP
Will look for a command line argument passed in with the name specified. a0deploy-variables --config ./file.yaml --output ./file.dev.yaml --NAME_TO_LOOKUP HELLO
aws-secretmanager:/path/to/secret:VALUE_IN_SECRETS
This will lookup a secret bundle called /path/to/secret
and within that bundle, it will look for a value called VALUE_IN_SECRETS
. Currently this value must be a string.aws-parameterstore:/path/to/parameter
This will lookup a parameters called /path/to/parameter
in AWS Parameter Storer. Currently this value must be a string.Its possible to format your value as a list of string values separated by a comma. If so, you can end your varaiable pattern with an @ symbol to tell configur8 to insert a list of string's instead of a single string value.
In all cases where parenthesis are omitted, the value foudn will replace the value the value lookup is within. If you specify braces around the value lookup pattern, then only that section is replaced.
For example (cli:FOO_TOO) Or Some Other Default
, where FOO_TOO = Genius will resolve to Genius Or Some Other Default
. Can be useful when needing a reference, within another lookup pattern, or where values simply need to be augmented not replaced.
npm i -g structured-doc-vars aws-sdk
doc-vars --help
AWS_DEFAULT_REGION
.AWS_SECRET_ACCESS_KEY
.AWS_ACCESS_KEY_ID
.AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
.http.Agent({rejectUnauthorized:false})
You need to ensure that the account you are executing this script with has the appropriate AWS Permissions. Below is an example YAML format on a permission granting access to describe and get secret values from a secret bundle in AWS Secrets Manager.
- Effect: "Allow"
Action:
- "secretsmanager:DescribeSecret"
- "secretsmanager:GetSecretValue"
Resource:
- arn:aws:secretsmanager:{AWS::Region}:{AWS::AccountId}:secret:/path/to/secret*
TODO
FAQs
Inject values into your structured text doc from remote or CLI sources.
The npm package configur8 receives a total of 40 weekly downloads. As such, configur8 popularity was classified as not popular.
We found that configur8 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.