diff options
| author | Mayank Kumar <mayank.kumar@salesforce.com> | 2017-09-13 13:19:51 -0700 |
|---|---|---|
| committer | Mayank Kumar <mayank.kumar@salesforce.com> | 2017-09-14 09:28:00 -0700 |
| commit | 8b9bc00b19fbddec644370e1bf83e53b43c387ea (patch) | |
| tree | a3d8534f23da2d382e452e5f398de93bdd025bef | |
| parent | 28816c5321ffd93e6717d7cd23d7a177d46173b6 (diff) | |
review comments
| -rw-r--r-- | contributors/design-proposals/runas-groupid.md | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/contributors/design-proposals/runas-groupid.md b/contributors/design-proposals/runas-groupid.md index 1cf95a48..1abcffe6 100644 --- a/contributors/design-proposals/runas-groupid.md +++ b/contributors/design-proposals/runas-groupid.md @@ -153,11 +153,19 @@ Following points should be noted: - `FSGroup` and `SupplementalGroups` will continue to have their old meanings and would be untouched. - The `RunAsGroup` In the SecurityContext will override the `RunAsGroup` in the PodSecurityContext. -- If no `RunAsGroup` is provided in the PodSecurityContext and SecurityContext, the Group provided - in the Docker image will be used. +- If no `RunAsGroup` is provided in the PodSecurityContext and SecurityContext, the Primary Group Id + is decided by the Runtime. Current Runtime behavior is to use 0. - If no `RunAsGroup` is provided in the PodSecurityContext and SecurityContext, and none in the image, the container will run with primary Group as root(0). +Basically, we guarantee to set the values provided by user, and the runtime dictates the rest. + +Here is an example of what gets passed to docker User +- runAsUser set to 9999, runAsGroup set to 9999 -> Config.User set to 9999:9999 +- runAsUser set to 9999, runAsGroup unset -> Config.User set to 9999 -> docker runs you with 9999:0 +- runAsUser unset, runAsGroup set to 9999 -> Config.User set to :9999 -> docker runs you with 0:9999 +This is to keep the behavior backward compatible and as expected. + ## Summary of Changes needed At a high level, the changes classify into: |
