You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| dev |`taskcluster-dev`|`taskcluster-dev`|— | — (ADC)|
130
130
131
-
Note: community-tc and fx-ci share the same GCP project and key file but have different cluster names. The `tc-logview` config handles this automatically — use `-e fx-ci` or `-e community-tc`.
131
+
Note: community-tc and fx-ci share the same GCP project **and** cluster (`webservices-high-prod`); they differ only by `namespace`. The `tc-logview` config handles this — use `-e fx-ci` or `-e community-tc`. Each also has a `-scoped` variant (`fx-ci-scoped`, `community-tc-scoped`, `staging-scoped`) that reads a per-namespace tenant log view via the `tc-logview-reader` service account; use those with token-based auth (see §11).
132
132
133
133
## 4. Environment Resolution
134
134
@@ -139,8 +139,8 @@ Determine the environment from context using this priority:
4.**workerPoolId prefix**: pool IDs like `proj-*` are typically community-tc; `gecko-*`/`mobile-*` are fx-ci
145
145
5.**If ambiguous**: Ask the user which environment
146
146
@@ -332,56 +332,30 @@ Map the user's problem to the right playbook, then read and follow it. Each play
332
332
333
333
## 11. Auth Setup
334
334
335
-
When key files are missing, guide the user through setup. Keys go in `~/.config/tc-logview/keys/` (update `key_path` in `~/.config/tc-logview/config.yaml` to match).
335
+
`tc-logview` accepts credentials three ways, in priority order: `TC_LOGVIEW_ACCESS_TOKEN` (a pre-issued bearer token) > `key_path` (service account JSON key) > ADC. Run `tc-logview auth` to print the exact command for an environment.
336
336
337
-
### For `moz-fx-taskcluster-prod-4b87` (community-tc, fx-ci):
338
-
```bash
339
-
mkdir -p ~/.config/tc-logview/keys
337
+
### Preferred: impersonated short-lived token (recommended for agents/containers)
340
338
341
-
# Create service account (one-time)
342
-
gcloud iam service-accounts create tc-log-reader \
343
-
--project=moz-fx-taskcluster-prod-4b87 \
344
-
--display-name="TC Log Reader"
339
+
A low-privilege reader service account already exists — `tc-logview-reader@moz-fx-taskcluster-prod.iam.gserviceaccount.com` — granted `roles/logging.viewAccessor` on the per-namespace tenant log views. Members of `workgroup:taskcluster/admins` may impersonate it. Mint a ~1h token on the host and pass only that token in; `tc-logview` never mints or refreshes tokens itself:
### For `moz-fx-taskclust-nonprod-9302` (staging):
357
-
```bash
358
-
gcloud iam service-accounts create tc-log-reader \
359
-
--project=moz-fx-taskclust-nonprod-9302 \
360
-
--display-name="TC Log Reader"
348
+
Use the `-scoped` environments (`fx-ci-scoped`, `community-tc-scoped`, `staging-scoped`) with this token — the reader SA can read only those tenant log views. `TC_LOGVIEW_ACCESS_TOKEN` overrides whatever `config.yaml` says.
0 commit comments