Documentation
¶
Overview ¶
Package sandboxcontrolapi serves the private sandbox.control/v1 control process without exposing persistence, authentication, or transport types in the public sandbox SDK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticator ¶
Authenticator verifies a fresh request credential without retaining it.
type Config ¶
type Config struct {
Store sandboxcontrol.DurableStore
Authenticator Authenticator
AssertionKey []byte
Entropy io.Reader
Clock clock.Clock
BindingLifetime time.Duration
Retention time.Duration
WaitInterval time.Duration
// Wait is the injected cancellation-aware scheduling seam used between
// durable reads. Production composition supplies a bounded context wait;
// deterministic tests can advance without wall-clock sleeps.
Wait func(context.Context, time.Duration) error
Admission sandbox.OperationAdmissionPolicy
}
Config contains explicit control-process authority and finite policy.
type Identity ¶
Identity is the complete authenticated authority bound to one private assertion. Principal is the durable ledger scope; Authority, Tenant and Subject prevent a credential from matching only by display name.
type StaticAuthenticator ¶
type StaticAuthenticator struct {
// contains filtered or unexported fields
}
StaticAuthenticator binds one already-injected authorization value to one explicit identity. It retains only the credential digest and is intended for isolated development or a single service identity, not multi-user issuance.
func NewStaticAuthenticator ¶
func NewStaticAuthenticator(authorization string, identity Identity) (*StaticAuthenticator, error)
NewStaticAuthenticator constructs a fixed-identity adapter without retaining the authorization value.
func (*StaticAuthenticator) Authenticate ¶
func (authenticator *StaticAuthenticator) Authenticate(ctx context.Context, authorization string) (Identity, error)
Authenticate performs a constant-time digest comparison and returns no credential material in either success or failure values.