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.1.1

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.1.1
File Size Uploaded Provenance Actions
sealform-0.1.1.tar.gz 196.9 kB Without provenance Details for sealform-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 288.5 kB

Release files / sealform-0.1.1.tar.gz

Download URL sealform-0.1.1.tar.gz
Size 196.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9148c21c6cef2b62a0c1d1275826af22ae0a1e6c6b3953c6dea40512b148dedf
BLAKE2b-256 checksum
How to use checksums
7b5fdce022dfeef993fda479ea847fbbcefd27d21b01102fb208d1d2d72e0ff7
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.1-py3-none-any.whl

Download URL sealform-0.1.1-py3-none-any.whl
Size 91.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fe65e178f8304e61af26625a213dab796a0e46fd2093ed3d0d75febec12960f
BLAKE2b-256 checksum
How to use checksums
932e232f9f1e49d12d47f59a69b130bf7753167ebcb4967cae36e638ea47adac
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.1

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