cmd

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: BSD-3-Clause, AGPL-3.0 Imports: 26 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// ExitSetupFailed defines exit code
	ExitSetupFailed = 1
)

Variables

This section is empty.

Functions

func ApplyCommandLineOverrides added in v0.65.0

func ApplyCommandLineOverrides(cfg *nbconfig.Config)

ApplyCommandLineOverrides applies command-line flag overrides to the config

func ApplyDeviceAuthFlowConfig added in v0.65.0

func ApplyDeviceAuthFlowConfig(ctx context.Context, cfg *nbconfig.Config, oidcConfig *OIDCConfigResponse, oidcEndpoint string) error

ApplyDeviceAuthFlowConfig applies OIDC config to DeviceAuthorizationFlow if enabled

func ApplyEmbeddedIdPConfig added in v0.65.0

func ApplyEmbeddedIdPConfig(ctx context.Context, cfg *nbconfig.Config) error

ApplyEmbeddedIdPConfig populates HttpConfig and EmbeddedIdP storage from config when embedded IdP is enabled. This allows users to only specify EmbeddedIdP config without duplicating values in HttpConfig.

func ApplyOIDCConfig added in v0.65.0

func ApplyOIDCConfig(ctx context.Context, cfg *nbconfig.Config) error

ApplyOIDCConfig fetches and applies OIDC configuration if endpoint is specified

func ApplyPKCEFlowConfig added in v0.65.0

func ApplyPKCEFlowConfig(ctx context.Context, cfg *nbconfig.Config, oidcConfig *OIDCConfigResponse)

ApplyPKCEFlowConfig applies OIDC config to PKCEAuthorizationFlow if configured

func EnsureEncryptionKey added in v0.65.0

func EnsureEncryptionKey(ctx context.Context, configPath string, cfg *nbconfig.Config) error

EnsureEncryptionKey generates and saves a DataStoreEncryptionKey if not set

func Execute

func Execute() error

Execute executes the root command.

func LoadMgmtConfig added in v0.65.0

func LoadMgmtConfig(ctx context.Context, mgmtConfigPath string) (*nbconfig.Config, error)

func LogConfigInfo added in v0.65.0

func LogConfigInfo(cfg *nbconfig.Config)

LogConfigInfo logs informational messages about the loaded configuration

func SetNewServer added in v0.55.0

func SetNewServer(fn func(config *nbconfig.Config, dnsDomain, mgmtSingleAccModeDomain string, mgmtPort int, mgmtMetricsPort int, disableMetrics, disableGeoliteUpdate, userDeleteFromIDPEnabled bool) server.Server)

Types

type OIDCConfigResponse added in v0.8.10

type OIDCConfigResponse struct {
	Issuer                string `json:"issuer"`
	TokenEndpoint         string `json:"token_endpoint"`
	DeviceAuthEndpoint    string `json:"device_authorization_endpoint"`
	JwksURI               string `json:"jwks_uri"`
	AuthorizationEndpoint string `json:"authorization_endpoint"`
}

OIDCConfigResponse used for parsing OIDC config response

Directories

Path Synopsis
Package tokencmd provides reusable cobra commands for managing proxy access tokens.
Package tokencmd provides reusable cobra commands for managing proxy access tokens.

Jump to

Keyboard shortcuts

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