
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@harperdb/azure-secrets-to-environment
Advanced tools
This project accesses an Azure key vault and assigns the secrets to environment variables.
This project is a Protocol Extension that accesses an Azure key vault and assigns the keys to environment variables.
Install this package in your Harper application: npm install --save @harperdb/azure-secrets-to-environment
After installation, add the extension (@harperdb/azure-secrets-to-environment
) into your application's config.yaml
file.
This component must be listed above any components that will access the environment variables.
'@harperdb/azure-secrets-to-environment':
package: '@harperdb/azure-secrets-to-environment'
'@harperdb/http-router':
package: '@harperdb/http-router'
files: '*.*js' # to load the routes.js and config files
'@harperdb/nextjs':
package: '@harperdb/nextjs'
files: '/*'
There are 2 ways to provide this extension with the credentials needed to access your Azure vault, depending on the managedCredentials: boolean
configuration option:
managedCredentials: false (default)
)The following environment variables (i.e. through process.env
) must be accessible to your deployed component:
managedCredentials: true
)When you do not want to deploy your credentials with your component code, you can set managedCredentials
to true
, and the credentials (i.e. AZURE_TENANT_ID
, AZURE_CLIENT_ID
, and AZURE_CLIENT_SECRET
) will be securely pulled from within the deployed environment.
For this to work, your deployed component must have access to dotfile containing:
In order for your extension to access the dotfile, you must also set the files
property in your config.yaml
with the path to the dotfile
'@harperdb/azure-secrets-to-environment':
package: '@harperdb/azure-secrets-to-environment'
managedCredentials: true
files: '/path/to/.dotfile'
'@harperdb/http-router':
package: '@harperdb/http-router'
files: '*.*js' # to load the routes.js and config files
'@harperdb/nextjs':
package: '@harperdb/nextjs'
files: '/*'
To prevent the storage/exposure of credentials in your deployed component code, the credentials can be "managed" outside of the component scope. Currently, the host machine
of the harperdb container will inject an AZURE_VAULT_MAP
as environment variable which will allow remote deployments to require just the AZURE_VAULT_NAME
FAQs
This project accesses an Azure key vault and assigns the secrets to environment variables.
We found that @harperdb/azure-secrets-to-environment demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.