gogcli/internal/secrets
zerone0x 3a6dae30d4
fix(secrets): recognize empty GOG_KEYRING_PASSWORD in non-TTY environments (#269)
* fix(secrets): recognize empty GOG_KEYRING_PASSWORD in non-TTY environments

Use os.LookupEnv to distinguish between "env var not set" and "env var
set to empty string". Previously fileKeyringPasswordFuncFrom checked
password != "", which caused an empty passphrase to fall through to the
TTY prompt path, failing in headless/CI environments.

Fixes #268

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(secrets): respect empty GOG_KEYRING_PASSWORD (#269) (thanks @zerone0x)

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-15 14:11:26 +01:00
..
keychain_darwin_test.go feat(secrets): add macOS keychain lock detection and unlock helpers 2026-01-03 06:52:36 +01:00
keychain_darwin.go feat(secrets): add macOS keychain lock detection and unlock helpers 2026-01-03 06:52:36 +01:00
keychain_other.go feat(secrets): add macOS keychain lock detection and unlock helpers 2026-01-03 06:52:36 +01:00
store_integration_test.go feat(auth): add multi-org login 2026-01-22 04:04:14 +00:00
store_more_test.go fix(secrets): recognize empty GOG_KEYRING_PASSWORD in non-TTY environments (#269) 2026-02-15 14:11:26 +01:00
store_test.go fix(keyring): persist OAuth tokens across Homebrew upgrades 2026-01-21 08:28:49 +00:00
store.go fix(secrets): recognize empty GOG_KEYRING_PASSWORD in non-TTY environments (#269) 2026-02-15 14:11:26 +01:00