serving icon indicating copy to clipboard operation
serving copied to clipboard

Run all knative-sample images as non-root

Open kauana opened this issue 2 years ago • 13 comments

/area build /kind good-first-issue

Context

Related issues: #14029 / #14168

As part of the effort to enable secure-pod-defaults by default, we must ensure that all knative-sample images run as non-root. This will ensure that if we decide to enable this feature, it won't disrupt installations for folks doing demos, tests, talks, etc. (note that once this feature is activated, all images will be mandated to run as non-root)

What

Ensure that all images used as knative samples are running as non-root. Please see Knative Serving code samples for a list of all images currently used as samples.

We should also highlight this change in the release notes. This will keep the community informed and allow us to collect feedback to determine if activating secure-pod-defaults by default is indeed the way to go.

kauana avatar Oct 24 '23 18:10 kauana

/assign

karthikmurali60 avatar Oct 26 '23 23:10 karthikmurali60

@kauana I would like to work on this issue. Where can i get started ?

karthikmurali60 avatar Oct 26 '23 23:10 karthikmurali60

Hello @karthikmurali60, thank you for picking this up! Basically we want to update the knative-sample images from here to run as non-root, so one way is to configure the sample images' Dockerfile (Dockerfile example for helloworld-go) to run as a non-root user.

kauana avatar Oct 31 '23 17:10 kauana

Hi everyone, I would like to work on this issue.

Are you still working on it, @karthikmurali60?

prushh avatar Nov 08 '23 22:11 prushh

@prushh yeah i am working on it

karthikmurali60 avatar Nov 13 '23 02:11 karthikmurali60

@kauana can you please review the linked PR - https://github.com/knative/docs/pull/5758 ??

karthikmurali60 avatar Nov 13 '23 03:11 karthikmurali60

Thank you for the PR! I'm looking at it :)

kauana avatar Nov 15 '23 16:11 kauana

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Feb 22 '24 01:02 github-actions[bot]

/remove-lifecycle stale

ReToCode avatar Feb 22 '24 06:02 ReToCode

/unassign karthikmurali60

aliok avatar May 22 '24 12:05 aliok

@kauana Is this issue still needs some work? I am interested.

ayushrakesh avatar Jun 27 '24 03:06 ayushrakesh

Yes it does, check out the https://github.com/knative/docs/pull/5794. There are still open tasks to be resolved, but your work could be started from that.

ReToCode avatar Jul 01 '24 07:07 ReToCode