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
Shell completion
rotato supports tab-completion via
argcomplete — including installed
secret names for print/setup and rotator names for refresh (names
only; never secret values).
The register-python-argcomplete generator ships with argcomplete, not rotato,
so uv tool install rotato doesn't put it on PATH — install argcomplete as a
tool too (once), then register rotato in your shell rc:
uv tool install argcomplete
# bash — ~/.bashrc
eval "$(register-python-argcomplete rotato)"
# zsh — ~/.zshrc (with compinit loaded)
eval "$(register-python-argcomplete -s zsh rotato)"
# fish
register-python-argcomplete -s fish rotato > ~/.config/fish/completions/rotato.fish
Then rotato <tab> lists subcommands, rotato print <tab> lists installed
secrets, rotato setup <tab> lists github gitlab git, and so on.
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.
Metadata
Release files for rotato 0.3.0
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 |
|---|---|---|---|---|
| rotato-0.3.0.tar.gz | 20.1 kB | With provenance | Details for rotato-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rotato-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for rotato-0.3.0-py3-none-any.whl |
Total release size: 45.1 kB
Release files / rotato-0.3.0.tar.gz
| Download URL | rotato-0.3.0.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b6ff529c900295bba53cd46676cfc1d737cdc90bacb260d108542b0dcad77e7
|
|
BLAKE2b-256 checksum How to use checksums |
ae399a51f1e6dacc7166ff9384a44c87863d6319da8be0a86ae8a164cc378713
|
| 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 Aug 14, 2026.
Transparency logRelease files / rotato-0.3.0-py3-none-any.whl
| Download URL | rotato-0.3.0-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee9febd971d6d4e433ac0846197c60b1cbb201e6dc3bfafc43de797b1f80eeec
|
|
BLAKE2b-256 checksum How to use checksums |
0c86ab73e07c4f2447f2e24f0b4b5ed9bf003b9ca7ed4c7f6a91844cbf621962
|
| 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 Aug 14, 2026.
Transparency logSecurity for rotato 0.3.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rotato-0.3.0.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 Aug 14, 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.