package abac

import "k8s.io/kubernetes/pkg/auth/authorizer/abac"

Package abac authorizes Kubernetes API actions using an Attribute-based access control scheme.

Index

Types

type PolicyList

type PolicyList []*abac.Policy

PolicyList is simply a slice of Policy structs.

func NewFromFile

func NewFromFile(path string) (PolicyList, error)

NewFromFile attempts to create a policy list from the given file.

TODO: Have policies be created via an API call and stored in REST storage.

func (PolicyList) Authorize

Authorize implements authorizer.Authorize

func (PolicyList) RulesFor

RulesFor returns rules for the given user and namespace.

Source Files

abac.go

Version
v1.33.1 (latest)
Published
May 15, 2025
Platform
linux/amd64
Imports
12 packages
Last checked
23 hours ago

Tools for package owners.