Skip to content
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

Recommend different build/runtime user ids #231

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

sambhav
Copy link
Member

@sambhav sambhav commented Jun 16, 2021

Signed-off-by: Sambhav Kothari skothari44@bloomberg.net

Signed-off-by: Sambhav Kothari <skothari44@bloomberg.net>
@sambhav sambhav requested a review from a team as a code owner June 16, 2021 17:48
- The image config's `Label` field has the label `io.buildpacks.stack.id` set to the stack ID.
- The image config's `Label` field has the label `io.buildpacks.stack.mixins` set to a JSON array containing mixin names for each mixin applied to the image.
- The image config's `Env` field has the environment variable `PATH` set to a valid set of paths or explicitly set to empty (`PATH=`).

The platform SHOULD ensure that:

- The image config's `User` field is set to a user with a **DIFFERENT** user [†](README.md#operating-system-conventions)UID/[‡](README.md#operating-system-conventions)SID as the build image.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to say anything about the group ID?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I purposely left it out since the RFC recommended they could either be the same as the build stack or different depending on operator use cases, which seemed like too loose to go into the platform spec and instead maybe should go in the docs for operators?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the RFC it's a "recommendation" which to me means we should be using "SHOULD" vs. "MUST".

Suggested change
- The image config's `User` field is set to a user with a **DIFFERENT** user [](README.md#operating-system-conventions)UID/[](README.md#operating-system-conventions)SID as the build image.
- The image config's `User` field is SHOULD be set to a user with a **DIFFERENT** user [](README.md#operating-system-conventions)UID/[](README.md#operating-system-conventions)SID as the build image.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole set of clauses here are under a SHOULD (Line 189/190) which is why I left it out. :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samj1912 oh right, good call. 👍

@ekcasey ekcasey merged commit f44d5a1 into buildpacks:platform/0.7 Jul 7, 2021
@ekcasey ekcasey linked an issue Jul 14, 2021 that may be closed by this pull request
@ekcasey ekcasey added this to the Platform 0.7 milestone Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC 0085] Different build/runtime user ids
7 participants