fix(picker): harden keyless provider gate logging and credentials path validation

This commit is contained in:
Josh Holt
2026-08-17 15:45:36 -04:00
committed by Teknium
parent b9f17ba3f1
commit 5f0a8f8739
3 changed files with 31 additions and 3 deletions
+1 -1
View File
@@ -246,6 +246,6 @@ def has_explicit_vertex_config() -> bool:
if _resolve_project_override():
return True
sa_path = _get_secret("VERTEX_CREDENTIALS_PATH")
if sa_path and os.path.exists(sa_path):
if sa_path and os.path.isfile(sa_path) and os.access(sa_path, os.R_OK):
return True
return False