enterprisecontrol

package
v1.13.10-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: AGPL-3.0 Imports: 32 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package enterprisecontrol loads the daemon-side attachment between a tenant's signed authority state and the governed data-service boundaries. It deliberately verifies static bootstrap files locally; distributing newer signed state is a separate rollout transport concern.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionControlConfig

type ActionControlConfig struct {
	Profile               actionregistry.Profile `json:"profile"`
	AgentID               string                 `json:"agent_id,omitempty"`
	Risk                  decision.RiskClass     `json:"risk,omitempty"`
	ContinuationDirectory string                 `json:"continuation_directory,omitempty"`
}

ActionControl opts concrete node adapters into the universal before/after action hook. Omitting this block (or using mode off) preserves unmanaged behavior even when the same attachment is used for governed transports.

type AppInstaller

type AppInstaller interface {
	// Install places appID at the requested version beneath root, performing
	// the same catalogue signature and sha256 checks an operator would get at
	// the keyboard.
	Install(ctx context.Context, appID, version, root string) error
	// Remove deletes appID from root. Removing an app that is not present is
	// not an error.
	Remove(ctx context.Context, appID, root string) error
}

AppInstaller performs the actual bundle fetch, verification, and extraction.

It is an interface because the verified install path currently lives in pilotctl's `package main` and cannot be linked into the daemon. Reconciliation logic is therefore testable without a real network or a real pilotctl binary, and the concrete implementation can later be swapped for an extracted library without touching anything here.

type AppReconcileResult

type AppReconcileResult struct {
	Desired   int
	Installed int
	Staged    int
	Removed   int
	Failed    int
}

AppReconcileResult is bounded operational information for daemon logs. App identifiers are catalogue-public, so they may cross this boundary; local paths and manifest contents may not.

type AppsConfig

type AppsConfig struct {
	Enabled                  bool   `json:"enabled,omitempty"`
	InstallRoot              string `json:"install_root,omitempty"`
	StagingRoot              string `json:"staging_root,omitempty"`
	InstallerPath            string `json:"installer_path,omitempty"`
	ReconcileIntervalSeconds int64  `json:"reconcile_interval_seconds,omitempty"`
}

AppsConfig enables managed app reconciliation. It is opt-in for the same reason fleet state sync is: an unmanaged node must never acquire software because some authority asked it to.

type Config

type Config struct {
	TenantID          string                   `json:"tenant_id"`
	RootKeyID         string                   `json:"root_key_id"`
	RootPublicKey     string                   `json:"root_public_key"`
	TrustBundlePath   string                   `json:"trust_bundle_path"`
	PolicyBundlePath  string                   `json:"policy_bundle_path"`
	DataExchange      *DataExchangeRule        `json:"data_exchange,omitempty"`
	EventStream       *EventStreamRule         `json:"event_stream,omitempty"`
	Mandates          *MandateConfig           `json:"mandates,omitempty"`
	Receipts          *ReceiptConfig           `json:"receipts,omitempty"`
	Rollout           *RolloutConfig           `json:"rollout,omitempty"`
	Fleet             *FleetConfig             `json:"fleet,omitempty"`
	Apps              *AppsConfig              `json:"apps,omitempty"`
	OutboundDecisions *OutboundDecisionConfig  `json:"outbound_decisions,omitempty"`
	ActionControl     *ActionControlConfig     `json:"action_control,omitempty"`
	ContentInspection *ContentInspectionConfig `json:"content_inspection,omitempty"`
}

Config is the daemon's local, signed-state bootstrap attachment. Root keys are pinned out of band; trust and policy files are authenticated before they become usable at any resource boundary.

type ContentInspectionConfig

