
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@samhammer/vault-client-sag
Advanced tools
This library can be used if you want to load specific keys from vault, but works only for interal usage of Samhammer.
This library can be used if you want to load specific keys from vault, but works only for interal usage of Samhammer.
It uses specific authentication logic:
Sagctl has to be installed: https://samhammer.atlassian.net/wiki/spaces/K8S/pages/158793743/How+to+use+sagctl
Use following environment variables for configuration:
Sample with Javascript:
const { getVault } = require("vault-client");
const vaultMap = {
[`VaultKey--kv-v2/data/MySecret/Username`]: "UserName",
[`VaultKey--kv-v2/data/MySecret/Password`]: "Password",
};
getVault()
.then(vault => vault.loadSecretsToEnv(vaultMap));
.then(() => console.log(`Username: ${process.env.UserName} Password: ${process.env.Password}`);
Sample with Typescript:
import { getVault } from "vault-client";
const vaultMap = {
[`VaultKey--kv-v2/data/MySecret/Username`]: "UserName",
[`VaultKey--kv-v2/data/MySecret/Password`]: "Password"
};
const vault = await getVault();
await vault.loadSecretsToEnv(vaultMap);
console.log(`Username: ${process.env.UserName} Password: ${process.env.Password}`);
FAQs
This library can be used if you want to load specific keys from vault, but works only for interal usage of Samhammer.
The npm package @samhammer/vault-client-sag receives a total of 36 weekly downloads. As such, @samhammer/vault-client-sag popularity was classified as not popular.
We found that @samhammer/vault-client-sag demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.