sealform
Manage a SignPath.io organization as code.
Projects, signing policies, artifact configurations, CI users and pipeline policies are declared in YAML
and reconciled against the SignPath REST API with a plan / apply workflow.
Certificates, interactive users, user groups and trusted build systems are referenced, never modified.
This repository contains the tool only. Organization configurations (for example the Eclipse Foundation one) live in their own repositories.
sealform is an independent project: it is not affiliated with, endorsed by, or maintained by the makers of SignPath.
Install
uv tool run sealform --help # or uvx; uv fetches a suitable Python if needed
uv tool install sealform # or pipx install sealform
Quick start
# 1. bootstrap a configuration from an existing organization
export SIGNPATH_API_TOKEN=... # never passed as a command-line argument
sealform --organization-id <uuid> import -o my-org
sealform -c my-org plan # expect: "No changes."
# 2. edit the YAML, then review and apply
sealform -c my-org validate # offline
sealform -c my-org plan
sealform -c my-org apply
A minimal project file, inheriting everything else from a profile:
# projects/technology.cbi.yaml (the file name is the project slug)
name: Eclipse CBI
repositories: [https://github.com/eclipse-cbi/cbi]
ci_users:
technology.cbi:
signing_policies: [test-signing, release-signing]
signing_policies:
release-signing:
approval:
approvers: [alice@example.org, group:CBI leads]
See docs/configuration.md for the full reference and examples/basic for a complete configuration root.
Commands
| Command | What it does |
|---|---|
validate |
Checks the configuration offline: schema, profile merge, references, XML against the SignPath XSD. |
plan |
Shows what apply would change. Read-only: it is designed for a Global Reader token (not yet verified). -o json and --detailed-exitcode are available for CI. |
apply |
Applies the plan after confirmation (--yes when not interactive). |
import -o DIR |
Writes the configuration of a live organization. --profile NAME writes projects relative to a profile. |
ci-user rotate-token NAME |
Regenerates a CI user's API token. |
schema [KIND] |
Prints the JSON Schema of organization, profile or project files, for editor completion. |
Scoping options for plan and apply:
| Option | Effect |
|---|---|
-p/--project SLUG |
Only these projects (repeatable). |
--org-only |
Only organization-level objects (pipeline policies, pruning). |
--prune |
Deactivate what is not declared, refused above --max-deactivations (default 10). |
API token
The administrator token is read from --token-file PATH, --token-stdin or $SIGNPATH_API_TOKEN, in that order.
There is deliberately no option to pass it on the command line (ADR-0012).
New CI user tokens
SignPath returns a CI user's API token only once, when the user is created.
apply sends it to one destination, and it never appears on stdout or in logs:
- the terminal, by default when interactive;
- a file created with mode 0600 (
--ci-token-file PATH); - nowhere, with
--discard-new-ci-tokens; runci-user rotate-tokenlater to get a usable token.
A non-interactive run that would create CI users without a destination stops before changing anything.
How it behaves
- Deactivation instead of deletion. The SignPath API cannot delete objects.
Undeclared objects are reported as drift and deactivated only with
--prune. Declaring an object whose slug matches an inactive one reactivates it. - Changes made in the web UI are not overwritten. Before its first write,
applyre-reads every resource it will modify. If one changed since the plan was computed, that project is skipped as stale and the others are applied (ADR-0011). - Requests are conditional and polite. HTTP validators are used when SignPath provides them, concurrency is bounded,
Retry-Afteris honored, and nothing is written when nothing differs. - Artifact configuration XML is compared as text, the way SignPath stores it, so the repository and the UI show the same document.
Design and decisions: PLAN.md and docs/decisions. Running the tool from a configuration repository: docs/configuration-repository.md.
Development
uv sync
uv run pytest # unit and fake-API tests; never use a real token in tests
uv run ruff check && uv run ruff format --check
uv run mypy
scripts/update-spec.sh # refresh the vendored OpenAPI document and XSD
Releasing
The version comes from git tags (uv-dynamic-versioning):
a commit tagged vX.Y.Z builds as X.Y.Z, any other commit as the next minor .devN pre-release.
To release, tag the commit on main and push the tag; the release workflow builds, checks that the
built version matches the tag, and publishes to PyPI.
git tag -s vX.Y.Z -m "vX.Y.Z"
git push origin vX.Y.Z
License
Metadata
Release files for sealform 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sealform-0.1.0.tar.gz | 195.3 kB | Without provenance | Details for sealform-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sealform-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sealform-0.1.0-py3-none-any.whl |
Total release size: 286.2 kB
Release files / sealform-0.1.0.tar.gz
| Download URL | sealform-0.1.0.tar.gz |
|---|---|
| Size | 195.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1c20c91fd9419d0e72047001f055f66fab19173803494adb72540e2d8e1c426
|
|
BLAKE2b-256 checksum How to use checksums |
947316b58a63b49eba1ed3701acd97039fff6804dc9f5fda93d3764d3029de14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / sealform-0.1.0-py3-none-any.whl
| Download URL | sealform-0.1.0-py3-none-any.whl |
|---|---|
| Size | 90.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a91bd02bb8efb9aa285f9fcdea45445c5e2325ba1e0173568a4e237c38632b3
|
|
BLAKE2b-256 checksum How to use checksums |
74819982823fa0dbc8e0bd5d93c59febb99972f4f52b38f8d569d3ea31c81b41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for sealform 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.