Commit ba65619
Core: Pass REST auth manager to S3 signer (#2846)
What does this change do?
- RestCatalog now passes its AuthManager into FileIO so downstream
components can reuse a live token.
- S3V4RestSigner now calls the AuthManager’s auth_header() when no
static token is provided, ensuring the signer gets a fresh bearer token.
- Added a unit test to verify the signer pulls the Authorization header
from an AuthManager.
Why is this needed?
- After the AuthManager refactor, the signer no longer received a token,
causing remote signing to 401 for REST catalog users (e.g.,
Lakekeeper/MinIO). This restores token propagation and refresh.
How was this tested?
- make lint
- make test
- uv run python -m pytest tests/io/test_fsspec.py -k auth_manager -v
Closes #2544
---------
Co-authored-by: Soham <010Soham@users.noreply.github.com>
Co-authored-by: Fokko Driesprong <fokko@apache.org>
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>1 parent 9468ae5 commit ba65619
File tree
4 files changed
+80
-15
lines changed- pyiceberg
- catalog/rest
- io
- tests/io
4 files changed
+80
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 30 | + | |
| 31 | + | |
39 | 32 | | |
40 | 33 | | |
41 | 34 | | |
| |||
61 | 54 | | |
62 | 55 | | |
63 | 56 | | |
64 | | - | |
| 57 | + | |
65 | 58 | | |
66 | 59 | | |
67 | 60 | | |
| |||
335 | 328 | | |
336 | 329 | | |
337 | 330 | | |
| 331 | + | |
338 | 332 | | |
339 | 333 | | |
340 | 334 | | |
| |||
347 | 341 | | |
348 | 342 | | |
349 | 343 | | |
| 344 | + | |
350 | 345 | | |
351 | 346 | | |
352 | 347 | | |
| |||
381 | 376 | | |
382 | 377 | | |
383 | 378 | | |
384 | | - | |
| 379 | + | |
| 380 | + | |
385 | 381 | | |
386 | | - | |
| 382 | + | |
| 383 | + | |
387 | 384 | | |
388 | 385 | | |
389 | 386 | | |
390 | 387 | | |
391 | 388 | | |
392 | 389 | | |
393 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
394 | 397 | | |
395 | 398 | | |
396 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | | - | |
125 | | - | |
126 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
127 | 136 | | |
128 | 137 | | |
129 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
948 | 949 | | |
949 | 950 | | |
950 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
0 commit comments