auth

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package auth provides resources related to the authentication.

Index

Constants

View Source
const (
	// AccessPolicyID is the ID of AccessPolicy resource.
	AccessPolicyID = "access-policy"

	// AccessPolicyType is the type of AccessPolicy resource.
	//
	// tsgen:AccessPolicyType
	AccessPolicyType = resource.Type("AccessPolicies.omni.sidero.dev")
)
View Source
const (
	// LabelPublicKeyUserID is the label that defines the user ID of the public key.
	LabelPublicKeyUserID = "user-id"

	// LabelIdentityUserID is a label linking identity to the user.
	// tsgen:LabelIdentityUserID
	LabelIdentityUserID = "user-id"

	// LabelIdentityTypeServiceAccount is set when the type of the identity is service account.
	// tsgen:LabelIdentityTypeServiceAccount
	LabelIdentityTypeServiceAccount = "type-service-account"
)
View Source
const (
	// LabelSAMLRole is the roles attribute that is copied from SAML assertion.
	LabelSAMLRole = SAMLLabelPrefix + "role"

	// LabelSAMLGroups is the groups attribute that is copied from SAML assertion.
	LabelSAMLGroups = SAMLLabelPrefix + "groups"
)
View Source
const (
	// AuthConfigType is the type of Config resource.
	//
	// tsgen:AuthConfigType
	AuthConfigType = resource.Type("AuthConfigs.omni.sidero.dev")
)
View Source
const (
	// ConfigID is the resource ID under which the authentication parameters for auth0 & webauthn will be written to COSI state.
	// tsgen:AuthConfigID
	ConfigID = "auth-config"
)
View Source
const (
	// IdentityType is the type of Identity resource.
	//
	// tsgen:IdentityType
	IdentityType = resource.Type("Identities.omni.sidero.dev")
)
View Source
const (
	// PublicKeyType is the type of PublicKey resource.
	//
	// tsgen:PublicKeyType
	PublicKeyType = resource.Type("PublicKeys.omni.sidero.dev")
)
View Source
const (
	// SAMLAssertionType is the type of SAMLAssertion resource.
	SAMLAssertionType = resource.Type("SAMLAssertions.omni.sidero.dev")
)
View Source
const (
	// SAMLLabelPrefix is the prefix added to all SAML attributes on the User resource.
	// tsgen:SAMLLabelPrefix
	SAMLLabelPrefix = "saml.omni.sidero.dev/"
)
View Source
const (
	// UserType is the type of User resource.
	//
	// tsgen:UserType
	UserType = resource.Type("Users.omni.sidero.dev")
)

Variables

This section is empty.

Functions

func Enabled added in v0.11.1

func Enabled(res *Config) bool

Enabled check is config settings has any auth enabled.

Types

type AccessPolicy added in v0.10.0

AccessPolicy resource describes a user ACL.

func NewAccessPolicy added in v0.10.0

func NewAccessPolicy() *AccessPolicy

NewAccessPolicy creates new AccessPolicy resource.

type AccessPolicyExtension added in v0.10.0

type AccessPolicyExtension struct{}

AccessPolicyExtension providers auxiliary methods for AccessPolicy resource.

func (AccessPolicyExtension) ResourceDefinition added in v0.10.0

func (AccessPolicyExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type AccessPolicySpec added in v0.10.0

AccessPolicySpec wraps specs.AccessPolicySpec.

type Config

Config resource describes a Talos installation media that can be generated by the imager. It also describes the necessary parameters to be passed to the imager.

Config resource ID is a human-readable string without white-space that uniquely identifies the installation media.

func NewAuthConfig

func NewAuthConfig() *Config

NewAuthConfig creates new Config state.

type ConfigExtension

type ConfigExtension struct{}

ConfigExtension providers auxiliary methods for Config resource.

func (ConfigExtension) ResourceDefinition

func (ConfigExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type ConfigSpec

ConfigSpec wraps specs.AuthConfigSpec.

type Identity

Identity resource describes a user identity.

func NewIdentity

func NewIdentity(ns, id string) *Identity

NewIdentity creates a new Identity resource.

type IdentityExtension

type IdentityExtension struct{}

IdentityExtension providers auxiliary methods for Identity resource.

func (IdentityExtension) ResourceDefinition

func (IdentityExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type IdentitySpec

IdentitySpec wraps specs.IdentitySpec.

type PublicKey

PublicKey resource describes a user public key.

func NewPublicKey

func NewPublicKey(ns, id string) *PublicKey

NewPublicKey creates a new PublicKey resource.

type PublicKeyExtension

type PublicKeyExtension struct{}

PublicKeyExtension providers auxiliary methods for PublicKey resource.

func (PublicKeyExtension) ResourceDefinition

func (PublicKeyExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type PublicKeySpec

PublicKeySpec wraps specs.PublicKeySpec.

type SAMLAssertion added in v0.11.1

SAMLAssertion resource describes SAML assertion.

func NewSAMLAssertion added in v0.11.1

func NewSAMLAssertion(ns, id string) *SAMLAssertion

NewSAMLAssertion creates a new SAMLAssertion resource.

type SAMLAssertionExtension added in v0.11.1

type SAMLAssertionExtension struct{}

SAMLAssertionExtension providers auxiliary methods for SAMLAssertion resource.

func (SAMLAssertionExtension) ResourceDefinition added in v0.11.1

func (SAMLAssertionExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type SAMLAssertionSpec added in v0.11.1

SAMLAssertionSpec wraps specs.SAMLAssertionSpec.

type User

User resource describes a user.

func NewUser

func NewUser(ns, id string) *User

NewUser creates a new User resource.

type UserExtension

type UserExtension struct{}

UserExtension providers auxiliary methods for User resource.

func (UserExtension) ResourceDefinition

func (UserExtension) ResourceDefinition() meta.ResourceDefinitionSpec

ResourceDefinition implements typed.Extension interface.

type UserSpec

UserSpec wraps specs.UserSpec.

Jump to

Keyboard shortcuts

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