Secret Validation Rules

Create a Secret Rotations Validation Rule for the specified project.

post/api/v1/secret-validation-rules/secret-rotations

Request body

namestring required

The name of the Secret Rotations Validation Rule to create.

projectIdstring required

The ID of the project to create the Secret Rotations Validation Rule in.

descriptionstring nullable

An optional description of the Secret Rotations Validation Rule.

environmentstring

The slug of the environment to scope this rule to. Omit to enforce the rule in every environment of the project.

secretPathstring required

The secret path to scope this rule to. Supports glob patterns such as /apps/**.

isActiveboolean

Whether the rule is enforced. An inactive rule is kept but ignored.

providersstring[] required

The secret rotation providers this rule applies to. A rotation is only constrained when its provider is listed here.

Response

Default Response

Changes

Changed in 1 of the 38 revisions of this API.1