Skip to main content

rotato

Serverless secret/key rotation into Bitwarden Secrets Manager.

A scheduled Cloud Run job rotates an expiring credential (e.g. a GitLab PAT) and writes the fresh value back to Bitwarden. Every machine then fetches the current value on demand, so the secret is never written to disk and rotations are transparent.

Install

uv tool install rotato      # or: pipx install rotato

Consumer usage (laptop / VM)

Bootstrap a machine once — no repo checkout required:

# GitLab PAT (or any Bitwarden token) as a git credential
rotato install <secret-uuid> --user <git-user>

# GitHub App mode: mint a short-lived installation token per git op
rotato install <pem-uuid> --github --app-id <id> --installation-id <id>

install writes this machine's read-only Bitwarden token to ~/.config/rotato/, records a friendly name -> uuid map, and points git's credential helper at rotato. After that:

rotato fetch <name|uuid>          # print a secret's current value, read-only
rotato github-token <name|uuid> --app-id <id> --installation-id <id>
git -C <a-repo> ls-remote         # git now authenticates via Bitwarden

Server side

The rotation job runs as rotato run <rotator-name> (also the container entrypoint); ROTATOR selects the rotator. Deploying the Cloud Run job, scheduler, and alerting is covered in the full documentation.

Documentation

Full design, invariants, deployment, and "add a rotator" guide: README.org.

License

MIT.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rotato-0.1.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rotato-0.1.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file rotato-0.1.0.tar.gz.

File metadata

  • Download URL: rotato-0.1.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rotato-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d5916c50a170722478c04109811fec1e467bb9b52feaaebf8f3dee2729c2abe0
MD5 40d9a1de974fdb129f016691f9eed679
BLAKE2b-256 fdbb77726ba84543bd4185b24e2f0abd1adc647edafcf30a4f2a374bbba36a4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for rotato-0.1.0.tar.gz:

Publisher: publish.yml on gongzhitaao/rotato

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rotato-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rotato-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rotato-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38ce18f56f830037e9cad41095f05e46d309af56384a6d53756607ce03149558
MD5 b86a8135d22afdb5313a02d2be819deb
BLAKE2b-256 2a3f3f672fb1d848b572a4797aeae426f14761c8a087d04d32c69d9c0183daba

See more details on using hashes here.

Provenance

The following attestation bundles were made for rotato-0.1.0-py3-none-any.whl:

Publisher: publish.yml on gongzhitaao/rotato

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.0

2 files

This release

0.1.0 This release

2 files

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