feat(tools): read-only agent access to Grafana, k8s, GCP logs, Linear#4
Open
mo4islona wants to merge 1 commit into
Open
feat(tools): read-only agent access to Grafana, k8s, GCP logs, Linear#4mo4islona wants to merge 1 commit into
mo4islona wants to merge 1 commit into
Conversation
… logs, Linear Wire five infra systems into the sandbox tool surface. Two ride existing tools (grafana, linear); three are new read-only tools shipped in this fork and layered over upstream via overlays.sources. - overlay: add subsquid/centaur as a tool overlay source over paradigmxyz/centaur - grafana: allow the self-hosted host grafana.infra.gc.subsquid.io; inject GRAFANA_URL via sandbox.extraEnv (merged into SESSION_SANDBOX_EXTRA_ENV without dropping the overlay skill dirs) - k8s: new read-only tool for GKE main + sqd-compute-cluster (inject-mode Bearer per cluster, view-scoped RBAC, CA bundles shipped in-tool); RBAC manifest under contrib/k8s-readonly - gcp-logs: new read-only tool over Cloud Logging using iron-proxy's native gcp_auth transform (SA key -> access token, logging.viewer scope) - docs: contrib/ACCESS_SETUP.md — 1Password items, tokens, RBAC, GCP SA, rollout Secrets resolve from 1Password as op://<vault>/<NAME>/credential. No api-rs or console changes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Gives centaur agents read-only access to five infra systems from the sandbox tool surface. Two ride existing tools (
grafana,linear); three are new read-only tools shipped in this fork and layered over upstreamparadigmxyz/centaurviaoverlays.sources.grafana(existing)grafana.infra.gc.subsquid.io; injectGRAFANA_URLlinear(existing)LINEAR_API_KEY)k8s(new)viewRBAC, CA bundles shipped in-toolgcp-logs(new)gcp_authtransform (SA key → token,logging.viewer)Secrets resolve from 1Password as
op://<vault>/<NAME>/credential. Noapi-rsorconsolechanges.How it's wired
overlays.sources=[paradigmxyz/centaur, subsquid/centaur]— later source shadows upstream on name collision, so the new/overridden tools win.GRAFANA_URL,KUBE_*,GCP_LOGGING_PROJECT) goes throughsandbox.extraEnv, which the chart merges intoSESSION_SANDBOX_EXTRA_ENVwithout dropping the overlay skill dirs (verified viahelm template).view, and the GCP SA carries onlylogging.viewer, so read-only is enforced at the credential layer.Follow-up (manual, out of PR) — see
contrib/ACCESS_SETUP.mdLINEAR_API_KEY,GRAFANA_API_KEY,K8S_GKE_TOKEN,K8S_SQD_TOKEN,GCP_LOGGING_SA.kubectl apply contrib/k8s-readonly/readonly-sa.yamlin both clusters; GCP SA +logging.viewerkey.helm upgrade, then verify from an agent (call tools,call k8s pods gke centaur,call gcp-logs read …).Verify at deploy time (noted in the doc)
:6443— confirm the iron-proxy host rule matches host+port; adjust thehostsentry intools/infra/k8s/pyproject.tomlif a CONNECT is denied.🤖 Generated with Claude Code