Skip to content

Conversation

@migmartri
Copy link
Member

@migmartri migmartri commented Nov 7, 2025

Summary

Add organization-level setting to control whether workflows and projects can be created implicitly during attestation init. This helps prevent workflow and contract sprawl in automated environments.

When prevent_implicit_workflow_creation is enabled, workflows must be created explicitly via chainloop workflow create.

$ go run main.go org update --name testing-123  --prevent-implicit-workflow-creation=true
$ go run main.go att init --workflow sast --project my-project-2222 --release  --replace
ERR creating workflows during the attestation process is disabled for this organization. Please create them in advance or contact your administrator

Changes

  • Add prevent_implicit_workflow_creation field to organization
  • Add validation in workflow creation to check organization setting
  • Add CLI flag --prevent-implicit-workflow-creation to organization update command

Fixes #2526

Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
@migmartri migmartri requested review from javirln and jiparis and removed request for jiparis November 7, 2025 17:20
@migmartri migmartri marked this pull request as draft November 7, 2025 17:20
@migmartri migmartri requested a review from jiparis November 7, 2025 22:38
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
@migmartri migmartri marked this pull request as ready for review November 7, 2025 23:24
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
@migmartri migmartri changed the title Add organization setting to prevent implicit workflow creation feat: add setting to prevent implicit workflow creation Nov 10, 2025
@migmartri migmartri requested a review from Piskoo November 10, 2025 11:44
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez <miguel@chainloop.dev>
@migmartri migmartri merged commit 957990a into chainloop-dev:main Nov 11, 2025
13 checks passed
@migmartri migmartri deleted the 2526-option-prevent branch November 11, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

option to limit the creation of workflows

2 participants