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
Add support for user namespaces phase 1 (KEP 127) #111090
Add support for user namespaces phase 1 (KEP 127) #111090
Commits on Aug 2, 2022
-
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for eee5fa8 - Browse repository at this point
Copy the full SHA eee5fa8View commit details -
pkg/apis, staging: add HostUsers to pod spec
It is used to request that a pod runs in a unique user namespace. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com> Co-authored-by: Rodrigo Campos <rodrigoca@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for 9e9b23f - Browse repository at this point
Copy the full SHA 9e9b23fView commit details
Commits on Aug 3, 2022
-
features: add UserNamespacesSupport feature
define a feature gate for the user namespaces support. The feature is not enabled by default. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 482e76d - Browse repository at this point
Copy the full SHA 482e76dView commit details -
apis: add validation for HostUsers
This commit just adds a validation according to KEP-127. We check that only the supported volumes for phase 1 of the KEP are accepted. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for cf8164b - Browse repository at this point
Copy the full SHA cf8164bView commit details -
it is used to allocate and keep track of the unique users ranges assigned to each pod that runs in a user namespace. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com> Co-authored-by: Rodrigo Campos <rodrigoca@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for 6346228 - Browse repository at this point
Copy the full SHA 6346228View commit details -
kubelet: add GetUserNamespaceMappings to RuntimeHelper
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 9b2fc63 - Browse repository at this point
Copy the full SHA 9b2fc63View commit details -
kubelet: add GetHostIDsForPod()
In future commits we will need this to set the user/group of supported volumes of KEP 127 - Phase 1. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for d07c268 - Browse repository at this point
Copy the full SHA d07c268View commit details -
volume: use GetHostIDsForPod()
This commit only changes the UID/GID if user namespaces is enabled. When it is enabled, it changes it so the hostUID and hostGID that are mapped to the currently used UID/GID. This is needed so volumes are created with the hostUID/hostGID and the user inside the container can read them. If user namespaces are disabled for this pod, this is a no-op: there is no user namespace mapping, so the hostUID/hostGID are the same as inside the container. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for 695b30e - Browse repository at this point
Copy the full SHA 695b30eView commit details -
kubelet: propagate errors from namespacesForPod
it is a preparatory change for the next commit. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 67b38ff - Browse repository at this point
Copy the full SHA 67b38ffView commit details -
kubelet: set user namespace options
Set the user namespace options to use for the pod. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for 138e808 - Browse repository at this point
Copy the full SHA 138e808View commit details -
tests: add e2e tests for userns
Co-authored-by: Rodrigo Campos <rodrigoca@microsoft.com> Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for b1eaf6a - Browse repository at this point
Copy the full SHA b1eaf6aView commit details -
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for 8dc98c9 - Browse repository at this point
Copy the full SHA 8dc98c9View commit details