auth

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SPIFFE_PREFIX = "spiffe://"
	// IPV4_TUPLE_LENGTH is the fixed length of IPv4 source/destination address(4 bytes each) and port(2 bytes each)
	IPV4_TUPLE_LENGTH = int(unsafe.Sizeof(bpfSockTupleV4{}))
	// TUPLE_LEN is the fixed length of 4-tuple(source/dest IP/port) in a record from map of tuple
	TUPLE_LEN = int(unsafe.Sizeof(bpfSockTupleV6{}))
	// MSG_LEN is the fixed length of one record we retrieve from map of tuple
	MSG_LEN = TUPLE_LEN + int(unsafe.Sizeof(constants.MSG_TYPE_IPV4))
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

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

func (*Identity) String

func (id *Identity) String() string

type Rbac

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

func NewRbac

func NewRbac(workloadCache cache.WorkloadCache) *Rbac

func (*Rbac) GetAllPolicies added in v0.4.0

func (r *Rbac) GetAllPolicies() map[string]string

GetAllPolicies returns all policy names in the policy store

func (*Rbac) RemovePolicy

func (r *Rbac) RemovePolicy(policyKey string)

func (*Rbac) Run

func (r *Rbac) Run(ctx context.Context, mapOfTuple, mapOfAuth *ebpf.Map)

func (*Rbac) UpdatePolicy

func (r *Rbac) UpdatePolicy(auth *security.Authorization) error

Jump to

Keyboard shortcuts

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