I’ve got a python script which sends a customised status back to gitea from a drone build. The script works perfectly from it’s container outside the context of a drone runner, but if the script is run within a drone build the “authorization” header is getting modified.
The script sets the header as:
{'Authorization': 'token 42_this_is_my_token_8b'}
However when I tcpdump the incoming http connection to gitea I get this from my script:
The oauth token matches the other requests drone is sending into my gitea install, so the conclusion I’ve come to is that the drone runner context is somehow messing with the headers on my outgoing requests.