Workspaces MAX_HOURS_BEFORE_TERMINATION Settings
<!-- This template is a great use for issues that are feature::additions or technical tasks for larger issues.--> ### 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](https://gitlab.com/gitlab-org/gitlab/-/blob/v18.4.1-ee/ee/lib/remote_development/workspace_operations/create/personal_access_token_creator.rb?ref_type=tags#L27) 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](https://gitlab.com/gitlab-org/gitlab/-/issues/471994) 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. <!-- Consider adding related issues and epics to this issue. You can also reference the Feature Proposal Template (https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitlab/issue_templates/Feature%20proposal%20-%20detailed.md) for additional details to consider adding to this issue. Additionally, as a data oriented organization, when your feature exits planning breakdown, consider adding the `What does success look like, and how can we measure that?` section. --> <!-- Label reminders Use the following resources to find the appropriate labels: - Use only one tier label choosing the lowest tier this is intended for - https://gitlab.com/gitlab-org/gitlab/-/labels - https://about.gitlab.com/handbook/product/categories/features/ -->
issue