Repository navigation
Azure: identity expiry, a failed refresh, toolMissing from the cli source, and resume directories - #112
Open
odgrim wants to merge 4 commits into
Open
Azure: identity expiry, a failed refresh, toolMissing from the cli source, and resume directories#112odgrim wants to merge 4 commits into
odgrim wants to merge 4 commits into
Conversation
odgrim
force-pushed
the
track-a/azure-detect-gaps
branch
from
December 6, 2026 07:03
e0812ed to
0b27f6c
Compare
odgrim
force-pushed
the
track-a/azure-detect-gaps
branch
from
December 6, 2026 07:48
0b27f6c to
261736a
Compare
identity.expiresAt is the access token's expiry, as env's expiresAt is, for a service principal signed in with a federated token. Every other sign-in az renews itself, so it has none.
A copy of the person's az login is listed with --refresh, to see subscriptions created since they signed in. When that fails, detect logs why and lists the subscriptions az already holds, as Runbooks main did, where it failed the whole detect before.
A person's own az login found with no az to run is toolMissing, as a values source's already was. No test reached the cli source without az.
A resume copied the block's az directory into a new one and left the old one, with its tokens, until signOut: one more per restart. The block's own sign-in directory is now used where it is. Its path stays the one Runbooks saved, so a resume that ends short of Ready, or a restart before Runbooks saves again, still finds the login. Any other directory is still copied.
odgrim
force-pushed
the
track-a/azure-detect-gaps
branch
from
December 6, 2026 16:03
a1eebc2 to
2fc7a1d
Compare
odgrim
marked this pull request as ready for review
December 6, 2026 16:14
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Four Azure gaps before the cutover release.
identity.expiresAtis the access token's expiry, asenv'sexpiresAtalready is, for a service principal signed in with a federated token. Before, Runbooks had no expiry until the firstenv. Every other sign-in az renews itself, so it has none.detectgoes on whenaz account list --refreshfails. A copy of the person's az login is listed with--refresh, to see subscriptions created since they signed in. When that fails,detectlogs why and lists the subscriptions az already holds, where before the wholedetectfailed. Runbooks main did the same.clisource with no az answerstoolMissing: a test only. It already did.Decisions
electron/main/ipc/azure-signin.ts:383-397). A warning would need a second warning slot beside the home-tenant one. A refresh that times out adds a secondazcall, up to 60 s.toolMissingneeds no code change. Theclisource'sunusable_is_nonepassestoolMissingthrough, sodetectanswers it.installkeeps a directory the new session uses. Runbooks closes the old provider before a resume, so this needs a seconddetectin one process. The protocol allows that.Gaps
holds_logindecides by path (the state directory'saz-child with a profile file), so a symlink namedaz-<n>there counts as held and az runs through it. Removal removes only the link. Writing one needs write access to the 0700 state directory.Evidence
env_renews_a_federated_token_file_or_request_within_the_refresh_window, which now checks the detected identity'sexpiresAt:left: None right: Some(2024-10-04 0:05:01.0 +00:00:00).detect_goes_on_with_the_saved_subscriptions_when_a_refresh_fails:detect failed: ... "kind":"network" ... "az account list --all --refresh failed: Max retries exceeded.".ToolMissingto theclisource's unusable kinds fails only the new case (182 passed, 1 failed), inwith_no_az_on_path_detecting_a_credential_is_tool_missing.a_new_process_takes_back_the_blocks_own_loginnow counts sign-in directories after a resume. Before the fix:left: 2 right: 1.installdeleting the directory it installs:a_new_process_takes_back_the_blocks_own_login(183 passed, 1 failed);a_resume_that_fails_leaves_the_login_for_the_next(184 passed, 1 failed).mise run checkat 261736a:507 tests run: 507 passed, 0 skipped, lint clean, semverno publishable crates.Audit dependenciesis red, as on main, until the pin-project-lite 0.2.19 lock update.git patch-id --stable(09bbd55a5e37) and the same changed lines, tree unchanged.