Skip to content

Add the ability to disable the automatic token rotation

Romuald Atchadé requested to merge token-rotation-configurable into main

What does this MR do?

GitLab Runner presently manages automatic token rotation as the token approaches expiration. However, this approach isn't optimal if token rotation must also be managed in the GitLab Runner Helm Chart and Operator.

As detailed in this comment gitlab-org/gl-openshift/gitlab-runner-operator#186 (comment 1799578058), the most effective approach is outlined. This MR introduces a new feature flag to enable/disable automatic token rotation. Additionally, it implements a warning message to alert users when their token is nearing expiration.

Why was this MR needed?

The implementation made here is the first step toward a better handling of automatic token rotation

What's the best way to test this MR?

TBD

What are the relevant issue numbers?

gitlab-org/gl-openshift/gitlab-runner-operator#186

#37317

Merge request reports