Repository navigation
Conversation
A sign-in that uses no configuration because gcloud's active one, from CLOUDSDK_ACTIVE_CONFIG_NAME or active_config, names none a file holds now says so in identity.warnings. An absent field and the first choice still sign in alike.
A 300-character active name is cut to 256 in the warning; select keeps the warning; and choosing no configuration while one is held warns of nothing.
odgrim
force-pushed
the
track-a/google-missing-active-config
branch
from
December 6, 2026 16:04
7d7574c to
18a505d
Compare
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
A gcloud sign-in that uses no configuration because gcloud's active configuration doesn't exist now warns:
With #106, a mistyped
CLOUDSDK_ACTIVE_CONFIG_NAME, or anactive_confignaming a configuration that's gone, signs in with the Application Default Credentials alone, matching the "No configuration" first choice. Before this change that happened silently.defaultgives no warning: nothing named a configuration.selectkeeps the warning: it changes only the project.Decisions
untouched_configurationreturnsUntouched { Held, Missing, Unset }, notOption<ConfigurationName>. The warning comes from the same function that picks the first choice, so the two can't disagree about which state is which.quoted, as other quoted values do:str::escape_debug, which also escapes', then the first 256 characters of that, then "…" if any are left, all inside double quotes.CandidateandSessioncarrywarning: Option<String>. Only gcloud sets it.Gaps
Session::identity, which builds warnings from the chosen project. Whichever lands second gathers both.gclouddetection source still treats a missing active configuration as not found, with no warning.active_configthat can't be read (over 64 KiB, a directory, unreadable) counts as no active configuration, as before: the sign-in usesdefaultand doesn't warn.CLOUDSDK_ACTIVE_CONFIG_NAMEoractive_config) nor what to do. Runbooks' fake and docs copy these words.Evidence
the_first_configuration_choice_is_what_an_untouched_field_uses, six gcloud states:active_config"gone", "dev\nfoo" and 300 "a", expects the warning, quoting"gone","dev\nfoo"and 256 "a" then "…";defaultgives no warning;selectkeeps the sign-in's warning;left: Null,right: Array [Object {"message": String("gcloud's active configuration \"gone\" doesn't exist, ...")}].152 passed, 1 failed):selectdropping the warning.mise run check:500 tests run: 500 passed, 0 skipped, lint clean, semverno publishable crates.git patch-id --stable(8f4382d247f4) and the same changed lines, now on main with Azure: refusals and names as main reads them, and a service principal's reach #109.