Skip to content

Keyring timeout too short for interactive password entry #45

@omriariav

Description

@omriariav

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

  1. Have keyring configured but locked (requires password entry)
  2. Run any bkt command that requires authentication, e.g.:
    bkt pr create --source feature-branch --target master --title "Test PR"
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions