Skip to content

Create REST API endpoint to update project security settings

Overview

As we built out Secret Push Protection and took it through an experimental and beta phases, we had a number of gaps in our API support for the feature. We want to address one of those gaps by creating a REST API endpoint to update project security settings.

Please note that no REST API endpoints currently exist for project security settings at all.

In this issue, we only aim to add an endpoint to update those records. Specifically, this endpoint will focus only on updating pre_receive_secret_detection_enabled because the other ones will need more investigating about the extent of their impact.

Proposal

To address this gap, one could possibly:

  • Create a REST API endpoint to allow updating project security settings (see similar example).
  • Create corresponding documentation for the new Project Security Settings API endpoint.
Edited by Radu Birsan