Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Add PodSecurityPolicy #515

Merged
merged 1 commit into from
Jan 7, 2019
Merged

Conversation

danielpeach
Copy link
Contributor

Fixes #509

Proposed Changes

  • Adds PodSecurityPolicy to be used by knative-build components.

Unfortunately, we have to allow build-webhook to run as root (see runAsUser.rule: 'RunAsAny' below), since it serves on 443. Ideally we'd whitelist CAP_NET_BIND_SERVICE and not run as root, but the capabilities option for PodSecurityPolicies does not work as expected: kubernetes/kubernetes#56374.

@imjasonh
Copy link
Member

imjasonh commented Jan 4, 2019

/ok-to-test

@imjasonh
Copy link
Member

imjasonh commented Jan 4, 2019

/lgtm
/approve

@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danielpeach, ImJasonH

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

@danielpeach
Copy link
Contributor Author

/retest

@knative-prow-robot knative-prow-robot merged commit 14db3d4 into knative:master Jan 7, 2019
imjasonh added a commit to imjasonh/pipeline that referenced this pull request Apr 1, 2019
This defines a minimal PodSecurityPolicy needed for Tekton to run on the
cluster. This enables Tekton to run in clusters where PSPs are enforced
and where another more restrictive PSP might be defined elsewhere.

This mirrors knative/build#515
tekton-robot pushed a commit to tektoncd/pipeline that referenced this pull request Apr 2, 2019
This defines a minimal PodSecurityPolicy needed for Tekton to run on the
cluster. This enables Tekton to run in clusters where PSPs are enforced
and where another more restrictive PSP might be defined elsewhere.

This mirrors knative/build#515
vdemeester pushed a commit to vdemeester/knative-build that referenced this pull request Apr 3, 2019
vdemeester pushed a commit to vdemeester/knative-build that referenced this pull request Apr 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants