Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEP-0089] Add CSI volumes to the Pods which provide the SPIRE workload API #6539

Merged
merged 1 commit into from
May 1, 2023

Conversation

jagathprakash
Copy link
Member

@jagathprakash jagathprakash commented Apr 13, 2023

[TEP-0089] SPIRE for non-falsifiable provenance. Add CSI volumes to the task pods. These volumes provide the SPIRE workload API.

This PR is a part of a larger set of PRs to provide non-falsifiable provenance through SPIRE.
In particular this PR uses the SPIRE infrastructure which has already been merged to sign TaskRunStatus.
It also has support to verify if TaskRunStatus has been modified by another workload between reconciles.

Previously merged PRs are

A tracking bug for this feature is at 6597

Changes

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Apr 13, 2023
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 13, 2023
@jagathprakash
Copy link
Member Author

/kind feature

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 13, 2023
@jagathprakash
Copy link
Member Author

/assign @jerop @chuangw6 @bobcatfish

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/pod.go 91.8% 92.4% 0.5

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/pod.go 91.8% 92.4% 0.5

Copy link
Member

@jerop jerop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update the title to reflect which part of the implementation is done in this PR

pkg/pod/pod.go Show resolved Hide resolved
pkg/pod/pod.go Outdated Show resolved Hide resolved
pkg/pod/pod.go Show resolved Hide resolved
pkg/pod/pod.go Show resolved Hide resolved
pkg/pod/pod.go Outdated Show resolved Hide resolved
pkg/pod/pod.go Outdated Show resolved Hide resolved
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/pod.go 91.8% 92.4% 0.5

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/pod.go 91.8% 92.4% 0.5

pkg/pod/pod_test.go Outdated Show resolved Hide resolved
Copy link
Member

@jerop jerop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jagathprakash please update the PR title, PR description and commit message to reflect the change in this PR only -- right now it seems to imply that it's signing taskrun status but it's only mounting SPIRE's volumes

@jagathprakash jagathprakash changed the title [TEP-0089] SPIRE for non-falsifiable provenance. [TEP-0089] SPIRE for non-falsifiable provenance. Add CSI volumes to the task pods which provide the SPIRE workload api. Apr 17, 2023
@jagathprakash
Copy link
Member Author

nd commit message to reflect the change in this PR only -- right now it seems to imply that it's signing taskrun status but it's only mounting SPIRE's volumes

@jagathprakash please update the PR title, PR description and commit message to reflect the change in this PR only -- right now it seems to imply that it's signing taskrun status but it's only mounting SPIRE's volumes

Modified the title and the description, to indicate that this PR only loads the required CSI volumes.

@jerop jerop changed the title [TEP-0089] SPIRE for non-falsifiable provenance. Add CSI volumes to the task pods which provide the SPIRE workload api. [TEP-0089] Add CSI volumes to the Pods which provide the SPIRE workload API Apr 17, 2023
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/pod.go 91.8% 92.4% 0.5

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/pod.go 91.8% 92.4% 0.5

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/pod.go 91.8% 92.4% 0.5

This PR is a part of a larger set of PRs to provide non-falsifiable provenance through SPIRE.
In particular this PR makes changes to the pod created to run a taskrun.
This pod needs access to SpireApi which is mounted as a CSI volume into the pod.

Signed-off-by: jagathprakash <31057312+jagathprakash@users.noreply.github.com>
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/pod.go 91.8% 92.4% 0.5

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/pod/pod.go 91.8% 92.4% 0.5

@jagathprakash
Copy link
Member Author

@jagathprakash please update the PR title, PR description and commit message to reflect the change in this PR only -- right now it seems to imply that it's signing taskrun status but it's only mounting SPIRE's volumes

Done.

Copy link
Member

@wlynch wlynch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 28, 2023
@wlynch
Copy link
Member

wlynch commented Apr 28, 2023

Up to you if you want to tackle this in this PR or another - I don't think we have any docs for this feature yet.

Also is there an issue we're using to track this work? We should link this PR to it if we can.

@jagathprakash
Copy link
Member Author

Up to you if you want to tackle this in this PR or another - I don't think we have any docs for this feature yet.
We do have a docs/spire.md. Since this does not add a functionality as such, I will update the doc in the PR which adds the functionality.

Also is there an issue we're using to track this work? We should link this PR to it if we can.
I created one.

@chuangw6
Copy link
Member

Can we add #6597 to the PR description and perhaps commit message as well?

Otherwise /lgtm

@jagathprakash
Copy link
Member Author

Can we add #6597 to the PR description and perhaps commit message as well?

Otherwise /lgtm

Added this issue to the PR description.

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jerop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 1, 2023
@tekton-robot tekton-robot merged commit dfa1778 into tektoncd:main May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants