Documentation
¶
Overview ¶
Package security provides authenticated subject isolation helpers.
Index ¶
Constants ¶
View Source
const LocalSubject = "local-stdio"
LocalSubject is the shared subject for unauthenticated local transports.
Variables ¶
This section is empty.
Functions ¶
func RequireSubject ¶
RequireSubject verifies ownership without revealing cross-subject objects.
func SubjectFromContext ¶
SubjectFromContext returns the authenticated subject or the local transport subject.
Types ¶
type OwnedRecord ¶
OwnedRecord is a value associated with the subject that created it.
Click to show internal directories.
Click to hide internal directories.