Commit cc449a7
committed
feat(k8s): add inbound TokenReview auth strategy and START/STOP via workload scaling
Add KubeAuthStrategy, an opt-in inbound HTTP auth strategy that validates
caller ServiceAccount bearer tokens through the cluster's
authentication.k8s.io/v1 TokenReview API, registered in the auth registry
when inbound_auth_enabled is set. Implement START_INSTANCES/STOP_INSTANCES
for Deployment and StatefulSet workloads by patching spec.replicas (stopping
scales to zero and archives the prior count; starting restores it); Pod and
Job report the operation as unsupported for their kind.1 parent a63548d commit cc449a7
9 files changed
Lines changed: 1864 additions & 15 deletions
File tree
- src/orb/providers/k8s
- auth
- configuration
- services
- strategy
- tests/providers/k8s/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
9 | 19 | | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
13 | 23 | | |
14 | 24 | | |
| 25 | + | |
15 | 26 | | |
16 | 27 | | |
17 | 28 | | |
| 29 | + | |
18 | 30 | | |
19 | 31 | | |
20 | 32 | | |
| |||
0 commit comments