config

package
v0.9.23 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FGA struct {
		Target string `mapstructure:"fga-target"`
	} `mapstructure:",squash"`
	KCP struct {
		Kubeconfig string `mapstructure:"kcp-kubeconfig" default:"/api-kubeconfig/kubeconfig"`
	} `mapstructure:",squash"`
	APIExportEndpointSliceName    string `mapstructure:"api-export-endpoint-slice-name"`
	CoreModulePath                string `mapstructure:"core-module-path"`
	WorkspaceDir                  string `mapstructure:"workspace-dir" default:"/operator/"`
	BaseDomain                    string `mapstructure:"base-domain" default:"portal.dev.local:8443"`
	GroupClaim                    string `mapstructure:"group-claim" default:"groups"`
	UserClaim                     string `mapstructure:"user-claim" default:"email"`
	InitializerName               string `mapstructure:"initializer-name" default:"root:security"`
	DomainCALookup                bool   `mapstructure:"domain-ca-lookup" default:"false"`
	SecretWaitingTimeoutInSeconds int    `mapstructure:"secret-waiting-timeout-seconds" default:"60"`
	IDP                           struct {
		// SMTP settings
		SMTPServer  string `mapstructure:"idp-smtp-server"`
		SMTPPort    int    `mapstructure:"idp-smtp-port"`
		FromAddress string `mapstructure:"idp-from-address"`

		// SSL settings
		SSL      bool `mapstructure:"idp-smtp-ssl" default:"false"`
		StartTLS bool `mapstructure:"idp-smtp-starttls" default:"false"`

		// Auth settings
		SMTPUser               string `mapstructure:"idp-smtp-user"`
		SMTPPasswordSecretName string `mapstructure:"idp-smtp-password-secret-name"`
		SMTPPasswordSecretKey  string `mapstructure:"idp-smtp-password-secret-key" default:"password"`

		AdditionalRedirectURLs []string `mapstructure:"idp-additional-redirect-urls"`
	} `mapstructure:",squash"`
	Invite InviteConfig `mapstructure:",squash"`
}

Config struct to hold the app config

type InviteConfig added in v0.7.1

type InviteConfig struct {
	KeycloakBaseURL      string `mapstructure:"invite-keycloak-base-url"`
	KeycloakClientID     string `mapstructure:"invite-keycloak-client-id" default:"security-operator"`
	KeycloakClientSecret string `mapstructure:"invite-keycloak-client-secret"`
}

Jump to

Keyboard shortcuts

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