type ContentInspectionConfig struct {
	PresidioEndpoint string   `json:"presidio_endpoint"`
	Language         string   `json:"language,omitempty"`
	Entities         []string `json:"entities,omitempty"`
	ScoreThreshold   float64  `json:"score_threshold,omitempty"`
	MaxBytes         int64    `json:"max_bytes,omitempty"`
	// ProcessingResidency rejects disclosures intended for another region
	// before plaintext is sent to this local inspection endpoint.
	ProcessingResidency string `json:"processing_residency,omitempty"`
}

ContentInspectionConfig is retained only so older attachment files fail with a precise migration error. Pilot no longer supports a tenant-local semantic/content inspector; managed content travels to the Pilot-hosted account federation ingress before any side effect is released.

type DataExchangeRule

type DataExchangeRule struct {
	RequireGoverned          bool                 `json:"require_governed"`
	RequireDisclosure        bool                 `json:"require_disclosure,omitempty"`
	RequireContentInspection bool                 `json:"require_content_inspection,omitempty"`
	TransferQuota            *TransferQuotaConfig `json:"transfer_quota,omitempty"`
	Retention                *DataRetentionConfig `json:"retention,omitempty"`
	Resource                 string               `json:"resource"`
}

DataExchangeRule binds all inbound data-exchange receipts to one exact local resource. Deploy separate daemons or attachments for separate tenant destinations rather than accepting a sender-selected destination.

type DataRetentionClass

type DataRetentionClass struct {
	Class            string `json:"class"`
	RetainForSeconds int64  `json:"retain_for_seconds"`
}

type DataRetentionConfig

type DataRetentionConfig struct {
	Classes              []DataRetentionClass `json:"classes"`
	SweepIntervalSeconds int64                `json:"sweep_interval_seconds,omitempty"`
}

DataRetentionConfig maps signed V2 retention classes to a receiver-local expiry duration. The state journal is owned by the data-exchange service; no sender-provided path or duration is accepted.

type EvaluatorAttestationConfig

type EvaluatorAttestationConfig struct {
	AttestorID string `json:"attestor_id"`
	KeyID      string `json:"key_id"`
	PublicKey  string `json:"public_key"`
}

EvaluatorAttestationConfig pins a key independent from the authority's decision signer. Before a residency-bound disclosure request is sent, the runtime fetches a short-lived signed assertion and verifies this key.

type EventStreamRule

type EventStreamRule struct {
	RequireGoverned          bool                 `json:"require_governed"`
	RequireDisclosure        bool                 `json:"require_disclosure,omitempty"`
	RequireContentInspection bool                 `json:"require_content_inspection,omitempty"`
	TransferQuota            *TransferQuotaConfig `json:"transfer_quota,omitempty"`
	ResourceTemplate         string               `json:"resource_template"`
}

EventStreamRule requires topic-bound resources. ResourceTemplate must contain the literal {topic} once, ensuring authority for one topic cannot be replayed to another broker topic.

type ExternalActionAttempt

type ExternalActionAttempt struct {
	Version           uint16               `json:"version"`
	Envelope          actionhook.Envelope  `json:"envelope"`
	Preflight         actionhook.Preflight `json:"preflight"`
	Selected          bool                 `json:"selected"`
	Managed           bool                 `json:"managed"`
	Federated         bool                 `json:"federated"`
	ExchangeID        string               `json:"exchange_id,omitempty"`
	Intent            decision.Intent      `json:"intent"`
	Decision          decision.Decision    `json:"decision"`
	ContinuationID    string               `json:"continuation_id,omitempty"`
	ContinuationLease string               `json:"continuation_lease,omitempty"`
}

ExternalActionAttempt is the restart-safe, content-free portion of a managed action preflight. Native agent harnesses invoke pre- and post-hooks in separate processes, so the opaque actionHookState cannot remain only in memory. The exact request and response bodies are deliberately excluded: they travel to the hosted federation endpoint during the corresponding hook and are never written to this record.

The signed Intent and Decision are retained so ImportExternalActionAttempt can authenticate the record against the locally pinned trust bundle before it is allowed to produce receipts, activity, or a federation result.

