Repository navigation
Closed
Labels
epic:surfacesEpic: behold as an infrastructure viewer inside other tools (INTENTIUS/behold#1049)wave:4Wave 4 of an epic's rollout: can start once earlier waves land
Description
kubectl behold and k9s need behold to draw a cluster from a kubeconfig context with no chant project. Most of the read exists: the lister built for #1029 now lives in chant (INTENTIUS/chant#4532), and behold index kubernetes (#1026) types its output and derives edges. What is missing is drawing that read as behold's graph, and two gaps in the lister's output. This issue builds on it and writes no second reader. Part of #1049, phase 4.
Today
- chant's
packages/core/src/cloud-lister/kubernetes.tsruns API discovery, then a paged LIST per served kind.kubeTargetFromKubeconfigaccepts a token, a token file or a client certificate, and refuses a user withexecorauth-provider. indexCloud(packages/core/src/lifecycle/cloud-index.ts) returns the document as aGraphIRin a stamped envelope, typed by the k8s lexicon, with derived edges. A store of kindnonekeeps nothing.- In behold, index versions reach the graph pane only (
src/graph-db/sources.ts,src/graph-db/pane.ts), never the drawn graph. - From reading the code, not run: the key pattern
/secret/i(packages/core/src/sensitive-key.ts) masksspec.secretStoreRefwhole, and a Secret'sdatais masked, which hides an Argo CD cluster Secret'snameandserver. - behold index <substrate>: fill an index from a cloud with no project, read-only #1026 and index: a read-only cloud lister over each cloud's inventory API, for behold index #1029 are open; their code is merged.
Change
readCluster({ kubeconfig, context, namespaces, types })callsindexCloudwith thenonestore and passes the result throughreadGraph(Move the graph pipeline out of server.ts into a library with no Hono and no global state #1057):addK8sDeclaredEdges, namespace boxes, and the placeholder cards once that issue has applied.behold serveandbehold graphtake a context. The action routes stay unreachable, as in behold index <substrate>: fill an index from a cloud with no project, read-only #1026.- Exec plugin contexts need a ruling. Kubeconfigs written by the GKE and EKS CLIs usually use one (unchecked). Either behold runs the plugin and hands chant a token, or the first version takes static credentials only (k3d, kind) and the refusal says so.
- Live Kubernetes read masks reference fields that graph joins need (secretStoreRef, cluster Secret name) chant#5116 covers the masked reference fields.
Done when
- On a scratch k3d cluster the test creates and deletes (never a shared or real cloud cluster) holding a Deployment, Service and ServiceAccount,
behold graphon its context prints all three and the Service-to-Deployment edge. - The index store directory is unchanged after the run.
- A fixture kubeconfig with an
execuser gives a refusal naming the context, and nothing is listed. - An ExternalSecret on that cluster keeps a readable
spec.secretStoreRef.name, shown red first.
Depends on
#1057. INTENTIUS/chant#5116 for the masked reference fields.
Metadata
Metadata
Assignees
Labels
epic:surfacesEpic: behold as an infrastructure viewer inside other tools (INTENTIUS/behold#1049)wave:4Wave 4 of an epic's rollout: can start once earlier waves land
Activity
lex00 commentedon Nov 15, 2026
Built on
estate/1083-kubeconfig-bare-cluster, going into the next behold batch.behold graph --context <ctx> [--kubeconfig] [--namespace] [--types]draws a cluster through chant's read-only lister, with nothing written to any index store.Waiting on the maintainer: exec-plugin kubeconfigs. Right now they are refused by default, and
--allow-exec-plugin(allowExecPlugin) lets them run. The options:gke-gcloud-auth-plugin,aws,kubelogin): safer than allowing everything. It needs upkeep, and it still runs whatever binary of that name is first onPATH.auth-providerusers are always refused, since kubectl dropped them.The output is correct whichever way INTENTIUS/chant#5116 rules on the Argo CD cluster Secret:
configand tokens never appear. The ExternalSecret store cards draw once a chant release carrying #5116 is pinned. Until then they get amaskednote.One finding. chant's
indexCloudwrites masked values as[REDACTED], but the lister writes<masked>.web/outside-refs.jsknows only<masked>, so this read normalises[REDACTED]to<masked>for now. A single marker in chant would be better.feat: estate-read batch 4, bare cluster read, Argo CD extension, GitL…
lex00 commentedon Nov 15, 2026
Ruling (maintainer, 2026-11-15): keep exec-plugin kubeconfigs refused by default, with
--allow-exec-plugin(allowExecPlugin) to opt in. behold does not run a command a kubeconfig names unless the person running it says so.kubectl behold(#1086) prints how to allow it. No change to what was built.