Skip to content
krateo-platformopsPublic

About

Krateo PlatformOps snowplow — the portal content/composition API the frontend SPA calls for navmenus, routes, pages and panels. Packaged by krateo-snowplow-chart.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

snowplow

The content API of Krateo PlatformOps: it resolves RESTAction and frontend Widget custom resources into the JSON the Krateo portal renders, served over GET /call.

What is this

A content bridge, not a BFF: snowplow holds no product state — it composes portal content on demand from Kubernetes CRs (declarative REST-call chains, widget definitions), enforces the caller's own RBAC, and serves any client that presents a Krateo JWT. One monorepo, one version line: the app (go/snowplow/) and its Helm charts (helm/) ship together from a single tag. Full picture: docs/index.md.

Install

Normally installed by the Krateo installer, which pins the chart. Standalone:

# CRDs first (RESTAction + the authn ServiceAccount CRD the app chart hard-requires):
helm install snowplow-crds oci://ghcr.io/krateo-platformops/charts/snowplow-crds --version 1.9.0
helm install authn-crds oci://ghcr.io/krateo-platformops/charts/authn-crds

helm install snowplow oci://ghcr.io/krateo-platformops/charts/snowplow \
  --version 1.9.0 --namespace krateo-system

Details, dependencies and the Kind quickstart: docs/usage.md.

Supported configuration: Kubernetes RBAC must be the only authorizer that can deny. With the cache on (the default), snowplow decides what each user may see by evaluating Kubernetes RBAC in memory. It does not consult other authorizers in the apiserver chain. Authorizers that only grant extra access (for example Google IAM on GKE, which runs after RBAC) are supported; users then see at most what RBAC allows. An authorizer that can deny a request RBAC allows, placed before RBAC (for example a deny-capable webhook), is not supported with the cache on. snowplow would not apply that deny. Such clusters must run with env.CACHE_ENABLED: "false", where every access decision is checked by the apiserver for that user (a SelfSubjectAccessReview through the full authorizer chain). Details: docs/configuration.md.

Configure

See docs/configuration.md. Most used:

Setting Default Effect
env.CACHE_ENABLED "true" The single cache master gate; false = transparent direct-apiserver fallback (same data, slower).
env.GOMEMLIMIT unset (derived: 7/8 of the container memory limit) Go GC back-pressure ceiling. snowplow derives it from its cgroup memory limit; set it only to override, and then strictly below resources.limits.memory or Linux OOM-kills instead.
service.type / service.port LoadBalancer / 8081 One port serves content, probes and debug surfaces.

Examples

Docs

Internals (code-traced): go/snowplow/ARCHITECTURE.md and the deep dives it links.

Develop & release

cd go/snowplow && go test ./... (keep KUBECONFIG unset — see CONTRIBUTING); local cluster workflow via go/snowplow/scripts/. Tag X.Y.Z (no v) ships image + charts — release runbook: docs/release.md.

About

Krateo PlatformOps snowplow — the portal content/composition API the frontend SPA calls for navmenus, routes, pages and panels. Packaged by krateo-snowplow-chart.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages