Commit 34893fa
authored
The `_inject_runtime_key_into_dashboard()` helper and the README's
"Dashboard wiring follow-up" caveat promised that
`LLMTRACE_AUTH_RUNTIME_KEY` would be consumed by a future dashboard
change. Post-merge investigation showed the dashboard only calls the
proxy's `/api/v1/*` admin endpoints (`dashboard/src/lib/api.ts`,
`dashboard/src/lib/proxy-helpers.ts`); no code path consumes the
operator key. The injection was dead weight and the note misled future
contributors.
Changes:
- `lifecycle.py`: delete `_inject_runtime_key_into_dashboard()` and its
call site in `provision()`; update docstrings to describe the actual
two-tier model (admin key in dashboard env; operator key returned in
`TenantInstances.api_key` for the tenant's external apps).
- `README.md`: rewrite the bootstrap step 6 and drop the "Dashboard
wiring follow-up" caveat.
- `configs/examples/starter.yaml`: update the dashboard env comment.
- `tests/test_operator_key_minting.py`: replace the positive runtime-key
assertion with a negative one (`LLMTRACE_AUTH_RUNTIME_KEY not in
dash_create["env"]`) and convert the helper-injection test into an
absence guard (`not hasattr(lifecycle, "_inject_runtime_key_into_dashboard")`)
so the contract is locked in.
Net deletion: dead code + misleading docs gone. All other lifecycle
behaviour (operator key minted and returned, admin key returned,
tenant bootstrap) is untouched.
1 parent 14ab366 commit 34893fa
4 files changed
Lines changed: 32 additions & 47 deletions
File tree
- deployments/basilica
- configs/examples
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
339 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
340 | 344 | | |
341 | 345 | | |
342 | 346 | | |
| |||
418 | 422 | | |
419 | 423 | | |
420 | 424 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | 425 | | |
428 | 426 | | |
429 | 427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
431 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
| |||
493 | 494 | | |
494 | 495 | | |
495 | 496 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | 497 | | |
513 | 498 | | |
514 | 499 | | |
| |||
750 | 735 | | |
751 | 736 | | |
752 | 737 | | |
753 | | - | |
754 | | - | |
755 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
756 | 742 | | |
757 | 743 | | |
758 | 744 | | |
| |||
796 | 782 | | |
797 | 783 | | |
798 | 784 | | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | 785 | | |
803 | 786 | | |
804 | 787 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
| |||
495 | 498 | | |
496 | 499 | | |
497 | 500 | | |
498 | | - | |
| 501 | + | |
| 502 | + | |
499 | 503 | | |
500 | 504 | | |
501 | | - | |
| 505 | + | |
502 | 506 | | |
503 | 507 | | |
504 | 508 | | |
| |||
0 commit comments