type FleetConfig

type FleetConfig struct {
	ReportIntervalSeconds    int64  `json:"report_interval_seconds,omitempty"`
	AgentVersion             string `json:"agent_version,omitempty"`
	HarnessID                string `json:"harness_id,omitempty"`
	HarnessVersion           string `json:"harness_version,omitempty"`
	ConnectorVersion         string `json:"connector_version,omitempty"`
	StateSyncEnabled         bool   `json:"state_sync_enabled,omitempty"`
	StateDirectory           string `json:"state_directory,omitempty"`
	StateSyncIntervalSeconds int64  `json:"state_sync_interval_seconds,omitempty"`
}

FleetConfig enables a daemon's signed pull-based remote-operations channel. It reports bounded health/activity and accepts only short-lived, authority- signed allowlisted commands; it never opens an inbound remote shell.

type FleetNodeStatus

type FleetNodeStatus struct {
	NodeID           uint32
	AgentVersion     string
	HarnessID        string
	HarnessVersion   string
	ConnectorVersion string
	UptimeSeconds    uint64
	Connections      uint32
	Peers            uint32
	EncryptedPeers   uint32
	BytesSent        uint64
	BytesReceived    uint64
	PolicyRevision   uint64
}

FleetNodeStatus is intentionally bounded node telemetry suitable for an operator console. It excludes endpoint addresses, identities, payloads, prompts, local paths, and environment values.

type FleetReconciliation

type FleetReconciliation struct {
	Control               authority.FleetNodeControl
	Found                 bool
	Status                string
	DetailCode            string
	AppliedPolicyRevision uint64
	VersionMatches        bool
}

FleetReconciliation is the bounded local result of applying one signed desired-state revision. Runtime and policy changes remain explicit: Pilot can refresh an already signed policy, while a binary-version drift requires the deployment mechanism to restart the node.

type FleetStateSyncResult

type FleetStateSyncResult struct {
	Revision          uint64
	Entries           int
	AppliedMutations  int
	RejectedMutations int
}

FleetStateSyncResult is bounded operational information for daemon logs. File names and content deliberately do not cross this boundary.

type MandateConfig

type MandateConfig struct {
	// Path is the legacy static array of individually signed mandates. It is
	// suitable for local/self-hosted bootstrap, but cannot carry a monotonic
	// removal revision.
	Path string `json:"path,omitempty"`
	// BundlePath is a protected bootstrap copy of a signed, revisioned mandate
	// bundle. When Rollout is also configured, RefreshRollout replaces it only
	// with a newer bundle obtained from the authority for AgentID.
	BundlePath string `json:"bundle_path,omitempty"`
	AgentID    string `json:"agent_id,omitempty"`
}

MandateConfig installs a protected local set of tenant-issuer-signed mandates. When configured, governed Decisions pass through this ceiling in addition to the local deterministic policy bundle.

type OutboundDecisionConfig

type OutboundDecisionConfig struct {
	AuthorityEndpoint     string             `json:"authority_endpoint"`
	AgentID               string             `json:"agent_id"`
	IntentKeyID           string             `json:"intent_key_id"`
	IntentSeedPath        string             `json:"intent_seed_path"`
	Risk                  decision.RiskClass `json:"risk,omitempty"`
	RequestTimeoutSeconds int64              `json:"request_timeout_seconds,omitempty"`
	MandateID             string             `json:"mandate_id,omitempty"`
	Audience              string             `json:"audience,omitempty"`
	Purpose               string             `json:"purpose,omitempty"`
	// ContentLabels and RetentionClass are attachment-owned defaults for the
	// complete request/response bodies uploaded to Pilot's hosted federation
	// ingress. Application code cannot silently downgrade either field.
	ContentLabels  []string `json:"content_labels,omitempty"`
	RetentionClass string   `json:"retention_class,omitempty"`
	// EvaluatorResidency is an attachment-controlled routing constraint for
	// typed metadata. It does not attest an endpoint's physical geography.
	EvaluatorResidency   string                      `json:"evaluator_residency,omitempty"`
	EvaluatorAttestation *EvaluatorAttestationConfig `json:"evaluator_attestation,omitempty"`
}

