Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions scripts/server/first-boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,18 @@ import_external_keychain_credentials() {
show_log "⚠️ 1Password service account token not found in external keychain (optional)"
fi

# Configure login keychain for headless operation
# Mac Mini dev servers don't have GUI auto-login (iCloud + TouchID accounts
# can't use it), so the keychain starts locked on reboot. Disable the idle
# timeout so once unlocked (manually or via console login), it stays unlocked
# until sleep. This is what lets claude-wrapper read OP_SERVICE_ACCOUNT_TOKEN
# from the Keychain without re-prompting.
if security set-keychain-settings -l -u "${HOME}/Library/Keychains/login.keychain-db"; then
show_log "✅ Login keychain configured: lock-on-sleep, no idle timeout"
else
collect_warning "Failed to configure login keychain lock behavior — may re-lock after idle"
fi

return 0
}

Expand Down
Loading