r/KeeperSecurity • u/Keeper_Security Keeper Team • 27d ago
Product Updates JavaScript GCP KMS Storage 1.1.0
Version 1.1.0 of the JavaScript GCP KMS Storage package delivers package manager compatibility improvements, enhanced error handling and security hardening updates.
Updates:
- Package Manager Compatibility: The package now correctly loads under Yarn Plug'n'Play and pnpm (with hoist: false ) by eliminating direct imports of undeclared dependencies ( google-auth-library ).
- Config File Creation Security: createConfigFileIfMissing() now recreates the configuration file strictly on ENOENT errors rather than any fs.access failure, preventing unintended file overwrites.
- Strict Zero-Length Handling: loadConfig() and decryptConfig() now throw an error on zero-length config files instead of silently re-encrypting them as empty.
- KMS Failure Reporting: Failures during configuration auto-encryption now accurately report as KMS errors rather than incorrectly flagging the config file as damaged.
- Key Change Rollbacks: A failed changeKey() operation now correctly rolls back both the key type and encryption algorithm alongside the key configuration, preventing the file from becoming permanently undecryptable.
- Initialization Enforcement: All public methods (except init() ) now properly reject calls until the init() lifecycle method has successfully completed.
- Symlink Mitigation: The SDK now explicitly refuses symlinked configuration paths on both read and write operations, closing a path where a planted symlink could feed the SDK an attacker-chosen credential file.
For more details, review the release notes.
1
Upvotes