OutboundDecisionConfig lets a local sender request a short-lived signed Decision before it transmits governed data. It is deliberately separate from rollout acknowledgement: an acknowledgement key proves a deployment reached a staged revision, whereas this key is delegated to propose actual business actions. The configured risk is attachment-controlled so a caller cannot downgrade an action to select a weaker evaluator failure policy.

type PilotctlInstaller

type PilotctlInstaller struct {
	BinaryPath string
	Timeout    time.Duration
}

PilotctlInstaller drives the pilotctl binary that ships beside the daemon.

Shelling out is deliberate rather than convenient: pilotctl owns the only implementation of the catalogue trust chain (publisher signature, per-platform bundle pin, sha256 verification, sideload clamping). Reimplementing that here would create a second, subtly different verifier — the one outcome that must not happen for a security boundary.

func (PilotctlInstaller) Install

func (installer PilotctlInstaller) Install(ctx context.Context, appID, version, root string) error

func (PilotctlInstaller) Remove

func (installer PilotctlInstaller) Remove(ctx context.Context, appID, root string) error

type ReceiptConfig

type ReceiptConfig struct {
	AgentID                   string `json:"agent_id"`
	KeyID                     string `json:"key_id"`
	SeedPath                  string `json:"seed_path"`
	JournalPath               string `json:"journal_path"`
	ExportEndpoint            string `json:"export_endpoint,omitempty"`
	ExportAcknowledgementPath string `json:"export_acknowledgement_path,omitempty"`
	ExportBearerTokenEnv      string `json:"export_bearer_token_env,omitempty"`
	ExportIntervalSeconds     int64  `json:"export_interval_seconds,omitempty"`
	ExportBatchSize           int    `json:"export_batch_size,omitempty"`
}

ReceiptConfig gives the local enforcement daemon a tenant-delegated receipt signing key and an owner-only append-only journal. The agent ID is the signer identity, which may differ from the sender named by an incoming Intent; the enforcement point identifies the receiver/broker that acted.

type RolloutConfig

type RolloutConfig struct {
	AuthorityEndpoint       string `json:"authority_endpoint"`
	AgentID                 string `json:"agent_id"`
	AcknowledgementKeyID    string `json:"acknowledgement_key_id"`
	AcknowledgementSeedPath string `json:"acknowledgement_seed_path"`
	PollIntervalSeconds     int64  `json:"poll_interval_seconds,omitempty"`
}

RolloutConfig opts a workload into the authority's staged policy lifecycle. The acknowledgement key must be the agent-scoped intent key named in the tenant trust bundle; its seed is read only from the protected attachment directory and never sent to the authority.

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

Runtime contains the verified local enforcement attachment.

func Load

func Load(path string) (*Runtime, error)

Load parses the strict JSON attachment at path, resolves its relative bundle paths, verifies every signature and state floor, and constructs an enforcer with no remote provider. The enforcer is used only to verify a sender-supplied signed Decision below the local signed policy ceiling.

func (*Runtime) ActionArtifacts

func (runtime *Runtime) ActionArtifacts(preflight actionhook.Preflight) (decision.Intent, decision.Decision, bool)

ActionArtifacts returns the locally verified signed wire objects behind a managed preflight. Governed transport adapters need these exact objects for receiver-side verification; local/observe-only hooks intentionally expose none.

func (*Runtime) ActionHook

func (runtime *Runtime) ActionHook() actionhook.Hook

ActionHook returns this attachment as a universal hook only when an operator explicitly selected a non-off profile. A nil return is the hard compatibility boundary used by unmanaged nodes.

func (*Runtime) AfterAction

