Workspaces MAX_HOURS_BEFORE_TERMINATION Settings
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
We have a self-managed EE GitLab instance with an ultimate license, we have set a max cap for user access tokens at 90 days (reduced from the default 365 days), this is for security reasons.
When trying to implement workspaces we hit the issue that we cannot create a workspace as the access token expires_at is tied to the MAX_HOURS_BEFORE_TERMINATION constant of 8760 meaning we cannot create workspaces on our instance.
Our request is to make workspaces MAX_HOURS_BEFORE_TERMINATION a user provided variable at least on self-managed instances. We are aware of the issue to discuss this change on the wider platform but we are hoping for self-managed this could be implemented.
The issue lies with the fact the PAT token created when a workspace is created is set at 365 days and we have a hard limit on max expiry for PAT tokens at 90. The customer is happy for the max of workspaces to be set at 90 days to align with our max for the PAT token, they aren't looking to set workspaces max expiry at a week, they just cant create workspaces currently.