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
### "Permission denied" on `gcloud run services logs read`
207
+
208
+
You need a GCP service account with read-only access. Run the bootstrap script from the `clawd` repo:
209
+
210
+
```bash
211
+
# From a machine with GCP admin access:
212
+
./scripts/gcp-setup.sh <gcp-project-id><bot-name>
213
+
```
214
+
215
+
This creates a `<bot-name>-readonly` service account with `roles/run.viewer` + `roles/logging.viewer`, stores the key in `pass`, and activates it. The key lives at `pass bot-<bot-name>/gcp/<project-id>/sa-key`.
216
+
217
+
If the key is in pass but not activated (e.g. after server rebuild):
218
+
219
+
```bash
220
+
# Re-activate from pass
221
+
TMPKEY=$(mktemp)&& pass show bot-<bot-name>/gcp/<project-id>/sa-key >"$TMPKEY" \
0 commit comments