Git Product home page Git Product logo

Comments (9)

fejta-bot avatar fejta-bot commented on May 24, 2024

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

from minibroker.

troytop avatar troytop commented on May 24, 2024

/remove-lifecycle stale

from minibroker.

fejta-bot avatar fejta-bot commented on May 24, 2024

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

from minibroker.

f0rmiga avatar f0rmiga commented on May 24, 2024

/remove-lifecycle stale

from minibroker.

troytop avatar troytop commented on May 24, 2024

Adding the following in the spec: block of templates/deployment.yaml fixes the issue for me:

    securityContext:
      runAsUser: 0

from minibroker.

troytop avatar troytop commented on May 24, 2024

... but maybe the real fix is to use MustRunAsNonRoot and uncomment these two lines in the Dockerfile:

https://github.com/kubernetes-sigs/minibroker/blob/master/image/Dockerfile#L29

from minibroker.

f0rmiga avatar f0rmiga commented on May 24, 2024

... but maybe the real fix is to use MustRunAsNonRoot and uncomment these two lines in the Dockerfile:

https://github.com/kubernetes-sigs/minibroker/blob/master/image/Dockerfile#L29

The permanent link to the referred lines:
https://github.com/kubernetes-sigs/minibroker/blob/2800c6b4dab59c6bba3a5daa316f981d4dbb6e35/image/Dockerfile#L64-L65

from minibroker.

f0rmiga avatar f0rmiga commented on May 24, 2024

Since we want to keep avoiding any Docker RUN instructions on the final image (because of being able to build from scratch), we should add a file to the repository and just COPY it to the final image layer under /etc/passwd. Something like:

root:x:0:0:root:/root:/bin/bash
minibroker:x:1000:1000::/home/minibroker:/bin/bash

The /home/minibroker will need to be an ephemeral volume (or perhaps just /home/minibroker/.cache. This is because we want to also make the root filesystem read-only.

from minibroker.

f0rmiga avatar f0rmiga commented on May 24, 2024

/kind bug

from minibroker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.