JavaScript GCP KMS Storage 1.1.0
Released on Oct 7, 2026
Breaking changes
Node.js 22 or later required:
@google-cloud/kms6.x requires it, andengines.nodenow declares>=22. Upgrade Node.js before you upgrade this package.The config directory must be writable: The atomic write creates a temp file next to the config file, so a config file inside a read-only directory now fails with
EACCES. Make the directory writable.A symlinked config path is no longer supported: Reads and writes both reject one with an error that names the path. Point
keyVaultConfigFileLocationorKSM_CONFIG_FILEat the real file.
Updates
KSM-1553: The package now loads under Yarn Plug'n'Play and pnpm with
hoist: false. It no longer imports the undeclaredgoogle-auth-librarydirectly.KSM-1524:
getToken()no longer resolves toundefinedon the Application Default Credentials path, which sentRAW_ENCRYPT_DECRYPTkeys down the wrong crypto path. A failed token request now rejects with an error that carries only the message.KSM-1370:
createConfigFileIfMissing()recreated the config file on anyfs.accessfailure. It now recreates only onENOENT; other failures propagate instead of overwriting the file.KSM-1450, KSM-1458, KSM-1508: Config writes are now atomic, so a crash mid-write can no longer leave a truncated config. A failed directory fsync no longer fails the write.
KSM-1455, KSM-1486:
loadConfig()anddecryptConfig()now throw on a zero-length config file instead of silently re-encrypting it as empty.KSM-1457: A blank
KSM_CONFIG_FILEenvironment variable orkeyVaultConfigFileLocationoption now falls back to the next config source, instead of resolving to the current working directory.KSM-1459, KSM-1507:
saveConfig()no longer skips recreating the config file when it was deleted mid-process. OnlyENOENTcounts as deleted; any other access failure now rejects the save.KSM-1460: A KMS failure during config auto-encryption now reports as a KMS error instead of a damaged config file.
KSM-1461: A failed
changeKey()now rolls back the key type and encryption algorithm along with the key config, instead of leaving the config permanently undecryptable.KSM-1516: Every public method except
init()now rejects untilinit()has completed.KSM-1515:
loadConfig()now rejects a parsed config that isn't an object of string values, before any write.KSM-1514: The SDK now refuses a symlinked config path on read and on write, closing a path where a planted symlink could feed the SDK an attacker-chosen credential file.
KSM-1533, KSM-1563: Raised the declared
axiosfloor to^1.20.0, resolving known advisories, including a high-severity one that covers every release through 1.19.0, on the bearer-token requests this package makes to GCP Cloud KMS.

