Commit 3c8807f
feat(auth): add static API token support for simple user onboarding
Replace the OAuth2 client_credentials flow with direct API tokens stored
in MySQL. Admins generate tokens via POST /api/v1/tokens (cluster-internal
only) and hand them to users. The auth middleware checks static tokens
before falling back to JWT/OIDC validation.
- Add api_tokens table, token CRUD endpoints (create/list/revoke)
- Modify auth middleware to check static tokens first
- Update quickstart docs to reflect the simpler token flow
- Remove stale onboarding.md (auto-generated, heavily outdated)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 357dd58 commit 3c8807f
6 files changed
Lines changed: 203 additions & 376 deletions
File tree
- rke2/chem/compute-infrastructure
- docs
- k8s-jobs/controller
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 18 | + | |
25 | 19 | | |
26 | 20 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 21 | | |
32 | 22 | | |
33 | 23 | | |
| |||
161 | 151 | | |
162 | 152 | | |
163 | 153 | | |
164 | | - | |
| 154 | + | |
0 commit comments