Protected Environment: `access_level` in `deploy_access_levels` is `null` for users and groups since 15.5
In the GitLab Terraform Provider we detected a regression when we wanted to support 15.5 in our gitlab_project_protected_environment
resource.
Prior to GitLab 15.5 when a user or group is configured in the Allowed to deploy
field the access_level
is automatically set to 40
. This seems no longer to be the case - it's null
now.
For example configuring the following in the UI:
Leads to the following API response for that protected environment:
[
{
"name": "test",
"deploy_access_levels": [
{
"access_level": null,
"access_level_description": "Administrator",
"user_id": 1,
"group_id": null,
"id": 50,
"group_inheritance_type": 0
},
{
"access_level": null,
"access_level_description": "foo",
"user_id": null,
"group_id": 79,
"id": 51,
"group_inheritance_type": 0
}
],
"required_approval_count": 0,
"approval_rules": []
}
]
Note that both access_level
s are now null
.
I wasn't able to find anything related to that change in the release notes / docs.