Documentation ¶
Index ¶
- type APIKey
- func (a *APIKey) AddK8sSecretBasedIdentity(ctx context.Context, new k8s.Secret)
- func (a *APIKey) Call(pipeline auth.AuthPipeline, _ context.Context) (interface{}, error)
- func (a *APIKey) GetK8sSecretLabelSelectors() k8s_labels.Selector
- func (a *APIKey) RevokeK8sSecretBasedIdentity(ctx context.Context, deleted k8s_types.NamespacedName)
- type HMAC
- type KubernetesAuth
- type MTLS
- func (m *MTLS) AddK8sSecretBasedIdentity(ctx context.Context, new k8s.Secret)
- func (m *MTLS) Call(pipeline auth.AuthPipeline, ctx context.Context) (interface{}, error)
- func (m *MTLS) GetK8sSecretLabelSelectors() k8s_labels.Selector
- func (m *MTLS) RevokeK8sSecretBasedIdentity(ctx context.Context, deleted k8s_types.NamespacedName)
- type Noop
- type OAuth2
- type OIDC
- type Plain
- func (p *Plain) BuildRequestWithCredentials(ctx context.Context, endpoint string, method string, credentialValue string, ...) (*http.Request, error)
- func (p *Plain) Call(pipeline auth.AuthPipeline, ctx context.Context) (interface{}, error)
- func (p *Plain) GetCredentialsFromReq(*envoy_auth.AttributeContext_HttpRequest) (string, error)
- func (p *Plain) GetCredentialsIn() string
- func (p *Plain) GetCredentialsKeySelector() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct { auth.AuthCredentials Name string `yaml:"name"` LabelSelectors k8s_labels.Selector `yaml:"labelSelectors"` Namespace string `yaml:"namespace"` // contains filtered or unexported fields }
func NewApiKeyIdentity ¶
func NewApiKeyIdentity(name string, labelSelectors k8s_labels.Selector, namespace string, authCred auth.AuthCredentials, k8sClient k8s_client.Reader, ctx context.Context) *APIKey
func (*APIKey) AddK8sSecretBasedIdentity ¶ added in v0.9.0
func (*APIKey) Call ¶
Call will evaluate the credentials within the request against the authorized ones
func (*APIKey) GetK8sSecretLabelSelectors ¶ added in v0.9.0
func (a *APIKey) GetK8sSecretLabelSelectors() k8s_labels.Selector
func (*APIKey) RevokeK8sSecretBasedIdentity ¶ added in v0.9.0
func (a *APIKey) RevokeK8sSecretBasedIdentity(ctx context.Context, deleted k8s_types.NamespacedName)
type HMAC ¶
type HMAC struct { auth.AuthCredentials Secret string `yaml:"secret"` }
type KubernetesAuth ¶
type KubernetesAuth struct { auth.AuthCredentials // contains filtered or unexported fields }
func NewKubernetesAuthIdentity ¶
func NewKubernetesAuthIdentity(authCred auth.AuthCredentials, audiences []string) (*KubernetesAuth, error)
func (*KubernetesAuth) Call ¶
func (kubeAuth *KubernetesAuth) Call(pipeline auth.AuthPipeline, ctx gocontext.Context) (interface{}, error)
type MTLS ¶
type MTLS struct { auth.AuthCredentials Name string LabelSelectors k8s_labels.Selector Namespace string // contains filtered or unexported fields }
func NewMTLSIdentity ¶ added in v0.9.0
func NewMTLSIdentity(name string, labelSelectors k8s_labels.Selector, namespace string, k8sClient k8s_client.Reader, ctx context.Context) *MTLS
func (*MTLS) AddK8sSecretBasedIdentity ¶ added in v0.9.0
func (*MTLS) GetK8sSecretLabelSelectors ¶ added in v0.9.0
func (m *MTLS) GetK8sSecretLabelSelectors() k8s_labels.Selector
func (*MTLS) RevokeK8sSecretBasedIdentity ¶ added in v0.9.0
func (m *MTLS) RevokeK8sSecretBasedIdentity(ctx context.Context, deleted k8s_types.NamespacedName)
type Noop ¶
type Noop struct {
auth.AuthCredentials
}
type OAuth2 ¶
type OAuth2 struct { auth.AuthCredentials TokenIntrospectionUrl string `yaml:"tokenIntrospectionUrl"` TokenTypeHint string `yaml:"tokenTypeHint,omitempty"` ClientID string `yaml:"clientId"` ClientSecret string `yaml:"clientSecret"` }
func NewOAuth2Identity ¶
type OIDC ¶
type OIDC struct { auth.AuthCredentials Endpoint string `yaml:"endpoint"` // contains filtered or unexported fields }
type Plain ¶ added in v0.9.0
type Plain struct { Value expressions.Value Pattern string }
func (*Plain) BuildRequestWithCredentials ¶ added in v0.9.0
func (*Plain) GetCredentialsFromReq ¶ added in v0.9.0
func (p *Plain) GetCredentialsFromReq(*envoy_auth.AttributeContext_HttpRequest) (string, error)
func (*Plain) GetCredentialsIn ¶ added in v0.9.0
func (*Plain) GetCredentialsKeySelector ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.