authz

package
v0.22.0-alpha8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsGroup         = "metrics"
	UnauthenticatedGroup = "unauthenticated"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

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

func NewAuthorizer

func NewAuthorizer(cache, uncached kclient.Client, devMode bool, acrHelper *accesscontrolrule.Helper, registryNoAuth bool) *Authorizer

func (*Authorizer) Authorize

func (a *Authorizer) Authorize(req *http.Request, user user.Info) bool

type GetVar added in v0.7.0

type GetVar func(string) string

type Resources added in v0.7.0

type Resources struct {
	MCPServerID         string
	MCPServerInstanceID string
	// MCPID can be the ID of an MCPServer, an MCPServerInstance, or MCPServerCatalogEntry. It is used for interaction with the MCP gateway.
	MCPID               string
	WorkspaceID         string
	NanobotAgentID      string
	ProjectID           string
	PublishedArtifactID string
	ArtifactVersion     string
	Authorizated        ResourcesAuthorized
}

type ResourcesAuthorized added in v0.7.0

type ResourcesAuthorized struct {
	MCPServer          *v1.MCPServer
	MCPServerInstance  *v1.MCPServerInstance
	PowerUserWorkspace *v1.PowerUserWorkspace
	NanobotAgent       *v1.NanobotAgent
	Project            *v1.Project
	PublishedArtifact  *v1.PublishedArtifact
}

Jump to

Keyboard shortcuts

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