authorizer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package authorizer gates access to the ephemeral virtual workspace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New builds the authorizer guarding the ephemeral virtual workspace.

Types

type ExportChecker

type ExportChecker interface {
	HasEntriesFor(export *apisv1alpha2.APIExport) bool
}

ExportChecker reports whether this virtual workspace serves anything for an APIExport.

type Options

type Options struct {
	// RequireExportContent makes the authorizer additionally verify that the
	// requesting identity holds the `create` verb on the APIExport's
	// `content` subresource in the export's own workspace, as the replication
	// virtual workspace does.
	//
	// Whether this is correct depends on how the shard authenticates when it
	// proxies a consumer's request: with a shard client certificate the
	// identity the virtual workspace sees is the shard, not the end user.
	// Verify against a real deployment before relying on it.
	RequireExportContent bool
}

Options tune the content authorizer.

Jump to

Keyboard shortcuts

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