func (runtime *Runtime) AfterAction(ctx context.Context, envelope actionhook.Envelope, preflight actionhook.Preflight, observed actionhook.ObservedResult) error

AfterAction writes signed enforcement evidence when receipt signing is configured. It intentionally does nothing for unselected/local-only actions. A caller must never retry a side effect because this method fails.

func (*Runtime) AppReconcileInterval

func (runtime *Runtime) AppReconcileInterval() time.Duration

func (*Runtime) ApplyDataExchange

func (runtime *Runtime) ApplyDataExchange(config *dataexchange.ServiceConfig) error

ApplyDataExchange attaches the verified receiver gate to the supplied service config. A nil Runtime leaves the caller's existing config unchanged.

func (*Runtime) ApplyEventStream

func (runtime *Runtime) ApplyEventStream(service *eventstream.Service) error

ApplyEventStream attaches the verified broker publication gate. A nil Runtime leaves the caller's service unchanged.

func (*Runtime) AuthorizeOutbound

func (runtime *Runtime) AuthorizeOutbound(ctx context.Context, action, resource, payloadHash string) (decision.Intent, decision.Decision, error)

AuthorizeOutbound creates a fresh, signed Intent and asks the configured authority for a Decision. It verifies the response against the locally pinned trust and deterministic policy ceiling before returning it. A deny or approval-required result is returned as a valid Decision; the caller must not perform the side effect unless the outcome permits it.

func (*Runtime) AuthorizeOutboundDisclosure

func (runtime *Runtime) AuthorizeOutboundDisclosure(ctx context.Context, action, resource string, disclosure decision.DisclosureBinding) (decision.Intent, decision.Decision, error)

AuthorizeOutboundDisclosure creates an outbound Intent whose payload hash binds typed disclosure metadata, then sends that metadata through the disclosure-aware authority envelope. The attachment-owned audience and purpose must match the binding so an application cannot select a different recipient or stated purpose at request time.

func (*Runtime) AuthorizeOutboundFederatedContent

func (runtime *Runtime) AuthorizeOutboundFederatedContent(ctx context.Context, action, resource string, content decision.FederatedContent) (decision.Intent, decisionhttp.FederationExchangeResponse, error)

AuthorizeOutboundFederatedContent sends the exact exchange body to the Pilot-hosted account ingress configured as AuthorityEndpoint. The hosted response remains below the locally pinned policy ceiling and is bound to the disclosure hash; a customer-local semantic inspector is never invoked.

func (*Runtime) BeforeAction

func (runtime *Runtime) BeforeAction(ctx context.Context, envelope actionhook.Envelope) (actionhook.Preflight, error)

BeforeAction evaluates only explicitly selected actions. Local enforcement uses the signed policy bundle already installed on the node; managed enforcement obtains and verifies a fresh signed authority Decision. Observe mode evaluates locally but cannot block the adapter.

func (*Runtime) CurrentFleetControl

func (runtime *Runtime) CurrentFleetControl() (authority.FleetNodeControl, bool)

func (*Runtime) CurrentPolicyRevision

func (runtime *Runtime) CurrentPolicyRevision(ctx context.Context) uint64

func (*Runtime) ExportExternalActionAttempt

func (runtime *Runtime) ExportExternalActionAttempt(envelope actionhook.Envelope, preflight actionhook.Preflight) (ExternalActionAttempt, bool, error)

ExportExternalActionAttempt converts process-local hook state into a bounded record suitable for a protected local outbox. It returns false for unselected and local/observe-only actions because AfterAction has no remote evidence to complete for those cases.

func (*Runtime) ExportReceiptsOnce

func (runtime *Runtime) ExportReceiptsOnce(ctx context.Context) error

ExportReceiptsOnce attempts idempotent export of locally durable receipts. It is deliberately separate from every governed action path.

func (*Runtime) FleetCommands

func (runtime *Runtime) FleetCommands(ctx context.Context) ([]authority.FleetCommand, error)

