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)

Register a secret on the machine, then use it — no repo checkout required.

# a plain token (e.g. a GitLab PAT)
rotato install <secret-uuid> --name gitlab-pat

# a GitHub App private key (a short-lived installation token is minted on use)
rotato install <pem-uuid> --name gh --github --app-id <id> --installation-id <id>

install records the secret (and, on first run, prompts for this machine's read-only Bitwarden token). Then:

rotato print <name|uuid>            # print the usable credential to stdout
rotato list  secrets               # what's installed here
rotato list  rotators              # rotators this build supports

Wire git to an installed secret (writes a credential helper that calls rotato print, so rotations are picked up automatically):

rotato setup gitlab <name> --user <git-user>    # gitlab.com
rotato setup github <name>                      # github.com (App installation token)
rotato setup git    <name> --user <u> --host <h>  # any git host
git -C <a-repo> ls-remote                        # git now authenticates via Bitwarden

Server side

rotato refresh <rotator-name> runs a rotator (the Cloud Run job entrypoint): read current → rotate at the provider → write back to Bitwarden → verify. ROTATOR env selects the rotator.

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.2.0.tar.gz (18.6 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.2.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rotato-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3b27fdb7283964efd106c0b9b60af8419ed52bc4c53be322173756c1f0c6d288
MD5 6232f2b7e372afc828792bcccc2da9ac
BLAKE2b-256 d74772bad96a21aa0b3ca7fe6cbd3fd2d43af4e05a704b67de0a570fb48227f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for rotato-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: rotato-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aea2876735516302be42df069df0426aaf4bb18e7ec37a43dd1a0ca78a856ea7
MD5 c817163a2a64abf3debec9396ed683be
BLAKE2b-256 6ce6b27851f4d40e6bb2de6627037b4406d0d588c3133bef39400412a399b82a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rotato-0.2.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

This release

0.2.0 This release

2 files

0.1.0

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