[rfc] Separate Chains controller system and userspace identities.
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず docs/sigstore.md の keyless-signing セクションと、proposal の trust-boundary に関する議論を読んでください。実装ファイルやテストは指定されていません。この issue は RFC であるため、進捗には、2 つのサービスアカウントを使用する controller 設計を受け入れるかどうかを決定し、そのデプロイと設定の範囲を定義することが必要です。
索引モデルが issue の本文から書いたものです。
説明
Writing down some thoughts that have been rattling in my head for a bit. Please leave any feedback + comments!
/cc @lcarva @chitrangpatel for explicit feedback, but feedback welcome from everyone.
tl;dr: I think we should separate Chains into 2 separate service account identities: trusted build provenance attestations and untrusted userspace signing.
Background
Chains today will sign 2 types of things:
- Build (i.e. Run) Provenance that it generates itself
- OCI images specified in Run output by user pipelines.
Today, we run Chains in a single reconciler with a single service account and single config - this means that the same key/identity that is used to sign build provenance is also used to sign OCI refs that users output from their pipelines.
This can make it hard to reason about the trust boundary of things Chains signs - especially if clients choose to do unexpected things like have Chains sign an "OCI image" that is actually another provenance document, or something that wasn't actually output by the Pipeline.
Proposal
Split the trust boundary into 2 parts separated by service account:
- tekton-chains (existing service account): service account that outputs trusted system-generated provenance.
- tekton-chains-userspace: service account that outputs "untrusted" (really depends on how much you trust the underlying pipelines) userspace derived signatures.
By separating by service account, we can guarantee distinct identities even with use of keyless signing. The consequence of this means that the controller will need to be split into 2 deployments/configs/etc. (one for each service account), though this also opens up a bunch of possibilities for different Chains deployments such as having a cluster-wide build provenance config (tekton-chains) and configurable namespace/tenant configs (tekton-chains-userspace).
Alternatives
- Remove OCI signing from chains and recommend everyone to sign in their Runs - I think there's value in having the auto-sign behavior, even if it doesn't give you as much metadata as signing within the build itself. I'd like to avoid this.
- Keep things as they are - This is going to be a problem for deployments where the Chains operators don't trust the user pipelines (this came up in a recent Slack thread). I think we need some answer.
- Same controller/service account, different configs / keys - This won't work for keyless signing, since they'd have the same identity.
- 主要言語
- Go
- スター
- 279
- フォーク
- 171
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 70
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tektoncd/chains のほかの issue
-
Add missing fields in `config.md` docs対応中かも @cvas22 が 18 日前に担当しました。 オープンkind/feature lifecycle/frozen
難易度 1/5 1〜3時間 初心者へのやさしさ 65/100
tektoncd/chains#748 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
tektoncd/chains#2024 · リアクション 2 件 ·
メンテナーはふだん 2 日以内に返信
-
Bug: MarkSigned called despite signer-load or format-not-found failures (signed=true with no signature)対応中かも @anithapriyanatarajan が 118 日前に担当しました。 オープンkind/bug
tektoncd/chains#1796 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Warn when non-default TUF mirror URL is configured再び着手できるかも @anithapriyanatarajan が 166 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンkind/feature
tektoncd/chains#1665 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Warn or block when OCI storage uses result-derived registry without storage.oci.repository対応中かも @ahmedbektic が 38 日前に担当しました。 オープンkind/feature
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
tektoncd/chains の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
-
[BUG] EphemeralJob matches every pod in the namespace when spec.selector is empty対応中かも @vishnums2k5 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
openkruise/kruise#2656 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rancher/rancher-ai-mcp#206 ·
メンテナーはふだん 1 日以内に返信
-
test: make command and stdio startup tests portable対応中かも @dajiaohuang が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
mark3labs/mcp-go#1220 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信