From 8d66f4c7ed4cf054b88b8eceeaa0d775592cf3f4 Mon Sep 17 00:00:00 2001 From: googleworkspace-bot Date: Wed, 4 Mar 2026 07:20:06 +0000 Subject: [PATCH] chore: release versions --- .changeset/31852fab9121.md | 18 ------------------ CHANGELOG.md | 20 ++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- package.json | 2 +- 5 files changed, 23 insertions(+), 21 deletions(-) delete mode 100644 .changeset/31852fab9121.md diff --git a/.changeset/31852fab9121.md b/.changeset/31852fab9121.md deleted file mode 100644 index 001607e3..00000000 --- a/.changeset/31852fab9121.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"@googleworkspace/cli": patch ---- - -fix(auth): stabilize encrypted credential key fallback across sessions - -When the OS keyring returned `NoEntry`, the previous code could generate -a fresh random key on each process invocation instead of reusing one. -This caused `credentials.enc` written by `gws auth login` to be -unreadable by subsequent commands. - -Changes: -- Always prefer an existing `.encryption_key` file before generating a new key -- When generating a new key, persist it to `.encryption_key` as a stable fallback -- Best-effort write new keys into the keyring as well -- Fix `OnceLock` race: return the already-cached key if `set` loses a race - -Fixes #27 diff --git a/CHANGELOG.md b/CHANGELOG.md index dc40f6f5..6e7a36c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # @googleworkspace/cli +## 0.2.1 + +### Patch Changes + +- 6ae7427: fix(auth): stabilize encrypted credential key fallback across sessions + + When the OS keyring returned `NoEntry`, the previous code could generate + a fresh random key on each process invocation instead of reusing one. + This caused `credentials.enc` written by `gws auth login` to be + unreadable by subsequent commands. + + Changes: + + - Always prefer an existing `.encryption_key` file before generating a new key + - When generating a new key, persist it to `.encryption_key` as a stable fallback + - Best-effort write new keys into the keyring as well + - Fix `OnceLock` race: return the already-cached key if `set` loses a race + + Fixes #27 + ## 0.2.0 ### Minor Changes diff --git a/Cargo.lock b/Cargo.lock index fcb3f5d3..f55108b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -845,7 +845,7 @@ dependencies = [ [[package]] name = "gws" -version = "0.2.0" +version = "0.2.1" dependencies = [ "aes-gcm", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 459bd8b7..b758e644 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ [package] name = "gws" -version = "0.2.0" +version = "0.2.1" edition = "2021" description = "Google Workspace CLI — dynamic command surface from Discovery Service" license = "Apache-2.0" diff --git a/package.json b/package.json index 31a950f5..264719b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@googleworkspace/cli", - "version": "0.2.0", + "version": "0.2.1", "private": true, "description": "Google Workspace CLI — dynamic command surface from Discovery Service", "license": "Apache-2.0",