zuul/zuul/driver
Simon Westphahl 9c9d69e058
Fix bug around Github token expiration
Even after increasing the grace time for Github app installation tokens
to 5min we were still seeing exceptions related to expired app tokens.

Upon furhter investigation it turned out that the current grace time had
no effect at all since we passed the *adjusted* expiry time to the
Github client, which takes it at face value and raises an exception if
the expiry time is exceeded.

To fix this we'll store the original expiry time in the token cache and
pass that directly to the Github cliendt. We then adjust the cutoff time
by the 5min grace time when checking if a token should still be
considered valid.

Change-Id: I56f51df1d57e4dd7f1f85eba4af28c2a7318ddd1
2023-05-03 07:26:39 +02:00
..
auth Add support for Microsoft login 2022-02-11 13:53:37 -08:00
bubblewrap Set default SSH_AUTH_SOCK in zuul-bwrap command 2022-09-29 08:41:56 -07:00
elasticsearch Merge "Elasticsearch: filter zuul data from job returned vars" 2023-03-10 01:44:51 +00:00
gerrit Merge "Add Gerrit pipeline trigger requirements" 2023-04-29 21:20:01 +00:00
git Trace Git connection events 2022-09-30 11:19:31 +02:00
github Fix bug around Github token expiration 2023-05-03 07:26:39 +02:00
gitlab Merge "Handle missing diff_refs attribute" 2023-03-01 09:39:22 +00:00
mqtt Don't connect to MQTT broker in zuul-web 2023-03-13 12:47:10 +01:00
nullwrap Log cpu times of ansible executions 2018-07-14 10:32:06 +02:00
pagure Trace Pagure connection events 2022-09-30 11:19:31 +02:00
smtp smtpreporter: Add pipeline to subject 2022-07-29 09:40:57 -05:00
sql Fix prune-database command 2023-03-29 17:12:13 -07:00
timer Set arrival timestamp for timer trigger events 2023-01-26 08:52:47 +01:00
zuul Consider queue settings for topic dependencies 2022-11-30 07:11:10 +01:00
__init__.py Interface to get a driver's trigger event class 2021-03-18 09:23:49 +01:00
util.py Add driver-specific pipeline requirements 2017-05-19 13:24:00 -07:00