Skip to content

Fix user in dockerfile #4831

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

Merged
merged 2 commits into from
Jun 5, 2025
Merged

Fix user in dockerfile #4831

merged 2 commits into from
Jun 5, 2025

Conversation

ankur22
Copy link
Contributor

@ankur22 ankur22 commented Jun 5, 2025

What?

Defaults to using user 12345 instead of k6.

Why?

This fix helps those who are working with the image in k8s. Before this change the user had to work with runAsUser in the pod manifest file, which could lead to issues if the correct user wasn't used (which is only 12345). This will mitigate that risk since we default to working with 12345 and not k6.

Checklist

  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests for my changes.
  • I have run linter and tests locally (make check) and all pass.

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the release notes: 451213a
  • I have updated or added an issue to the k6-documentation: grafana/k6-docs#NUMBER if applicable
  • I have updated or added an issue to the TypeScript definitions: grafana/k6-DefinitelyTyped#NUMBER if applicable

Related PR(s)/Issue(s)

#4597

This fix helps those who are working with the image in k8s. Before this
change the user had to work with runAsUser in the pod manifest file,
which could lead to issues if the correct user wasn't used (which is
only 12345). This will mitigate that risk since we default to working
with 12345 and not k6.
@ankur22 ankur22 requested a review from a team as a code owner June 5, 2025 13:45
@ankur22 ankur22 requested review from inancgumus and oleiade and removed request for a team June 5, 2025 13:45
Co-authored-by: Nadia Santalla <roberto@santalla.io>
Copy link
Member

@nadiamoe nadiamoe left a comment

Choose a reason for hiding this comment

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

LGTM!

@ankur22 ankur22 requested review from joanlopez and removed request for oleiade June 5, 2025 14:00
@ankur22 ankur22 added this to the v1.1.0 milestone Jun 5, 2025
@ankur22 ankur22 merged commit 5a19bb5 into master Jun 5, 2025
37 of 38 checks passed
@ankur22 ankur22 deleted the fix/dockerfile-user branch June 5, 2025 15:30
ankur22 added a commit that referenced this pull request Jun 17, 2025
joanlopez added a commit that referenced this pull request Jun 25, 2025
* Base release notes for v1.1.0

* Add release notes for dependabot PRs

* Add #4809 and #4831 into the v1.1.0 release note

* Add #4845 to the v1.1.0 release notes

* Add example for locator.count

* Remove await on expect in count example

* Add section for nth, first and count in v1.1.0...

... release notes.

* Update examples to work with latest test library

This also updates the nth, first and last example.

* Add some PRs from the beginning of the cycle into release notes

* Add external PRs, among others, to release notes

* Clean up stuff from release notes template

* Add remaining PRs into release notes

* Add #4862 to the v1.1.0 release note

* Apply suggestions from code review

Co-authored-by: Mihail Stoykov <312246+mstoykov@users.noreply.github.com>

* Add #4864 to v1.1.0 release notes

* Remove #4862 from v1.1.0

* Apply suggestions from code review

Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>

* web/crypto updates

* Update release notes/v1.1.0.md

Co-authored-by: Mihail Stoykov <312246+mstoykov@users.noreply.github.com>

* docs: document v1.1.0 forward roadmap

* Refine experimental modules notes

---------

Co-authored-by: ankur22 <ankur.agarwal@grafana.com>
Co-authored-by: Mihail Stoykov <312246+mstoykov@users.noreply.github.com>
Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
Co-authored-by: oleiade <theo@crevon.me>
Co-authored-by: Ivan <2103732+codebien@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants