
Security News
Packagist Urges Immediate Composer Update After GitHub Actions Token Leak
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.
@keeper-security/secrets-manager-gcp
Advanced tools
Keeper Secrets Manager integrates with GCP KMS in order to provide protection for Keeper Secrets Manager configuration files. With this integration, you can protect connection details on your machine while taking advantage of Keeper's zero-knowledge encryption of all your secret credentials.
@google-cloud/kms is bundled — no separate install requiredThe Secrets Manager GCP KSM module can be installed using npm
npm install @keeper-security/secrets-manager-gcp
By default the @google-cloud/kms library will utilize the default connection session setup with the GCP CLI with the gcloud auth command. If you would like to specify the connection details, the two configuration files located at ~/.config/gcloud/configurations/config_default and ~/.config/gcloud/legacy_credentials/<user>/adc.json can be manually edited.
See the GCP documentation for more information on setting up a GCP session here
Alternatively, configuration variables can be provided explicitly as a service account file using the GcpSessionConfig data class and providing a path to the service account json file.
You will need a GCP service account to use the GCP KMS integration.
For more information on GCP service accounts see the GCP documentation
Now that the GCP connection has been configured, you need to tell the Secrets Manager SDK to utilize the KMS as storage.
To do this, use GCPKeyValueStorage as your Secrets Manager storage in the SecretsManager constructor.
The storage will require a GCP Key ID, as well as the name of the Secrets Manager configuration file which will be encrypted by GCP KMS. We need to make sure that key version is present in key ID provided.
import { getSecrets, initializeStorage } from '@keeper-security/secrets-manager-core';
import {GCPKeyValueStorage,GCPKeyConfig,GCPKSMClient,LoggerLogLevelOptions} from "@keeper-security/secrets-manager-gcp";
const getKeeperRecordsGCP = async () => {
// example key : projects/<project>/locations/<location>/keyRings/<key>/cryptoKeys/<key_name>/cryptoKeyVersions/<key_version>
const keyConfig = new GCPKeyConfig("<key_version_resource_url>");
const gcpSessionConfig = new GCPKSMClient().createClientFromCredentialsFile('<gcp_credentials_json_location>')
const configPath = "<path to client-config-gcp.json>"
const logLevel = LoggerLogLevelOptions.info;
// oneTimeToken is used only once to initialize the storage
// after the first run, subsequent calls will use the encrypted config file
const oneTimeToken = "<one time token>";
const storage = await new GCPKeyValueStorage(configPath, keyConfig, gcpSessionConfig, logLevel).init();
await initializeStorage(storage, oneTimeToken);
const {records} = await getSecrets({storage: storage});
const firstRecord = records[0];
const password = firstRecord.data.fields.find((x: { type: string; }) => x.type === 'password');
console.log(password.value[0]);
}
getKeeperRecordsGCP()
You can change the key used to encrypt and decrypt your configuration file by calling the changeKey method on the GCPKeyValueStorage instance.
const newKeyConfig = new GCPKeyConfig("<new_key_version_resource_url>");
const storage = await new GCPKeyValueStorage(configPath, keyConfig, gcpSessionConfig).init();
await storage.changeKey(newKeyConfig);
You can decrypt the configuration file to migrate to a different cloud provider or to retrieve your raw credentials. Pass true to save the decrypted configuration back to the file, or false to return the plaintext without modifying the file.
const storage = await new GCPKeyValueStorage(configPath, keyConfig, gcpSessionConfig).init();
// Returns plaintext only (file stays encrypted)
const plaintext = await storage.decryptConfig(false);
// OR: returns plaintext and saves config as plaintext
const saved = await storage.decryptConfig(true);
We support logging for the GCP KMS integration. Supported log levels are as follows
All these levels should be accessed from the LoggerLogLevelOptions enum. If no log level is set, the default log level is info. We can set the logging level to debug to get more information about the integration.
You're ready to use the KSM integration 👍 Using the GCP KMS Integration
Once setup, the Secrets Manager GCP KMS integration supports all Secrets Manager JavaScript SDK functionality. Your code will need to be able to access the GCP KMS APIs in order to manage the decryption of the configuration file when run.
FAQs
Keeper Secrets Manager GCP storage
The npm package @keeper-security/secrets-manager-gcp receives a total of 6 weekly downloads. As such, @keeper-security/secrets-manager-gcp popularity was classified as not popular.
We found that @keeper-security/secrets-manager-gcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.