Skip to content

Add access to Secret Push Protection attributes to Query.Project GraphQL API

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem

When using the new Secret Push Protection feature, we'd like to be able to configure that feature using Infrastructure As Code so we can verify that it's present on all projects. In order to add support for the feature to the GitLab Terraform Provider, we need to have a way to retrieve the status of the feature using the API (either REST or GraphQL work).

I'd propose since the feature is primarily enabled at the project level that a new flag be added to the GraphQL Project object so that a user can read the status of the Secret Push Protection feature using GraphQL. This makes the most sense to me, since that feature is already available for update using a GraphQL mutation as opposed to a REST API.

Edited by 🤖 GitLab Bot 🤖