authz

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTrustedDeviceRequired = &trace.AccessDeniedError{
	Message: "access to resource requires a trusted device",
}

ErrTrustedDeviceRequired is returned when access to a resource requires a trusted device.

Functions

func IsSSHDeviceVerified

func IsSSHDeviceVerified(cert *ssh.Certificate) bool

IsSSHDeviceVerified returns true if cert contains all required device extensions.

func IsTLSDeviceVerified

func IsTLSDeviceVerified(ext *tlsca.DeviceExtensions) bool

IsTLSDeviceVerified returns true if ext contains all required device extensions.

func VerifySSHUser

func VerifySSHUser(dt *types.DeviceTrust, cert *ssh.Certificate) error

VerifySSHUser verifies if the SSH certificate has the required extensions to fulfill the device trust configuration.

func VerifyTLSUser

func VerifyTLSUser(dt *types.DeviceTrust, identity tlsca.Identity) error

VerifyTLSUser verifies if the TLS identity has the required extensions to fulfill the device trust configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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