-
Notifications
You must be signed in to change notification settings - Fork 124
Add securityContext of ReadOnlyRootFilesystem to steps #1885
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
base: main
Are you sure you want to change the base?
Add securityContext of ReadOnlyRootFilesystem to steps #1885
Conversation
[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.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixing tests after adding the default value |
/retest |
@hasanawad94: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
@sayan-biswas: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
0ae6b68
to
e9878b0
Compare
fefbd3e
to
ecd8d58
Compare
ecd8d58
to
e411479
Compare
Currently working on Image processing part |
67357d6
to
5c69e96
Compare
c95b664
to
6118cea
Compare
0d21d84
to
7f6168c
Compare
Set the root filesystem to read-only for all build and buildstrategy containers as a security best practice. To support this, steps that require write access now explicitly mount `emptyDir` volumes for paths like `/tmp` `/home`. A new `AppendWriteableVolumes` function centralizes the setup for volume mounting , using idempotent helpers (`ensureVolume`, `ensureVolumeMount`) to prevent duplicate entries. The writeable home directory for the steps can be configured using `WRITABLE_HOME_DIR`. Default is value is `/writable-home` Signed-off-by: Hasan Awad <[email protected]>
7f6168c
to
8af9ecd
Compare
@SaschaSchwarze0 You think we can get this into v0.17 as a better security practice ?
|
@SaschaSchwarze0 I want to break this pr into smaller parts to make the review easier |
Changes
Explicitly set readOnlyRootFilesystem to true for taskruns according to security best practice.
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes