Commit 0c959ec
committed
breaking(BA-5650-H): drop owner_access_key from REST v1 session API
REST v1 session endpoints no longer accept owner_access_key. The
delegation field is replaced with owner_id (user UUID) and is honored
only on the three session-creation endpoints
(create_from_template / create_from_params / create_cluster). Read and
control endpoints always act as the authenticated caller.
- common/dto/manager/session/request.py: drop the owner_access_key
field from Create/Destroy/Restart/GetContainerLogs/GetStatusHistory
request DTOs; add owner_id to the three creation DTOs.
- api/rest/session/handler.py: remove all 26 resolve_access_key_scope
calls, drop the AuthProcessors dependency, and renumber log format
placeholders that dropped the owner argument.
- api/rest/v2/session/handler.py: drop the redundant user_ctx /
access_key arguments from shutdown_service / get_logs / update.
- api/adapters/session.py: update adapter call sites accordingly.
- api/rest/tree.py: drop the auth= argument from SessionHandler().
Test updates for the corresponding DTO assertions and component
fixtures are included.1 parent 557b59a commit 0c959ec
10 files changed
Lines changed: 68 additions & 362 deletions
File tree
- changes
- src/ai/backend
- common/dto/manager/session
- manager/api
- adapters
- rest
- session
- v2/session
- tests
- component/session
- unit/common/dto/manager/session
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
359 | 358 | | |
360 | 359 | | |
361 | | - | |
362 | | - | |
363 | 360 | | |
364 | 361 | | |
365 | 362 | | |
| |||
419 | 416 | | |
420 | 417 | | |
421 | 418 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | 419 | | |
427 | 420 | | |
428 | 421 | | |
| |||
441 | 434 | | |
442 | 435 | | |
443 | 436 | | |
444 | | - | |
445 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
| 226 | + | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
853 | 852 | | |
854 | 853 | | |
855 | 854 | | |
856 | 855 | | |
857 | | - | |
858 | 856 | | |
859 | 857 | | |
860 | 858 | | |
| |||
866 | 864 | | |
867 | 865 | | |
868 | 866 | | |
869 | | - | |
870 | 867 | | |
871 | 868 | | |
872 | 869 | | |
873 | 870 | | |
874 | 871 | | |
875 | | - | |
876 | 872 | | |
877 | 873 | | |
878 | 874 | | |
| |||
887 | 883 | | |
888 | 884 | | |
889 | 885 | | |
890 | | - | |
891 | 886 | | |
892 | 887 | | |
893 | 888 | | |
894 | 889 | | |
895 | 890 | | |
896 | 891 | | |
897 | | - | |
898 | 892 | | |
899 | 893 | | |
900 | 894 | | |
| |||
933 | 927 | | |
934 | 928 | | |
935 | 929 | | |
936 | | - | |
| 930 | + | |
937 | 931 | | |
938 | 932 | | |
939 | 933 | | |
940 | 934 | | |
941 | 935 | | |
942 | | - | |
| 936 | + | |
943 | 937 | | |
944 | 938 | | |
945 | 939 | | |
| |||
0 commit comments