FleetCommands returns only commands which verify against the daemon's locally pinned authority trust and target this enrolled agent.

func (*Runtime) FleetReportInterval

func (runtime *Runtime) FleetReportInterval() time.Duration

func (*Runtime) FleetStateSyncInterval

func (runtime *Runtime) FleetStateSyncInterval() time.Duration

func (*Runtime) HasAppReconcile

func (runtime *Runtime) HasAppReconcile() bool

func (*Runtime) HasFleetControl

func (runtime *Runtime) HasFleetControl() bool

HasFleetControl reports whether the daemon participates in the signed pull-based fleet operations channel.

func (*Runtime) HasFleetStateSync

func (runtime *Runtime) HasFleetStateSync() bool

func (*Runtime) HasOutboundDecisions

func (runtime *Runtime) HasOutboundDecisions() bool

HasOutboundDecisions reports whether this attachment can request signed Decisions for a local sender. It is opt-in so open-agent installations keep their existing direct message and file behavior.

func (*Runtime) HasReceiptExport

func (runtime *Runtime) HasReceiptExport() bool

HasReceiptExport reports whether signed enforcement receipts should be asynchronously exported. Export availability never changes local action authorization or receipt persistence.

func (*Runtime) HasRollout

func (runtime *Runtime) HasRollout() bool

HasRollout reports whether this attachment is configured to participate in the authority's staged policy acknowledgement lifecycle.

func (*Runtime) ImportExternalActionAttempt

func (runtime *Runtime) ImportExternalActionAttempt(record ExternalActionAttempt) (actionhook.Envelope, actionhook.Preflight, error)

ImportExternalActionAttempt reconstructs the opaque state needed by AfterAction. It authenticates both signed wire objects at their historical issuance times, then checks their tenant, agent, action, resource, and payload bindings against the persisted envelope. This prevents a corrupted outbox record from manufacturing evidence for another action.

func (*Runtime) LifecycleCommandAlreadyApplied

func (runtime *Runtime) LifecycleCommandAlreadyApplied(command authority.FleetCommand) bool

LifecycleCommandAlreadyApplied reports whether a signed lifecycle command has already been acted on (by monotonic issue time or exact id). Missing or unreadable state reads as "not applied" (first boot); durability rests on the fail-closed MarkLifecycleCommandApplied step.

func (*Runtime) MarkLifecycleCommandApplied

func (runtime *Runtime) MarkLifecycleCommandApplied(command authority.FleetCommand) error

MarkLifecycleCommandApplied durably records a lifecycle command as applied BEFORE the daemon acts on it, so the action cannot loop across polls or the restart it triggers. The caller must treat an error as fatal to the action (fail closed) rather than proceed unrecorded.

func (*Runtime) NewOutboundFederatedContent

func (runtime *Runtime) NewOutboundFederatedContent(contentType, filename string, body []byte) (decision.FederatedContent, error)

NewOutboundFederatedContent creates the exact hosted request attachment from immutable node configuration and the adapter's real bytes. It is the only supported construction path for built-in managed adapters, preventing application-selected labels, purpose, recipient, retention, or residency.

func (*Runtime) NewOutboundFederatedResponseContent

func (runtime *Runtime) NewOutboundFederatedResponseContent(contentType, filename string, body []byte) (decision.FederatedContent, error)

NewOutboundFederatedResponseContent creates the post-hook counterpart for bytes returned to this node. Response metadata is still node-owned and cannot be supplied by the remote peer or application harness.

func (*Runtime) ReceiptExportInterval

func (runtime *Runtime) ReceiptExportInterval() time.Duration

ReceiptExportInterval returns the configured bounded export cadence.

func (*Runtime) ReconcileApps

func (runtime *Runtime) ReconcileApps(ctx context.Context, installer AppInstaller) (AppReconcileResult, error)

ReconcileApps converges the node's installed apps toward the authority's desired set and republishes what it observes.

The two-root design is the grant boundary. An app whose declared grants the tenant has not accepted is installed into the staging root, which the supervisor does not scan — so its binary exists, its manifest can be read and reported, and it cannot run. Promotion into the live install root happens only once the desired document carries an acceptance covering every grant the manifest declares. A catalogue that later widens an app's grants demotes it back to staging on the next pass rather than silently gaining capability.

func (*Runtime) ReconcileFleetControl

func (runtime *Runtime) ReconcileFleetControl(ctx context.Context, runningVersion string) (FleetReconciliation, error)

ReconcileFleetControl fetches, verifies, anti-rolls back, and durably installs the authority's desired state. A missing remote object retains the last signed local state; clearing desired state therefore requires a newer signed revision instead of an unauthenticated absence.

func (*Runtime) RefreshRollout

func (runtime *Runtime) RefreshRollout(ctx context.Context) error

RefreshRollout fetches a targeted staged candidate and the signed active policy from the configured authority. Candidate validation and the staged acknowledgement happen before activation; only the authority's current policy endpoint can advance the live local ceiling.

func (*Runtime) Reload

func (runtime *Runtime) Reload() error

Reload atomically validates a newer pair of local signed bundles against a temporary authority state, then installs it below the already-attached enforcer. Resource mappings and the root pin are immutable until restart; SIGHUP therefore advances only signed authority state, not configuration.

func (*Runtime) ReportFleetCommandResult

func (runtime *Runtime) ReportFleetCommandResult(ctx context.Context, commandID, outcome, detailCode string) error

ReportFleetCommandResult signs an allowlisted-command outcome. The remote service keeps the short result code, never daemon logs or raw errors.

func (*Runtime) ReportFleetControlAcknowledgement

func (runtime *Runtime) ReportFleetControlAcknowledgement(ctx context.Context, reconciliation FleetReconciliation, runningVersion string) error

ReportFleetControlAcknowledgement gives the management plane signed proof of the exact desired-state revision the node reached. The record contains only coarse applied state and never local paths, endpoints, or payloads.

func (*Runtime) ReportFleetStatus

func (runtime *Runtime) ReportFleetStatus(ctx context.Context, status FleetNodeStatus) error

ReportFleetStatus signs and publishes bounded operational telemetry using the enrolled rollout intent key. A reporting failure does not alter local authorization or governed delivery.

func (*Runtime) RequireEnabledServiceGates

func (runtime *Runtime) RequireEnabledServiceGates(dataExchangeEnabled, eventStreamEnabled bool) error

RequireEnabledServiceGates proves that every enabled transport has a mandatory governed rule. The enterprise daemon profile calls this after the attachment has been verified, so an omitted or permissive rule cannot leave an alternate legacy ingress path open.

func (*Runtime) RolloutInterval

func (runtime *Runtime) RolloutInterval() time.Duration

RolloutInterval returns the bounded authority poll cadence. It is zero when the attachment does not participate in rollout acknowledgement.

func (*Runtime) SyncFleetState

func (runtime *Runtime) SyncFleetState(ctx context.Context) (FleetStateSyncResult, error)

SyncFleetState publishes a signed .pilot mirror, retries durable mutation results, and applies any short-lived authority-signed typed mutations. It is entirely opt-in; unmanaged nodes never call or initialize this path.

type TransferQuotaConfig

type TransferQuotaConfig struct {
	WindowSeconds int64  `json:"window_seconds"`
	MaxBytes      uint64 `json:"max_bytes,omitempty"`
	MaxActions    uint64 `json:"max_actions,omitempty"`
	MaxSenders    int    `json:"max_senders"`
}

TransferQuotaConfig is a per-signed-agent local admission budget. It is charged only for a verified governed message, event, or stream INIT; no transport address or caller-supplied identity participates in accounting.

Jump to

Keyboard shortcuts

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