Documentation
¶
Index ¶
- Constants
- func GetOidcClient(conf *DexConfig, userVerifier oidc.UserVerifier, ...) (*oidc.ClientApp, func(writer http.ResponseWriter, request *http.Request), ...)
- func GetSettings(conf *DexConfig) (*oidc.Settings, error)
- type DexConfig
- type K8sClient
- func (impl *K8sClient) ConfigUpdateNotify() (chan bool, error)
- func (impl *K8sClient) GenerateDexConfigYAML(settings *DexConfig) ([]byte, error)
- func (impl *K8sClient) GetArgoConfig() (secret *v1.Secret, cm *v1.ConfigMap, err error)
- func (impl *K8sClient) GetRestClient() (*kubernetes.Clientset, error)
- func (impl *K8sClient) GetServerSettings() (*DexConfig, error)
- type LocalDevMode
- type RuntimeConfig
Constants ¶
View Source
const ( SettingAdminPasswordHashKey = "admin.password" // SettingAdminPasswordMtimeKey designates the key for a root password mtime inside a Kubernetes secret. SettingAdminPasswordMtimeKey = "admin.passwordMtime" SettingAdminEnabledKey = "admin.enabled" SettingAdminTokensKey = "admin.tokens" SettingServerSignatureKey = "server.secretkey" ArgoCDConfigMapName = "argocd-cm" ArgoCDSecretName = "argocd-secret" ArgocdNamespaceName = "devtroncd" CallbackEndpoint = "/auth/callback" DexCallbackEndpoint = "/api/dex/callback" InitialPasswordLength = 16 InitialPasswordSecretName = "devtron-secret" InitialPasswordSecretField = "ACD_PASSWORD" )
argocd specific conf
Variables ¶
This section is empty.
Functions ¶
func GetOidcClient ¶
func GetOidcClient(conf *DexConfig, userVerifier oidc.UserVerifier, RedirectUrlSanitiser oidc.RedirectUrlSanitiser) (*oidc.ClientApp, func(writer http.ResponseWriter, request *http.Request), error)
Types ¶
type DexConfig ¶
type DexConfig struct { DexHost string `env:"DEX_HOST" envDefault:"http://localhost"` DexPort string `env:"DEX_PORT" envDefault:"5556"` DexClientID string `env:"DEX_CLIENT_ID" envDefault:"argo-cd"` DexServerAddress string Url string DexClientSecret string ServerSecret string // Specifies token expiration duration UserSessionDurationSeconds int `env:"USER_SESSION_DURATION_SECONDS" envDefault:"86400"` AdminPasswordMtime time.Time `json:"ADMIN_PASSWORD_MTIME"` DexConfigRaw string }
func BuildDexConfig ¶
func (*DexConfig) DexOAuth2ClientSecret ¶ added in v0.4.21
func (*DexConfig) DexRedirectURL ¶ added in v0.4.21
func (*DexConfig) RedirectURL ¶ added in v0.4.21
type K8sClient ¶
type K8sClient struct {
// contains filtered or unexported fields
}
func NewK8sClient ¶
func NewK8sClient(runtimeConfig *RuntimeConfig) (*K8sClient, error)
func (*K8sClient) ConfigUpdateNotify ¶ added in v0.4.21
func (*K8sClient) GenerateDexConfigYAML ¶ added in v0.4.21
func (*K8sClient) GetArgoConfig ¶
func (*K8sClient) GetRestClient ¶ added in v0.4.21
func (impl *K8sClient) GetRestClient() (*kubernetes.Clientset, error)
func (*K8sClient) GetServerSettings ¶
type LocalDevMode ¶
type LocalDevMode bool
type RuntimeConfig ¶ added in v0.4.20
type RuntimeConfig struct {
LocalDevMode LocalDevMode `env:"RUNTIME_CONFIG_LOCAL_DEV" envDefault:"false"`
}
func GetRuntimeConfig ¶ added in v0.4.20
func GetRuntimeConfig() (*RuntimeConfig, error)
Click to show internal directories.
Click to hide internal directories.