Skip to content

Security operations

KBeacon uses read-only Kubernetes access and does not export Secret values. It still exposes Secret dependency metadata, which should be treated as sensitive operational data.

  • Keep the KBeacon Service internal.
  • Restrict access to the Agent API.
  • Restrict access to Prometheus, Mimir, and Grafana.
  • Use NetworkPolicy where possible.
  • Use namespace filters when full-cluster visibility is not required.
  • Keep image pull credentials scoped and rotated.
  • Prefer public GHCR packages when the project is intentionally public.
  • Prefer digest pinning for controlled production rollouts.

Private registry tokens

The official KBeacon GHCR image is public and does not require a Kubernetes image pull Secret. For private forks or private registries, use a narrowly scoped pull credential, do not reuse maintainer admin tokens for clusters, and rotate any token that has been pasted into a terminal transcript, issue, pull request, chat, or documentation.

Metadata sensitivity

Even without Secret values, the following can be sensitive:

  • Secret names;
  • namespaces;
  • workload names;
  • team ownership labels;
  • dependency edges;
  • impact scores.

Protect dashboards and metrics accordingly.

Low-privilege mode

By default, KBeacon can watch Secret metadata so it can resolve whether a referenced Secret exists and read safe metadata such as type and annotations. Kubernetes RBAC does not separate Secret metadata from Secret data, so this permission is sensitive even though KBeacon does not export Secret values.

Use low-privilege mode when Secret read access is not acceptable:

helm upgrade --install kbeacon ./charts/kbeacon \
  --namespace kbeacon-system \
  --create-namespace \
  --set cluster.name=prod-eu-1 \
  --set resourcesToWatch.core.secrets=false

In low-privilege mode, KBeacon discovers workload references but cannot confirm Secret existence. Treat exists=false and resolved=false as "missing or unobservable".

Metric label sensitivity

KBeacon does not export Secret values, but Secret names, workload names, namespaces, owner teams, and criticality labels can still be sensitive.

For stricter environments:

  • restrict access to Prometheus, Mimir, Grafana, and the Agent API;
  • keep the Agent Service internal;
  • disable detailed edge metrics with metrics.edge.enabled=false;
  • use low-privilege mode with resourcesToWatch.core.secrets=false when Secret object reads are not allowed.

Network exposure

KBeacon's API is read-only, but it still exposes Secret names, workload names, namespaces, ownership metadata, and dependency relationships. Treat it as internal platform metadata.

Keep the chart's default service.type=ClusterIP unless you have an explicit network exposure design. Prefer NetworkPolicy, private ingress, VPN, or port-forwarding for access.

Secret key redaction

KBeacon does not export Kubernetes Secret values, but Secret names, Secret key names, workload names, namespaces, and ownership metadata can still be sensitive.

The first redaction control is privacy.redaction.secretKeys.

When enabled, KBeacon redacts Secret key names in dependency source paths returned by the Agent API. For example, an inferred environment variable source path that would normally include payments-db#password is returned as payments-db#<redacted>.

This option does not redact Secret names or namespaces because KBeacon's primary purpose is to show workload-to-Secret relationships. Keep the Agent API, Prometheus, Grafana, and logs internal to trusted platform users.

Supply chain metadata

Release artifacts include checksums and SPDX JSON SBOM files. The release workflow creates GitHub artifact attestations for release artifacts and enables BuildKit provenance and SBOM metadata for pushed container images.

Treat SBOMs as public software supply chain metadata. They should not contain Kubernetes Secret values or cluster-specific Secret names.