optionsv1

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Authorization metadata for a gRPC method.
	//
	// optional openshell.options.v1.AuthorizationRule authorization = 50000;
	E_Authorization = &file_options_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// optional bool secret = 50001;
	E_Secret = &file_options_proto_extTypes[1]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_options_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthorizationRule

type AuthorizationRule struct {

	// Authentication mode: "bearer", "sandbox", "dual", "peer", "operator",
	// or "unauthenticated". Operator requires a verified mTLS operator certificate.
	AuthMode string `protobuf:"bytes,1,opt,name=auth_mode,json=authMode,proto3" json:"auth_mode,omitempty"`
	// Minimum workspace-level role required (checked by handler via
	// authorize_workspace): "user" or "admin". Mutually exclusive with
	// global_role.
	WorkspaceRole string `protobuf:"bytes,2,opt,name=workspace_role,json=workspaceRole,proto3" json:"workspace_role,omitempty"`
	// Global role required (checked by middleware via OIDC claims):
	// "platform_admin". Mutually exclusive with workspace_role.
	GlobalRole string `protobuf:"bytes,3,opt,name=global_role,json=globalRole,proto3" json:"global_role,omitempty"`
	// Required OIDC scope on the bearer path (e.g. "sandbox:read").
	Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"`
	// contains filtered or unexported fields
}

Per-method authorization rule. Consumed at runtime by the gateway's descriptor-pool-based auth table to enforce auth mode, role, and scope.

func (*AuthorizationRule) Descriptor deprecated

func (*AuthorizationRule) Descriptor() ([]byte, []int)

Deprecated: Use AuthorizationRule.ProtoReflect.Descriptor instead.

func (*AuthorizationRule) GetAuthMode

func (x *AuthorizationRule) GetAuthMode() string

func (*AuthorizationRule) GetGlobalRole

func (x *AuthorizationRule) GetGlobalRole() string

func (*AuthorizationRule) GetScope

func (x *AuthorizationRule) GetScope() string

func (*AuthorizationRule) GetWorkspaceRole

func (x *AuthorizationRule) GetWorkspaceRole() string

func (*AuthorizationRule) ProtoMessage

func (*AuthorizationRule) ProtoMessage()

func (*AuthorizationRule) ProtoReflect

func (x *AuthorizationRule) ProtoReflect() protoreflect.Message

func (*AuthorizationRule) Reset

func (x *AuthorizationRule) Reset()

func (*AuthorizationRule) String

func (x *AuthorizationRule) String() string

Jump to

Keyboard shortcuts

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