📈 GH Trending Explorer 🎲 Surprise me

← all repos

golbin / rekey

git clone https://github.com/golbin/rekey.git

Reissue an API key with one command and update it everywhere it is used (1Password + templates)

+27
stars, 24h · #1,413
+27
stars, 7 days · #6,641
+27
stars, 30 days · #21,572
27
★ total · +27% this week
2
forks · 0 open issues

Star history starts 2026-10-23; the chart appears after the second daily snapshot.

LanguagePython
LicenseMIT
Created2026-10-22 (1d ago)
Last pushtoday
Watchers0
OwnerUser

GitHub topics

Links

README excerpt
**English** · 한국어 · 中文 · 日本語 · Español
# rekey
Reissue an API key with one command, update it everywhere it is used (.env files, Vercel, Railway, Supabase, GCP, GitHub…), and revoke the old one.
 [code] 
- **Finds the keys you forgot.** `rekey init` doesn't rely on memory: it reads every .env file and Vercel, Railway, Supabase and GCP themselves, and groups identical values, so a key copied into twenty places, including a project nobody remembers, becomes one entry. For places it can't read (a teammate's laptop, a third-party dashboard), add one template line once and it is never forgotten again.
- You don't need to know each service. Keys that can be issued by API are handled automatically; for the rest, rekey opens the right page and you just make the key and **copy** it.
- Key values never appear on screen. They live only in 1Password.
- Python 3.11+, standard library only.
- Messages follow your system language (English, 한국어, 中文, 日本語, Español). Set `REKEY_LANG=en` to choose.
## How it works
| What | Where |
|---|---|
| Key values | 1Password: one vault per environment (`Acme - Prod`, `Acme - Dev`, `Acme - Local`), one item per key, named ` . ` |
| Where each key is used, plus plain settings | `targets/ /**.tpl` in your team's private repo |
| Exceptions (locked, tags, notes) | `keys.toml` in your team's private repo |
Templates use 1Password's own syntax, and the file path says where the values go.
 [code] 
## Guides
0. Example team data: see what it looks like, then **Use this template**
1. Setup: 10 minutes
2. Usage
3. Situations: A key leaked · A platform was breached · Someone left the team
## Development
 [code] 
MIT License