Commit 5a2b521
authored
Prefer KERNEL_INSTANCE_JWT in browser images (#226)
## Summary
- switch the public browser image runtime over to `KERNEL_INSTANCE_JWT`
as the only token contract
- update Envoy bootstrap rendering and the kernel-images API startup
path to assume the generic instance JWT is already present
- remove all `XDS_JWT` references from the public image repo
## Test plan
- `bash -n shared/envoy/init-envoy.sh`
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes the JWT env var contract used to authenticate Envoy xDS
requests; deployments still providing `XDS_JWT` will fail Envoy init
until updated. Scope is limited to bootstrap templating and startup
checks, with no behavioral changes beyond token source.
>
> **Overview**
> Switches Envoy xDS authentication in the browser image runtime from
`XDS_JWT` to `KERNEL_INSTANCE_JWT`.
>
> Updates `shared/envoy/bootstrap.yaml` to send `authorization: Bearer
{KERNEL_INSTANCE_JWT}`, and adjusts `shared/envoy/init-envoy.sh` to
require this env var, map it through a single `INSTANCE_JWT`, and render
the template using the new placeholder (including updated logging).
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
2f18d3e. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 92fdcbd commit 5a2b521
2 files changed
Lines changed: 11 additions & 6 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | | - | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | | - | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
0 commit comments