Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthManager ¶
type AuthManager interface {
// Cluster authentication lifecycle
EnsureClusterAuth(ctx context.Context, cluster *clusterv1.Cluster) error
DeleteClusterAuth(ctx context.Context, cluster *clusterv1.Cluster) error
GetClusterPassword(ctx context.Context, cluster *clusterv1.Cluster) (string, error)
// Cleanup
DeleteGatewaySecrets(ctx context.Context) error
}
AuthManager manages authentication secrets for observability services
func NewAuthManager ¶
func NewAuthManager(client client.Client, config Config) AuthManager
NewAuthManager creates a new auth manager with config for managing htpasswd secrets
type Config ¶
type Config struct {
// Auth type (metrics, logs, traces)
AuthType AuthType
// Gateway secret configuration
GatewaySecrets GatewaySecretsConfig
}
type GatewaySecretsConfig ¶
type GatewaySecretsConfig struct {
// Namespace where gateway secrets are created
Namespace string
// Ingress secret name and data key (legacy)
IngressSecretName string
IngressDataKey string
// HTTPRoute secret name and data key (Gateway API)
HTTPRouteSecretName string
HTTPRouteDataKey string
}
GatewaySecretsConfig contains configuration for gateway authentication secrets
type PasswordGenerator ¶
type PasswordGenerator interface {
GeneratePassword(length int) (string, error)
GenerateHtpasswd(username, password string) (string, error)
}
PasswordGenerator generates passwords and htpasswd entries
func NewPasswordGenerator ¶
func NewPasswordGenerator() PasswordGenerator
NewPasswordGenerator creates a new password generator
Click to show internal directories.
Click to hide internal directories.