buildai-cli 0.3.44__tar.gz → 0.3.45__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/PKG-INFO +1 -1
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/auth_local.py +10 -15
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/ops_init.py +5 -3
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/pyproject.toml +1 -1
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/.gitignore +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/AGENTS.md +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/CLAUDE.md +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/buildai_bootstrap.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/__init__.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/_has_core.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/__init__.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/api_proxy.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/auth.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/db/__init__.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/db/common.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/db/migrate.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/db/query.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/db/schema.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/db/status.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/dev.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/commands/doctor.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/config.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/console.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/context.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/guard.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/internal_api.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/main.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/nl_query/__init__.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/nl_query/dataset_tools.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/output.py +0 -0
- {buildai_cli-0.3.44 → buildai_cli-0.3.45}/cli/pagination.py +0 -0
|
@@ -95,18 +95,12 @@ class ResolvedLocalAuthProfile:
|
|
|
95
95
|
f'export ALLOYDB_IAM_AUTH_{suffix}="true"',
|
|
96
96
|
]
|
|
97
97
|
)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
]
|
|
105
|
-
)
|
|
106
|
-
else:
|
|
107
|
-
exports.append(
|
|
108
|
-
f'export ALLOYDB_RUNTIME_IMPERSONATE_SA_{suffix}="{self.target_service_account}"'
|
|
109
|
-
)
|
|
98
|
+
exports.extend(
|
|
99
|
+
[
|
|
100
|
+
f'export ALLOYDB_RUNTIME_IMPERSONATE_SA_{suffix}="{self.target_service_account}"',
|
|
101
|
+
f'export ALLOYDB_USE_AUTH_PROXY_{suffix}="false"',
|
|
102
|
+
]
|
|
103
|
+
)
|
|
110
104
|
elif self.name == "db-admin-local" and self.target_db_user and self.target_service_account:
|
|
111
105
|
exports.extend(
|
|
112
106
|
[
|
|
@@ -200,10 +194,11 @@ def sanctioned_auth_profiles() -> tuple[LocalAuthProfile, ...]:
|
|
|
200
194
|
LocalAuthProfile(
|
|
201
195
|
name="engineers-dev",
|
|
202
196
|
audience="engineers",
|
|
203
|
-
summary="Use the engineer-facing read-only DB
|
|
197
|
+
summary="Use the engineer-facing read-only DB lane.",
|
|
204
198
|
purpose=(
|
|
205
|
-
"Use this for direct CLI database reads
|
|
206
|
-
"
|
|
199
|
+
"Use this for direct CLI database reads and schema inspection through the "
|
|
200
|
+
"engineer-facing service-account identity. Local API runtime parity should "
|
|
201
|
+
"use the service-runtime profiles instead."
|
|
207
202
|
),
|
|
208
203
|
),
|
|
209
204
|
LocalAuthProfile(
|
|
@@ -34,11 +34,12 @@ def _parse_env(value: str) -> str:
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
def _auth_env_prefix(settings_app_env: object) -> str:
|
|
37
|
-
|
|
37
|
+
normalized = str(getattr(settings_app_env, "value", settings_app_env)).strip().lower()
|
|
38
|
+
if normalized == "production":
|
|
38
39
|
return "PROD"
|
|
39
|
-
if
|
|
40
|
+
if normalized == "development":
|
|
40
41
|
return "DEV"
|
|
41
|
-
if
|
|
42
|
+
if normalized == "test":
|
|
42
43
|
return "DEV"
|
|
43
44
|
return "PREVIEW"
|
|
44
45
|
|
|
@@ -160,6 +161,7 @@ def init_ops_context(ctx: typer.Context):
|
|
|
160
161
|
os.environ[f"ALLOYDB_RUNTIME_IMPERSONATE_SA_{env_prefix}"] = (
|
|
161
162
|
"engineers-dev-sa@data-470400.iam.gserviceaccount.com"
|
|
162
163
|
)
|
|
164
|
+
os.environ[f"ALLOYDB_USE_AUTH_PROXY_{env_prefix}"] = "false"
|
|
163
165
|
auth_info.append("impersonate=engineers-dev-sa")
|
|
164
166
|
|
|
165
167
|
# Reload settings with overrides
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|