Skip to main content

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

sealform is published on PyPI: https://pypi.org/project/sealform/.

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; run ci-user rotate-token later 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, apply re-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-After is 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

Eclipse Public License 2.0

Metadata

Release files for sealform 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sealform 0.2.0
File Size Uploaded Provenance Actions
sealform-0.2.0.tar.gz 203.6 kB Without provenance Details for sealform-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sealform 0.2.0
File Interpreter ABI Platform Actions
sealform-0.2.0-py3-none-any.whl Python 3 none any Details for sealform-0.2.0-py3-none-any.whl

Total release size: 297.1 kB

Release files / sealform-0.2.0.tar.gz

Download URL sealform-0.2.0.tar.gz
Size 203.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6e8bfabae5bd3c7ef8c12b699bbc3052c61eccf89ed06beeeff2c786e0715b25
BLAKE2b-256 checksum
How to use checksums
5176dcc5438718987ae7a02d69d7537e2763d4487bfc393252230b903d49070b
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.2.0-py3-none-any.whl

Download URL sealform-0.2.0-py3-none-any.whl
Size 93.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da9881793a1068f0b377f5e791fb7529bb807366a8f0fba1648e3b30904eb809
BLAKE2b-256 checksum
How to use checksums
53d544db4e8c24526fc7368bb7377f3fcff366ef714b4c9d73dfaf4b3a3b3bd8
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.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page