Skip to main content

Terminal report preview

key-rotation-planner

key-rotation-planner turns messy API key and secret inventory notes into a local rotation plan. It reads .env-style comments, CSV, or JSON records, redacts long values, scores stale keys, and produces Markdown, JSON, or HTML reports.

It is designed for teams that track provider keys, webhooks, deploy tokens, and shared credentials across notes or issue comments and need a quick rotation checklist before integrations age out.

Install

pip install key-rotation-planner

Usage

key-rotation-planner examples/secrets-inventory.txt
key-rotation-planner examples/secrets-inventory.txt --format html --output rotation-plan.html
key-rotation-planner examples/secrets-inventory.txt --fail-on-overdue
key-rotation-planner-gui

Inventory lines can be informal:

OPENAI_API_KEY=sk-redacted # service=openai env=prod owner=ai-platform last_rotated=2026-02-12 cadence=60d
STRIPE_WEBHOOK_SECRET=whsec-redacted # service=stripe env=prod owner=billing last_rotated=2026-05-18 cadence=45d
LEGACY_ADMIN_TOKEN=redacted # env=prod last_rotated=2025-12-01

CSV and JSON inputs are also supported with fields such as name, service, owner, environment, last_rotated, and cadence_days.

Output

The planner reports:

  • Overdue, due-soon, healthy, and unknown-age keys.
  • Due dates calculated from last_rotated plus cadence.
  • Owner and production-scope gaps.
  • Risk scores weighted by age, missing owner, production usage, and sensitive service names.
  • Copy-ready next steps for the highest-priority rotations.

Development

python3 -m unittest discover -s tests
python3 -m build --no-isolation
python3 -m twine check dist/*

License

MIT

Metadata

Release files for key-rotation-planner 0.1.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 key-rotation-planner 0.1.0
File Size Uploaded Provenance Actions
key_rotation_planner-0.1.0.tar.gz 11.9 kB Without provenance Details for key_rotation_planner-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for key-rotation-planner 0.1.0
File Interpreter ABI Platform Actions
key_rotation_planner-0.1.0-py3-none-any.whl Python 3 none any Details for key_rotation_planner-0.1.0-py3-none-any.whl

Total release size: 22.9 kB

Release files / key_rotation_planner-0.1.0.tar.gz

Download URL key_rotation_planner-0.1.0.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
242c630d4c6fc11bb2a641828c904abc6a1b73d3ff8ed2e4274bbe7e23462625
BLAKE2b-256 checksum
How to use checksums
b4e7ffabcc0e98d828acc0189361fcb985bd7349c46ed2e72b0d982d397d3b9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / key_rotation_planner-0.1.0-py3-none-any.whl

Download URL key_rotation_planner-0.1.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
678097221fef3e37e7af861ccf84a7f79f7ca096e0d3720c54400aa5b6aa9f6e
BLAKE2b-256 checksum
How to use checksums
e2bd623f27eaccd94247407961620d8d8a96b7be89f9d1ac5167e6c87caeaf70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for key-rotation-planner 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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