Skip to content

Authenticate/authorize the user access with browser cookie in Environment index page

Description

This issue is to implement https://docs.gitlab.com/ee/architecture/blueprints/gitlab_agent_deployments/#fetch-resources-through-user_access.

Task

GitLab frontend authenticate/authorize the user access with browser cookie. If the access is forbidden, frontend shows an error message that You don't have access to an agent that deployed to this environment. Please contact agent administrator if you are allowed in "user_access" in agent config file. See <troubleshooting-doc-link>.

NOTE: Please use GraphQL for fetching agent-id on a specific environment.

Dependency

This feature requires Browser cookie on GitLab frontend to be implemented. The following MRs are to implement the part:

Implementation

Include the KasCookie concern in the related controller so that the cookie is available on the Environments index page.

Edited by Anna Vovchenko