Commit a63c2a2
authored
CCDB: handle access to CCDB via security proxy (#15724)
Gate tokens are minted per broker route, so a process facing both the
writable test CCDB and production needs one token per endpoint.
ALICEO2_CCDB_AUTH_TOKENS ("<url>=<tok>;<url>=<tok>") replaces the single
ALICEO2_CCDB_AUTH_TOKEN, and the token is chosen by the URL each request
targets:
* header lists are built inside the hostsPool loops -- built once
outside, every host received the first host's token;
* matching stops at a path boundary, so a missing ".../ccdb-prod" entry
cannot silently fall back to the ".../ccdb" token (an opaque 401);
* CURLOPT_HTTPHEADER is set unconditionally: with per-host lists,
skipping the set would leave a freed list installed on the handle.
Incoming header values are trimmed before reuse: header_callback stores
raw lines, so the ETag kept its CRLF and, spliced into If-None-Match,
ended the request header block early -- dropping the Authorization
header appended after it (401 instead of 304, testCcdbApi.cxx:461).
DeadChannelMapCreator now checks the fetch before reading Valid-From/
Until, so an unreachable CCDB reports instead of throwing out_of_range.
CalDetStreamerTest reads ALICEO2_CCDB_PRODUCTION_HOST (default
unchanged): its pinned timestamp matches the production object, and the
test instance holds a different object at that path.1 parent 0d2ee8b commit a63c2a2
6 files changed
Lines changed: 176 additions & 72 deletions
File tree
- CCDB
- include/CCDB
- src
- Detectors/TPC/baserecsim
- src
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
304 | 309 | | |
305 | 310 | | |
306 | 311 | | |
307 | | - | |
| 312 | + | |
| 313 | + | |
308 | 314 | | |
309 | 315 | | |
310 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
581 | 582 | | |
582 | 583 | | |
583 | 584 | | |
584 | | - | |
| 585 | + | |
585 | 586 | | |
586 | 587 | | |
587 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
368 | 376 | | |
369 | 377 | | |
370 | 378 | | |
| |||
568 | 576 | | |
569 | 577 | | |
570 | 578 | | |
571 | | - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
572 | 582 | | |
573 | 583 | | |
574 | 584 | | |
| |||
729 | 739 | | |
730 | 740 | | |
731 | 741 | | |
732 | | - | |
| 742 | + | |
733 | 743 | | |
734 | 744 | | |
735 | 745 | | |
| |||
0 commit comments