Repository navigation
Conversation
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2092 +/- ##
==========================================
- Coverage 80.26% 80.23% -0.03%
==========================================
Files 59 59
Lines 3395 3395
==========================================
- Hits 2725 2724 -1
- Misses 668 669 +1
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hi there. A quick check on this proposal: is the trust-model doc something you'd like to take? If there's no interest I'll go ahead and close it in ten days or so, no worries at all, I'd just rather keep the queue here tidy than leave it sitting. |
|
Closing this for now: no answer after the ping, so the branch stays in my fork and I can reopen it if it's wanted. |
|
@paoValle apologise for the delayed response. Thank you for progressing this. Hope you are still ok to contribute to this. Please consider the following points and revisit the PR. I agree a focused trust-model page would help operators understand what a Chains signature does and does not establish. Before merging, could we consider a few points so the guidance matches the implementation? Trust boundary. The status boundary is important: TaskRun status includes results, timestamps, and the resolved TaskSpec snapshot; PipelineRun status includes the PipelineSpec snapshot. Those are inputs to provenance. But status is not the only input: Chains also includes run spec data and resolved definitions/dependencies. Could the doc describe status writers as one critical part of the trust set, alongside run creators, task/pipeline definitions and the configuration that controls signing and verification? See the TaskRun status fields, PipelineRun status fields, and TaskRun run-spec provenance input. RBAC and controller behavior. The ClusterRole does grant status-subresource write verbs, which is worth calling out. However, the statement that Chains “only patches finalizers and labels” doesn’t match normal signing behavior: Chains also writes its annotations, including signing state and stored payload/signature data. Could the text distinguish permissions granted from operations the controller actually performs, and clarify whether the broad status permissions are required or should be considered for least-privilege follow-up? See the ClusterRole and Chains’ annotation handling. OCI destination and credentials. The destination is selected by storage.oci.repository, or otherwise by the artifact’s repository; credentials authorize the write, but don’t choose the destination. Chains resolves registry credentials from the TaskRun’s ServiceAccount mount secrets. Could the doc clarify how an operator can provide credentials that Chains can use but the build cannot? Otherwise, the recommendation to keep those credentials separate may be difficult to apply. Please also retain the sigstore-bundle caveat, where the repository override is ignored. See OCI repository selection, credential resolution, and the encoding-format guidance. SLSA framing. The linked v1.0 levels page is retired; could we update it to the current v1.2 Build track? Please also distinguish the levels: signed provenance alone does not establish Build L2; that level includes a hosted platform generating/signing provenance and consumers validating its authenticity. It would help to say explicitly that Chains can provide evidence toward a level, but does not certify one by itself. Finally, please refresh the branch against current |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
anithapriyanatarajan
left a comment
There was a problem hiding this comment.
Please address the points captured across the doc
Spells out what Chains actually trusts, since that decides what a signed attestation proves: Chains is a post-execution observer, so the boundary is whoever may write TaskRun status, and the results that become provenance subjects are whatever the Task wrote. Covers the rule in this repo's own ClusterRole, why storage.oci.repository is security-critical in a multi-tenant cluster and where sigstore-bundle mode ignores it, and the limit of a SLSA Build L1-L2 style claim: the platform is attested, the content is not verified. Fixes tektoncd#1661 Signed-off-by: Paolo Valle <paovalletta@hotmail.it> Assisted-by: deepseek-v4.1-flash (via pi)
4e338c1 to
d8c7b07
Compare
|
Rebased on The status is one provenance input now, with the run spec and resolver provenance beside it. The RBAC section separates what the role grants from what the controller does: status is read, never written, and what Chains writes are its own |
The status is one provenance input, not the boundary on its own: the run spec and the resolver's provenance are signed too, so the doc names all four parts of the trust set. It also separates what the ClusterRole grants from what the controller does: Chains reads the status and never writes it, and what it writes are its own chains.tekton.dev annotations and finalizers, so the status verbs are a least-privilege follow-up rather than a requirement. The OCI section states how the destination and the credentials are chosen, and that the credential comes from the TaskRun's ServiceAccount, which is the build's own, so a signing identity the build cannot use does not exist today and the separation only holds on the destination. The SLSA section moves to the v1.2 Build track and stops implying that signed provenance is Build L2. Signed-off-by: Paolo Valle <paovalletta@hotmail.it> Assisted-by: deepseek-v4.1-flash (via pi)
d8c7b07 to
3891442
Compare
Changes
Adds
docs/trust-model.md, listed in the setup steps of the README.Chains signs the status of a completed TaskRun and nothing else, so the trust boundary is whoever may write that status. The doc says so explicitly, quotes the rule from this repo's
tekton-chains-controller-cluster-accessClusterRole, and lists what a status writer can influence (build definition, provenance subjects, start and completion times). It then covers Task results being user-controlled, whystorage.oci.repositoryis security-critical on a shared cluster — including the case wheresigstore-bundlemode ignores it — and where the claim stops: the platform is attested, the content is not verified.Fixes #1661
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes