Security model¶
Boundver reads repository-controlled data in developer machines and CI, so it treats configuration, tracked files, paths, Git object data, and contract documents as untrusted input.
This page explains the practical trust boundary. The security policy contains the reporting channel and the complete maintainer-facing model.
What the built-in CLI can do¶
The built-in CLI reads bounded repository data, invokes a restricted set of local Git commands, computes digests, and writes only artifacts requested by the command. It has no outbound-network or telemetry client in its runtime dependency surface.
Requested lock, config, migration, update, and review-summary writes reject
symlinked ancestors, Windows junctions and reparse points, and non-regular
destinations. Temporary creation and final replacement remain relative to an
identity-bound plain parent directory; if its path changes before publication,
the write fails closed instead of following the replacement. Missing parent
directories are opened or created one component at a time relative to the
previously validated directory handle, so an ancestor rename cannot redirect
either parent creation or the temporary payload. Working-directory and
environment-selected temporary paths are not trusted prefixes. Boundver walks
them lexically and canonicalizes only fixed macOS /var and /tmp aliases
after inspecting their exact system targets.
Git subprocesses are constrained to local inspection. Boundver disables hooks,
filters, external diff and text-conversion helpers, filesystem monitors,
pagers, prompts, signature helpers, trace sinks, and partial-clone lazy fetches.
It requires Git 2.32 or newer and confirms that the selected executable applies
the process-local configuration block carrying those controls before inspection.
Partial-clone configuration is detected explicitly; such repositories require
Git 2.45 or newer so missing objects cannot trigger an undeclared fetch.
Unsupported or over-budget input needed for an authoritative digest or
comparison fails closed with exit 2. Optional structural explanations from
range review are separate: an unsupported provider or exhausted explanation
budget can report complete: false without invalidating an otherwise complete
facet and impact result.
These controls reduce the authority exposed to repository content. They do not protect against an attacker who already controls the operating system, Python interpreter, selected Git executable, or invoking account.
Data-only configuration¶
boundary.config.json declares paths, providers, options, versions, graph
edges, and data-only generated-artifact relations. Ordinary configuration
cannot execute a command or enable custom Python providers by itself. A
derivation receipt binds selected inputs, outputs, and a logical generator
identity, while trusted CI remains responsible for running and validating the
generator.
Built-in providers parse or hash data under size, count, nesting, and work limits. A digest proves that the declared identity is unchanged; it is not a code signature, provenance statement, or compatibility verdict.
Custom providers are trusted code¶
A custom provider is arbitrary in-process Python with the same authority as the
boundver process. It runs only when the caller explicitly enables custom
providers. Review the module and all of its dependencies before using
--allow-custom-providers, especially in CI or on an untrusted pull request.
The telemetry-free guarantee applies to the built-in CLI, not to custom providers or wrappers supplied by another project.
Safer CI use¶
- Pin boundver and third-party Actions to an immutable release or full commit SHA.
- Give the job only the repository and token permissions it needs.
- Keep custom providers disabled for untrusted changes.
- Generate and verify from the same explicit source mode.
- Treat exit
2as a failed check, never as “no drift.” - Record derivation evidence after trusted generation, and keep an independent deterministic generator check in CI where reproducibility matters.
- For an untrusted repository, prefer the release container with no network,
no capabilities,
no-new-privileges, and read-only mounts.
The CI cookbook provides maintained examples, and the distribution guide shows a least-privilege container invocation.
Privacy¶
The built-in boundver CLI is telemetry-free and does not phone home. Package registries and hosting platforms can independently record downloads or page views. See Privacy and telemetry for the enforced invariant.
Report a vulnerability¶
Use GitHub's private vulnerability reporting. Do not put sensitive details in a public issue, discussion, or pull request.