Help us shape the future of Go! Take the 2026 Go Developer Survey

dashboard

package
v1.37.1-stratum.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Overview

Package dashboard serves the Stratum dashboard from the stratum binary: the embedded SPA, a reverse proxy to this cluster's own apiserver, and a session layer that authenticates users by ServiceAccount bearer-token passthrough.

Every user acts as themselves. A login hands the server a bearer token, which the apiserver itself validates (SelfSubjectReview); the token is then sealed into a session cookie and forwarded verbatim on every proxied request. The dashboard is never a shared privileged identity, holds no accounts of its own, and its own ServiceAccount needs no cluster permissions at all — so what a user can see and change is exactly their own RBAC.

It serves one cluster: the one it runs in.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

Command returns `stratum dash`.

It is registered by cmd/stratum/main.go rather than inside pkg/cli.NewRootCommand, and that is not a style choice: pkg/cli is the one package a downstream build is permitted to import, so registering dash there would compile the dashboard server, the proxy and the embedded SPA into every embedding binary, which must not carry them.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL