-
Notifications
You must be signed in to change notification settings - Fork 567
CNTRLPLANE-3329: Enable fuse-overlayfs in ARC runner pods via user namespaces #8571
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
Closed
celebdor
wants to merge
1
commit into
openshift:main
from
celebdor:CNTRLPLANE-3329/enable-fuse-overlayfs
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| apiVersion: security.openshift.io/v1 | ||
| kind: SecurityContextConstraints | ||
| metadata: | ||
| name: restricted-v3-fuse | ||
| annotations: | ||
| kubernetes.io/description: >- | ||
| Based on restricted-v3 with minimal changes to enable unprivileged | ||
| FUSE mounts: allows uid 0 and CAP_SYS_ADMIN inside user | ||
| namespaces. userNamespaceLevel: RequirePodLevel ensures these | ||
| privileges only exist inside the user namespace and map to | ||
| unprivileged host identities. | ||
| # Identical to restricted-v3 | ||
| allowHostDirVolumePlugin: false | ||
| allowHostIPC: false | ||
| allowHostNetwork: false | ||
| allowHostPID: false | ||
| allowHostPorts: false | ||
| allowPrivilegeEscalation: false | ||
| allowPrivilegedContainer: false | ||
| readOnlyRootFilesystem: false | ||
| priority: null | ||
| seLinuxContext: | ||
| type: MustRunAs | ||
| seccompProfiles: | ||
| - runtime/default | ||
| userNamespaceLevel: RequirePodLevel | ||
| volumes: | ||
| - configMap | ||
| - csi | ||
| - downwardAPI | ||
| - emptyDir | ||
| - ephemeral | ||
| - image | ||
| - persistentVolumeClaim | ||
| - projected | ||
| - secret | ||
| users: [] | ||
| groups: [] | ||
| # Changed from restricted-v3: allow SYS_ADMIN for FUSE mounts | ||
| allowedCapabilities: | ||
| - NET_BIND_SERVICE | ||
| - SYS_ADMIN | ||
| requiredDropCapabilities: | ||
| - ALL | ||
| # Changed from restricted-v3: allow uid 0 inside user namespace | ||
| runAsUser: | ||
| type: MustRunAsRange | ||
| uidRangeMin: 0 | ||
| uidRangeMax: 65534 | ||
| fsGroup: | ||
| type: MustRunAs | ||
| ranges: | ||
| - min: 0 | ||
| max: 65534 | ||
| supplementalGroups: | ||
| type: MustRunAs | ||
| ranges: | ||
| - min: 0 | ||
| max: 65534 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.