Commit Graph

2 Commits

Author SHA1 Message Date
didericis-claude ec3791c6a8 fix(login): atomic credential write and respect server poll_interval
tracker-policy-pr / check-pr (pull_request) Successful in 13s
test / integration-docker (pull_request) Successful in 35s
test / stage-firecracker-inputs (pull_request) Successful in 2s
test / build-infra (pull_request) Successful in 3m31s
test / integration-firecracker (pull_request) Successful in 1m30s
test / coverage (pull_request) Failing after 1m41s
test / unit (pull_request) Failing after 12m52s
lint / lint (push) Failing after 12m57s
test / publish-infra (pull_request) Has been skipped
Write credentials via a 0600 temp file + os.replace() so the token file
never appears at its final path with world-readable permissions, even if
the process is interrupted between write and chmod.

Parse poll_interval from the authorization response (clamped to 1–60 s,
falling back to _POLL_SLEEP) so aggressive polling can't trigger console
rate limits.

Tests: add atomicity spy asserting the temp file is 0600 before replace;
patch time.sleep instead of _POLL_SLEEP; add explicit interval-passthrough
assertion.
2026-07-21 03:57:07 +00:00
didericis-claude 654fe13afc feat: add bb login command for console host registration
test / stage-firecracker-inputs (pull_request) Successful in 3s
test / integration-docker (pull_request) Successful in 13s
tracker-policy-pr / check-pr (pull_request) Successful in 11s
lint / lint (push) Failing after 49s
test / unit (pull_request) Successful in 1m39s
test / build-infra (pull_request) Successful in 3m45s
test / integration-firecracker (pull_request) Successful in 1m56s
test / coverage (pull_request) Failing after 1m55s
test / publish-infra (pull_request) Has been skipped
Starts a device-authorization flow against a bot-bottle console, polls
until the operator approves, then writes access + refresh tokens to
$BOT_BOTTLE_ROOT/console.json. Console URL is read from --console-url
flag or BB_CONSOLE_URL env var.

Part of didericis/bot-bottle-platform#1
2026-07-20 23:49:00 -04:00