Add justfile and switch auth to Zitadel Device Code flow

This commit is contained in:
nandi committed 2026-11-18 16:29:51 -08:00
1 parent aaa61ae958
commit 177c65f18e
3 files changed
+470 -235

No files matched your search

+9 -3
View File
@@ -1,11 +1,17 @@
# bao-secret-drop
Minimal, zero-dependency Python 3 webapp for signing in to OpenBao via OIDC and submitting tokens/secrets into KV v2.
Minimal, zero-dependency Python 3 webapp for signing in via Zitadel Device Code (no redirect URI needed) and dropping tokens/secrets into OpenBao KV v2.
## Usage
```bash
bao-secret-drop --host 127.0.0.1 --port 8250
just run
```
Then open `http://localhost:8250/` in your browser, click **Sign in with OIDC**, enter your KV v2 secret path and key/value pairs, and submit.
Or override defaults (`--client-id 400222693598691513`, `--oidc-issuer https://auth.site.latha.org`):
```bash
just run --client-id <your-zitadel-client-id> --oidc-issuer https://auth.site.latha.org --bao-addr https://bao.site.latha.org --auth-mount jwt --role admin
```
Then open `http://localhost:8250/` in your browser, click **Sign in with Zitadel**, approve the displayed device code in Zitadel, enter your KV v2 secret path and key/value pairs, and submit.