Commit 7f8837f
Document secure Kserve authentication via automated tests (#3056)
* update the kserve tests
Signed-off-by: juliusvonkohout <[email protected]>
* Secure KServe endpoints with oauth2-proxy authentication
This change applies oauth2-proxy authentication to the cluster-local-gateway,
ensuring KServe inference endpoints require proper authentication.
Also adds a predictor-specific AuthorizationPolicy for test workflows.
Fixes #2811
Signed-off-by: madmecodes <[email protected]>
* Fix KServe workflows: use consistent paths, namespace handling, and add wait steps
Signed-off-by: madmecodes <[email protected]>
* Fix Fix KServe auth workflow by ordering components correctly
Signed-off-by: madmecodes <[email protected]>
* Fix order of KF Profile creation after multi-tenancy installation
The Profile CRD needs to be installed via multi-tenancy components
before attempting to create a user profile. This ensures the
kubeflow-user-example-com namespace is properly created for tests.
Signed-off-by: madmecodes <[email protected]>
* test: namespace manual creation Update kserve_m2m_test.yaml workflow
Signed-off-by: madmecodes <[email protected]>
* Update kserve_m2m_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update kserve_m2m_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update kserve_m2m_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update kserve_m2m_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update kserve_m2m_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update kserve_m2m_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update requirements.txt
Signed-off-by: Julius von Kohout <[email protected]>
* update: attempt to Enable secure KServe inferencing with oauth2-proxy authentication
Signed-off-by: madmecodes <[email protected]>
* enable istio-cni
Signed-off-by: Julius von Kohout <[email protected]>
* Update kserve_m2m_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update dex_oauth2-proxy_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Delete tests/gh-actions/deploy-dex-login-environment/kustomization.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update dex_oauth2-proxy_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update dex_oauth2-proxy_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update dex_oauth2-proxy_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update centraldashboard_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update: Istio-cni-1-24 authorizationpolicy to use custom oauth2-proxy in cluster-local-gateway
Signed-off-by: madmecodes <[email protected]>
* Update: kserve_m2m_test.yaml attacker namespace test
Signed-off-by: madmecodes <[email protected]>
* Update: KServe AuthorizationPolicy
Signed-off-by: madmecodes <[email protected]>
* Update: using old KServe AuthorizationPolicy
Signed-off-by: madmecodes <[email protected]>
* Update: Kserve Auth policy namespace access
Signed-off-by: madmecodes <[email protected]>
* Update: fix the label in Auth Policy
Signed-off-by: madmecodes <[email protected]>
* Update: test, kserve_m2m_test using principals not namespaces
Signed-off-by: madmecodes <[email protected]>
* Update kserve_m2m_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
* Update kserve_m2m_test.yaml
Signed-off-by: Julius von Kohout <[email protected]>
---------
Signed-off-by: juliusvonkohout <[email protected]>
Signed-off-by: madmecodes <[email protected]>
Signed-off-by: Julius von Kohout <[email protected]>
Co-authored-by: juliusvonkohout <[email protected]>1 parent 5b20e21 commit 7f8837f
File tree
8 files changed
+232
-100
lines changed- .github/workflows
- apps/kserve/tests
- common
- istio-1-24/cluster-local-gateway/base
- istio-cni-1-24/cluster-local-gateway/base
- tests/gh-actions/deploy-dex-login-environment
8 files changed
+232
-100
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
55 | 68 | | |
56 | 69 | | |
57 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 31 | + | |
| 32 | + | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
43 | 39 | | |
44 | | - | |
45 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
52 | 153 | | |
53 | 154 | | |
54 | 155 | | |
| |||
64 | 165 | | |
65 | 166 | | |
66 | 167 | | |
67 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
68 | 180 | | |
69 | | - | |
70 | 181 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 182 | + | |
74 | 183 | | |
75 | 184 | | |
76 | | - | |
| 185 | + | |
77 | 186 | | |
78 | 187 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
86 | 243 | | |
87 | 244 | | |
88 | 245 | | |
89 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
0 commit comments