Commit 09310c1
ci(auth): add GitHub Actions workflow for prompts tenant isolation tests (#5758)
## Summary
- Add a new GitHub Actions workflow that provisions K8s service account
tokens via minikube and runs the prompts tenant isolation integration
tests with real `oauth2_token` auth
- Tests use Alice/Bob pattern with separate K8s service accounts
(`ogx-user1`, `ogx-user2`) to verify cross-tenant data isolation
> **Depends on:** #5756 (multi-tenancy core) — merge that PR first, then
rebase this one.
## Test plan
- [x] Workflow YAML validated locally
- [x] Integration test file runs when server is configured with auth
(`tests/integration/responses/test_prompts_access_control.py`)
- [x] Tests skip gracefully when `ALICE_TOKEN`/`BOB_TOKEN` env vars are
not set
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 748cb69 commit 09310c1
3 files changed
Lines changed: 25 additions & 3 deletions
File tree
- .github/workflows
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
221 | 231 | | |
222 | 232 | | |
223 | 233 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
36 | 48 | | |
37 | 49 | | |
| |||
0 commit comments