-
Notifications
You must be signed in to change notification settings - Fork 16
[$250] Prod - Gitlab tokens expiring in 24 hours #447
Comments
Challenge https://www.topcoder.com/challenges/2740929e-85b2-4e20-bc4f-dab25eab5464 has been created for this ticket. |
@afrisalyp - Any interest in this one? |
GitLab changed how they treat OAuth access tokens that don't expire. Now, access tokens expire in two hours https://docs.gitlab.com/ee/update/deprecations.html#oauth-tokens-without-expiration. |
@gets0ul - Ok, interesting. Can we update the processor to renew them when necessary? |
Challenge https://www.topcoder.com/challenges/2740929e-85b2-4e20-bc4f-dab25eab5464 has been assigned to gets0ul. |
To be able to renew the access token in processor, we need to add the gitlab client id and secret in the topcoder-x-processor itself, is that fine? |
Yes, we'll just make that configurable |
@gets0ul @jmgasper By using this way, it seems that no need to notify the copilot to |
@52cs - Thanks for that - that would also work. I would still like to have the email notification, as a backup. |
@gets0ul You could make it refresh at 1 hours 50 min with refresh_token automatically. |
@52cs Yeah, that's why I want to confirm if we want the user to manually refresh the token by clicking button in setting or automatically. |
@gets0ul But the logic is different. I think we must implement the automatic logic. 2 hours is to short. copilot will be informed and click the button every 2 hour. Last, the revoke functionality must be preserved and maintained correspondingly. |
@gets0ul - Ideally, the token refresh would happen automatically - we don't want to make the copilots go to the site every 2 hours. If the token refresh fails, for some reason, then we can send out the notification email, as a backup. |
Payment task has been updated: https://www.topcoder.com/challenges/2740929e-85b2-4e20-bc4f-dab25eab5464 |
We're seeing this happen in prod, but only recently. The Gitlab tokens assigned to a copilot are only lasting about 24 hours (or less). I'm having to go in and renew my token every day. I'm wondering if Gitlab changed something related to token expiration that we need to investigate.
The text was updated successfully, but these errors were encountered: