Skip to content

Placeholder cards from live objects for what they name outside the cluster #1082

Closed

Description

@lex00

Live Kubernetes objects already name what they depend on outside the cluster: a ServiceAccount's annotation names a cloud identity, an ExternalSecret names a store, and an Argo CD Application names a repo and path. A pure function that turns those fields into labelled placeholder cards lets a cluster surface show this with no configuration and no Terraform read. Part of #1049, phase 4.

Today

Change

  • A module in web/ with no Node imports: outsideRefs(objects) takes Kubernetes objects and returns { cards, edges, notes }. Each card has a stable id from what it names and placeholder: true.
  • Rules, each with a fixture:
    • ServiceAccount annotations iam.gke.io/gcp-service-account, eks.amazonaws.com/role-arn and azure.workload.identity/client-id, to a cloud identity card.
    • ExternalSecret spec.secretStoreRef to its store, and a store's spec.provider (GCP Secret Manager, AWS Secrets Manager, Vault) to a provider card carrying the remoteRef.key values.
    • Argo CD Application spec.source and spec.sources[] (repoURL, path, chart), and Flux Kustomization spec.sourceRef and spec.path, to a source card.
  • Read the same field paths as Catalog rules: ExternalSecret to its store and to the cloud secret chant#5098 and Catalog rules: Workload Identity and IRSA annotations to the cloud identity chant#5099, so a placeholder and a derived edge never disagree. When the graph already holds the target, return no card for it.
  • A field the rules do not understand goes in notes. It is never dropped silently.

Done when

  • A ServiceAccount annotated arn:aws:iam::111122223333:role/ci-runner gives one card labelled with that role and an edge from the ServiceAccount.
  • An ExternalSecret using ClusterSecretStore gcp with projectID: demo-proj gives a store card and a provider card naming demo-proj and the key.
  • Two ServiceAccounts with the same annotation share one card.
  • Given a graph that already holds the aws_iam_role, the function returns no card for it.

Depends on

Nothing.

Not in this issue

Crossplane, ACK and Config Connector external names, which come next. Replacing a placeholder with the real Terraform resource from a published export, which needs the phase 2 graph document.

Activity

  1. added
    epic:surfaces
    wave:4
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:surfaceswave:4

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions