Skip to content

Protected Environments - Backend

Mayra Cabrera requested to merge 2747-protected-environments-backend-ee into master

What does this MR do?

It includes backend structure for Protected Environments functionality. When building Protected Environments feature (https://gitlab.com/gitlab-org/gitlab-ee/issues/2747) on https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6303, the MR got too big (since it involves changing several parts of the codebase). To facilitate the reviews, we decided to split the original MR in two: one for the backend and another one for the frontend.

CE port https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20859

Are there points in the code the reviewer needs to double check?

Architectural review

Why was this MR needed?

Environments can be used for different scopes, so some of them are just for testing while others are for production. As deploy jobs could be raised by different users with different roles, it is very important that specific environments are "protected" to avoid unauthorized people to affect them. This feature ensures that only people with the right privileges can deploy code to the "protected" environments, keeping them safe.

Does this MR meet the acceptance criteria?

Edited by 🤖 GitLab Bot 🤖

Merge request reports