Allow enabling policy enforcement at the workflow contract level

未關閉
#3,762 1 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@migmartri 已經在處理了。

開始於 2026年10月31日。

  • #3761 來自 @migmartri —— 已關閉,未合併

評估

這個 Issue 還沒有評估資料。

描述

component/backend new-policy spec

Today policy enforcement (control gates) can be configured in two places:

  • The organization default (chainloop org update --block), which applies to all contracts in the organization.
  • Each policy or policy group attachment in a contract, with the gate field.

There is no way to enforce all the policies of one contract without setting gate: true on each attachment, or enforcing the whole organization.

This issue proposes a contract-level setting (spec.policies.gate) that enforces all the policies of a contract. Enforcement should only tighten: a lower level (contract, group, or policy attachment) can turn enforcement on, but cannot turn off enforcement that a higher level set. This changes the current documented behavior, where gate: false on an attachment opts out of organization-wide enforcement.

A design spec will follow in docs/specs/.

主要語言
Go
星號
582
分支
61
平均合併
12 小時 47 分鐘
30 天內合併 PR
137

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

chainloop-dev/chainloop 的其他 Issue

查看 chainloop-dev/chainloop 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。