auth

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RamRoleARNAuthType = "ram_role_arn"
	AKAuthType         = "access_key"
	EcsRamRoleAuthType = "ecs_ram_role"
	OidcAuthType       = "oidc_role_arn"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	ClientName              string
	RoleArn                 string
	OidcArn                 string
	AccessKey               string
	AccessSecretKey         string
	RoleSessionName         string
	RoleSessionExpiration   string
	RemoteRoleArn           string
	RemoteRoleSessionName   string
	RefreshPeriod           time.Duration
	TokenFilePath           string
	ServiceAccountName      string
	ServiceAccountNamespace string
	KubeClient              kubernetes.Interface
	TokenAudiences          []string
}

func (*AuthConfig) GetAuthCred

func (a *AuthConfig) GetAuthCred(region string, maxConcurrentCount int, m *backendp.Manager) (credential.Credential, error)

type TokenOIDCProvider

type TokenOIDCProvider struct {
	// contains filtered or unexported fields
}

TokenOIDCProvider implements OIDC provider based on dynamic token

func NewTokenOIDCProvider

func NewTokenOIDCProvider(stsEndpoint, sessionName, token, roleArn, oidcProviderArn string, refreshPeriod time.Duration) *TokenOIDCProvider

NewTokenOIDCProvider creates a new OIDC provider based on token

func (*TokenOIDCProvider) Credentials

Credentials implements the provider.CredentialsProvider interface

func (*TokenOIDCProvider) GetCredential

func (p *TokenOIDCProvider) GetCredential() (credential.Credential, error)

GetCredential gets credential from STS service using OIDC token

Jump to

Keyboard shortcuts

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