Introduce the SyncServiceTokenWorker
What does this MR do and why?
Introduce SyncServiceToken Worker
This is part 2. SyncServiceTokenService was introduced in part 1: !136077 (merged)
The SyncServiceToken worker is a Sidekiq CronWorker triggered once per day. It is responsible for refreshing the JWT Service token, by making a request to the Subscription Portal with the license key, then storing the retrieved token in application database.
Related to: https://gitlab.com/gitlab-org/gitlab/-/issues/430847
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.