Documentation
¶
Overview ¶
Package executionchannelbundle verifies the short-lived, offline-authorized handoff into one exact StackKits execution channel. It owns no transport, credentials, provider lifecycle, discovery, retry, or execution behavior.
Index ¶
Constants ¶
View Source
const ( SchemaVersion = "stackkit.execution-channel-bundle/v1" Kind = "ExecutionChannelBundle" Audience = "stackkit-runtime" MaxBundleBytes = 64 * 1024 * 1024 MaxLifetime = 5 * time.Minute MaxClockSkew = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelBinding ¶
type Envelope ¶
type Envelope struct {
SchemaVersion string `json:"schemaVersion"`
Kind string `json:"kind"`
Audience string `json:"audience"`
IssuerID string `json:"issuerId"`
KeyID string `json:"keyId"`
IssuedAt string `json:"issuedAt"`
ExpiresAt string `json:"expiresAt"`
Channel ChannelBinding `json:"channel"`
Request runtimeexecutor.ExecutionRequest `json:"request"`
Signature string `json:"signature,omitempty"`
}
type Verified ¶
type Verified struct {
Request runtimeexecutor.ExecutionRequest
Channel ChannelBinding
IssuerID string
KeyID string
IssuedAt time.Time
ExpiresAt time.Time
BundleDigest string
}
func DecodeAndVerify ¶
func DecodeAndVerify( bundleRaw []byte, trust *advancedcapability.TrustBundle, now time.Time, ) (Verified, error)
DecodeAndVerify rejects a noncanonical, expired, substituted, unsealed, or cross-channel bundle before the caller constructs a mutating runtime. Trust is injected from the existing Owner-approved Advanced trust record.
Click to show internal directories.
Click to hide internal directories.