[9.0] [POC] Pilot legacy logging
BEGINRELEASENOTES
*PilotManagerHandler NEW: POC base on #8233 to manage pilots, and allow legacy pilots to send logs.
ENDRELEASENOTES
Context
DIRAC pilot: Pilot sent by DIRAC with a proxy without a DiracX token embedded in it
Legacy pilot: Pilot sent by DIRAC with a proxy with a DiracX token embedded in it
DiracX pilot: Pilot sent by DiracX with a secret to exchange for a DiracX token
Feature
Connected to:
- https://github.com/DIRACGrid/diracx/pull/596 for DiracX backend supporting pilot management, and legacy logging
- https://github.com/DIRACGrid/Pilot/pull/260 to contact DiracX directly to send logs from a proxy (+ later with a secret)
We can have a legacy pilot:
- Extracting a DiracX token from its proxy (showed by every integration test)
- Sending logs to DiracX
- Refreshing its tokens because it's an user token with a short lifespan
[!IMPORTANT] This PR is not usable in prod as of now.
Pilots DO NOT have tokens in their proxies, so we cannot extract their token from it. https://github.com/DIRACGrid/Pilot/pull/260 is only working as in the CI, pilot proxies are generate via a dirac-proxy-init which embed a DiracX token.
In the SiteDirector, there's no such thing.