GithubHelp home page GithubHelp logo

Comments (5)

kingcrunch avatar kingcrunch commented on August 18, 2024

You should either use acl or run all commands as the webserver user. The problem is, that there are bundles out there, that still writes into app/cache on it's own, so even if this fixes your current issue, it doesn't prevent you from future ones.

But somehow I agree: As long as its supported, it should at least work 😄

from symfony.

patrickli avatar patrickli commented on August 18, 2024

Yes I actually realized that after reporting this one. I went back and looked at the capistrano2 (capifony) deploy scripts used in some old projects. I was actually executing everything as root and then chown the current release to the owner user.

I think the better way is to configure php-fpm to run as the owner user. That's probably more secure as well.

from symfony.

kingcrunch avatar kingcrunch commented on August 18, 2024

@patrickli Well, still the best way is to use acl 😉 Problem with making the php5-fpm-processes the same user as the checkout is, that now php5-fpm is able to write to the source files as well, which makes it theoretically possble (depending on the application), that some attacker can inject malicious code into the sources directly.

from symfony.

patrickli avatar patrickli commented on August 18, 2024

OK. Thanks for the tip.

from symfony.

peterjmit avatar peterjmit commented on August 18, 2024

Closing - this is something better fixed by server management or a custom task (or using the in-built ACL). Running ACL after cache:warmup could potentially require sudo which I would like to avoid (as the support isn't great in capistrano)

from symfony.

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.