Documentation
¶
Overview ¶
Package invocation owns host-issued provenance, request admission and ownership. Route IDs and SDK diagnostic metadata are never authenticated principals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthorizeFunc ¶
type Boundary ¶
type Boundary struct {
// contains filtered or unexported fields
}
func NewBoundary ¶
func NewBoundary(authorizer Authorizer) *Boundary
func (*Boundary) Reauthorize ¶ added in v0.12.0
Reauthorize refines an existing reference request with its catalogue-derived query scope. It never issues a new identity, changes the bound resource, or treats an earlier allow decision as permission for the refined scope.
func (*Boundary) RegisterDelegation ¶ added in v0.27.0
func (b *Boundary) RegisterDelegation(ctx context.Context, grant Delegation) (func(), error)
RegisterDelegation attaches a narrow owner grant to the already admitted call.
type ContextScope ¶ added in v0.31.0
ContextScope supplies host-issued provenance at a binding boundary. A fixed Scope also implements this contract for native and agent callers.
type Delegation ¶ added in v0.27.0
type Delegation struct {
Consumer string
Owner string
Connection string
ReadOnly bool
Grant config.ConnectionGrant
}
Delegation is a host-created, invocation-bound resource grant.
type Principal ¶
type Principal struct {
// contains filtered or unexported fields
}
Principal can only be issued by native host code. Initial generation reserves an ownership slot; it does not implement revocation or policy change detection.
func (Principal) Generation ¶
type Target ¶
type Target struct {
Provider string
Connection string
ResourceType string
Object string
Action string
Scope map[string]string
}
Target is access-route input, not canonical resource identity or a grant.
type WindowRealm ¶ added in v0.31.0
type WindowRealm struct {
// contains filtered or unexported fields
}
WindowRealm shares one principal across services in the same authenticated window. Different windows never share source observations or operation handles.
func NewWindowRealm ¶ added in v0.31.0
func NewWindowRealm(onRetire func(string)) *WindowRealm
func (*WindowRealm) Context ¶ added in v0.31.0
func (r *WindowRealm) Context(ctx context.Context) context.Context
func (*WindowRealm) ScopeForWindow ¶ added in v0.31.0
func (r *WindowRealm) ScopeForWindow(window application.Window) *Scope
ScopeForWindow accepts only the native window object, never a caller-supplied ID.