Description
When running bkt commands that require keyring access, the internal keyring timeout is too short (~10-15 seconds) for users to interactively enter their password when prompted.
Steps to Reproduce
- Have keyring configured but locked (requires password entry)
- Run any bkt command that requires authentication, e.g.:
bkt pr create --source feature-branch --target master --title "Test PR"
- Keyring prompt appears but times out before user can enter password
Error Message
Error: keyring operation timed out; keyring prompt may be blocked (headless/SSH environment?). Use --allow-insecure-store or set BKT_ALLOW_INSECURE_STORE=1
Expected Behavior
- Longer timeout (30-60 seconds) to allow interactive password entry
- Or: configurable timeout via flag/env var (e.g.,
BKT_KEYRING_TIMEOUT=60)
Environment
- macOS (Darwin 25.2.0)
- bkt installed via homebrew
- Keyring: macOS Keychain
Workaround
Currently users must either:
- Pre-unlock keychain:
security unlock-keychain ~/Library/Keychains/login.keychain-db
- Use
BKT_ALLOW_INSECURE_STORE=1 (not ideal for security)
Suggested Fix
Increase the default keyring timeout or make it configurable.
Description
When running
bktcommands that require keyring access, the internal keyring timeout is too short (~10-15 seconds) for users to interactively enter their password when prompted.Steps to Reproduce
bkt pr create --source feature-branch --target master --title "Test PR"Error Message
Expected Behavior
BKT_KEYRING_TIMEOUT=60)Environment
Workaround
Currently users must either:
security unlock-keychain ~/Library/Keychains/login.keychain-dbBKT_ALLOW_INSECURE_STORE=1(not ideal for security)Suggested Fix
Increase the default keyring timeout or make it configurable.