PlanSeal
Cryptographic approval for saved infrastructure plans.
PlanSeal proves that the Terraform or OpenTofu plan being offered for execution is exactly the plan a human approved: same file, same Git revision, same provider lockfile, and same resource-action scope.
saved plan -> sanitized evidence -> owner signature -> exact-input verification -> apply
PlanSeal is local-first, has no service or account, does not manage cloud
credentials, and does not persist raw plan JSON. Apply is preview-only unless
the operator explicitly supplies --execute.
Why
Saved plans separate review from execution, which is useful for automation and AI-assisted operations. That separation creates a precise question:
Is this still the exact artifact I reviewed?
An approval in chat or a CI button does not, by itself, bind the approval to the plan bytes, source revision, dependency lock, and action list. PlanSeal creates and verifies that binding.
Use PlanSeal when
- a saved Terraform or OpenTofu plan is reviewed separately from execution;
- an owner needs to authorize exact plan bytes and a bounded action scope;
- a local or owner-operated workflow should remain independent of a hosted approval service; or
- automation or an AI agent prepares a plan but must not approve its own work.
Choose another control when
- a managed platform already provides the complete plan/apply approval lifecycle you need;
- you require multi-party approval, hardware-backed signing, remote identity, or centralized policy enforcement; or
- you cannot protect saved plan files and the local owner key appropriately.
Quick start
Requirements: Python 3.11+, Git, and either OpenTofu or Terraform.
pipx install planseal
planseal keygen \
--private-key ~/.config/planseal/owner-private.pem \
--public-key ~/.config/planseal/owner-public.pem
tofu plan -out=change.tfplan
planseal inspect change.tfplan \
--repo . \
--lockfile .terraform.lock.hcl \
--output evidence.json
Review the sanitized evidence, copy its digest from the inspect output, and
approve only the action classes you intend:
planseal approve evidence.json \
--private-key ~/.config/planseal/owner-private.pem \
--allow create,update \
--confirm sha256:REPLACE_WITH_EVIDENCE_DIGEST \
--output certificate.json
Verify all bindings and preview the fixed apply command:
planseal verify \
--evidence evidence.json \
--certificate certificate.json \
--public-key ~/.config/planseal/owner-public.pem \
--plan change.tfplan \
--repo . \
--lockfile .terraform.lock.hcl
planseal apply \
--evidence evidence.json \
--certificate certificate.json \
--public-key ~/.config/planseal/owner-public.pem \
--plan change.tfplan \
--repo . \
--lockfile .terraform.lock.hcl
The last command is a preview. Add --execute only after reviewing its JSON
output. Execution consumes the certificate nonce before starting the saved
plan, so the certificate cannot be reused.
For a credential-free walkthrough, use the minimal synthetic example. To install directly from source instead, see Getting Started.
What evidence contains
{
"actions": [
{"actions": ["update"], "address": "module.edge.example_resource.policy"}
],
"lockfile_checksum": "sha256:...",
"plan_checksum": "sha256:...",
"plan_id": "change.tfplan",
"schema_version": 1,
"source_revision_digest": "sha256:...",
"tool": "opentofu"
}
It intentionally excludes plan values, provider configuration, state, environment variables, credentials, command output, and absolute paths. Resource addresses may still reveal naming conventions; treat evidence as operational metadata.
Security properties
- Ed25519 signatures over canonical JSON.
- Five-minute maximum certificate lifetime.
- Exact plan, source revision, lockfile, and action-scope binding.
- Explicit approval for delete and replacement actions.
- Clean tracked Git worktree required at inspection and verification.
- No shell invocation.
- Preview-first execution.
- SQLite-backed one-time certificate consumption.
- Sanitized machine-readable errors.
Read the threat model before using PlanSeal around sensitive infrastructure.
Project status
PlanSeal v0.1 is an intentionally narrow proof of the exact-artifact approval protocol. Planned follow-up work includes encrypted OS-backed key storage, hardware-backed owner presence, remote receiver profiles, and signed receipts. Those features are not part of the current security claim.
Documentation
Start at the documentation index.
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md, SECURITY.md, and CODE_OF_CONDUCT.md.
License
Metadata
Release files for planseal 0.1.2
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 |
|---|---|---|---|---|
| planseal-0.1.2.tar.gz | 32.0 kB | With provenance | Details for planseal-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| planseal-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for planseal-0.1.2-py3-none-any.whl |
Total release size: 48.8 kB
Release files / planseal-0.1.2.tar.gz
| Download URL | planseal-0.1.2.tar.gz |
|---|---|
| Size | 32.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75575a56ff689b9d13310de2a3ab0479f1ba5034ab938d87eaafbf169b5d4e7c
|
|
BLAKE2b-256 checksum How to use checksums |
8b0b8aeff5e2cfdf9a6b3ebd0cdf5a1354096617b888c4bf8d0f8fda546c6b9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency logRelease files / planseal-0.1.2-py3-none-any.whl
| Download URL | planseal-0.1.2-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57fff65b5af27f18ff5d24505cfa638ec6b915a707f6e5fbec29457a9b897e9d
|
|
BLAKE2b-256 checksum How to use checksums |
5282c312ca4c525be3c4b8a0421ce3911fa64437323be676dc88c38de561d18b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency logSecurity for planseal 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for planseal-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency logA 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.