config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvServerBaseURL is the base URL for the API server (used for OAuth metadata)
	EnvServerBaseURL = "SERVER_BASE_URL"

	// EnvAuthServerBaseURL is the base URL for Asgardeo Thunder (authorization server)
	EnvAuthServerBaseURL = "AUTH_SERVER_BASE_URL"

	// EnvJWKSURL is the JWKS URL for JWT validation
	EnvJWKSURL = "JWKS_URL"

	// EnvJWTIssuer is the expected JWT issuer
	EnvJWTIssuer = "JWT_ISSUER"

	// EnvJWTAudience is the expected JWT audience (optional)
	EnvJWTAudience = "JWT_AUDIENCE"

	// EnvMCPToolsets is the comma-separated list of enabled MCP toolsets
	EnvMCPToolsets = "MCP_TOOLSETS"

	// EnvJWTDisabled is the flag to disable JWT authentication
	EnvJWTDisabled = "JWT_DISABLED"

	// EnvLogLevel is the log level for the API server (debug, info, warn, error)
	EnvLogLevel = "LOG_LEVEL"
)

Environment variable names for OpenChoreo API configuration

View Source
const (
	DefaultServerBaseURL  = "http://api.openchoreo.localhost"
	DefaultThunderBaseURL = "http://sts.openchoreo.localhost"
)

Default values for configuration

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzConfig added in v0.8.0

type AuthzConfig struct {
	UserTypes []authzcore.UserTypeConfig `yaml:"user_types"`
}

AuthzConfig represents the authorization configuration section

type Config added in v0.8.0

type Config struct {
	Authz AuthzConfig `yaml:"authz"`
}

Config represents the top-level configuration structure for openchoreo-api

func Load added in v0.8.0

func Load(filePath string) (*Config, error)

Load loads and validates the configuration from the specified file path

Jump to

Keyboard shortcuts

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