mirror of
https://github.com/siderolabs/omni.git
synced 2025-08-09 19:16:59 +02:00
Fixes: https://github.com/siderolabs/omni/issues/858 Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
28 lines
992 B
Go
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"
|