omni/internal/backend/oidc/external/external.go
Artem Chernyshev ed946b30a6
feat: display OMNI_ENDPOINT in the service account creation UI
Fixes: https://github.com/siderolabs/omni/issues/858

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
2025-01-29 15:27:36 +03:00

28 lines
992 B
Go

// Copyright (c) 2025 Sidero Labs, Inc.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
// Package external provides constants which are consumed in other places.
package external
import "time"
// DefaultClientID is the client_id of the default (an only) client.
const DefaultClientID = "native"
// ScopeClusterPrefix defines the scope prefix to specify cluster name.
const ScopeClusterPrefix = "cluster:"
// OIDCTokenLifetime specifies the lifetime of the JWT token.
const OIDCTokenLifetime = 12 * time.Hour
// ServiceAccountTokenLifetime specifies the lifetime of the (kubeconfig) service account token.
const ServiceAccountTokenLifetime = 10 * 365 * 24 * time.Hour
// KeyRotationInterval specifies the interval in which the keys are rotated.
const KeyRotationInterval = 30 * 24 * time.Hour
// KeyCodeRedirectURL is the redirect URL for the keycode authentication method.
const KeyCodeRedirectURL = "urn:ietf:wg:oauth:2.0:oob"