authz

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 18 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(gatewayClient *client.Client, cache, uncached kclient.Client, devMode bool, acrHelper *accesscontrolrule.Helper, skillHelper *skillaccessrule.Helper, registryNoAuth bool) *Authorizer

func (*Authorizer) Authorize

func (a *Authorizer) Authorize(req *http.Request, userInfo 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
	MCPServerCatalogEntryID 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
	SkillID             string
	DeviceScanID        string
	Authorizated        ResourcesAuthorized
}

type ResourcesAuthorized added in v0.7.0

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

type User added in v0.23.0

type User struct {
	kuser.Info

	IsAdmin        bool
	IsAuditor      bool
	IsOwner        bool
	CanImpersonate bool
}

Jump to

Keyboard shortcuts

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