Skip to content

Commit

Permalink
feat: Use non root user as default user in container image
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Haas <haastimo@gmx.de>
  • Loading branch information
timo-42 committed Feb 7, 2023
1 parent 4bb560e commit 958c15c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
- [#5887](https://github.com/thanos-io/thanos/pull/5887) Tracing: Make sure rate limiting sampler is the default, as was the case in version pre-0.29.0.
- [#5997](https://github.com/thanos-io/thanos/pull/5997) Rule: switch to miekgdns DNS resolver as the default one.
- [#6035](https://github.com/thanos-io/thanos/pull/6035) Replicate: Support all types of matchers to match blocks for replication. Change matcher parameter from string slice to a single string.
- [#6107](https://github.com/thanos-io/thanos/pull/6082) Change default user id in container image from 0(root) to 1001

## [v0.30.2](https://github.com/thanos-io/thanos/tree/release-0.30) - 28.01.2023

Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ LABEL maintainer="The Thanos Authors"

COPY /thanos_tmp_for_docker /bin/thanos

USER 1001
ENTRYPOINT [ "/bin/thanos" ]
1 change: 1 addition & 0 deletions Dockerfile.multi-arch
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ ARG OS="linux"

COPY .build/${OS}-${ARCH}/thanos /bin/thanos

USER 1001
ENTRYPOINT [ "/bin/thanos" ]
1 change: 1 addition & 0 deletions Dockerfile.multi-stage
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ LABEL maintainer="The Thanos Authors"

COPY --from=builder /go/bin/thanos /bin/thanos

USER 1001
ENTRYPOINT [ "/bin/thanos" ]

0 comments on commit 958c15c

Please sign in to comment.