Description
Is there a reason for the app/etc/
path to be writable during php bin/magento setup:upgrade --keep-generated
?
Looking into Magento\Framework\Setup\FilePermissions
, the getMissingWritableDirectoriesForDbUpgrade asks for app/etc/
to be writable, but it's not clear what is being written to that folder.
My goal is to deploy magento in a read-only environment (except for the var/
folder), for an already installed Magento, so theoretically none of those files should be changed compared to what the CI builds.
Steps to reproduce
- Run chmod 555 app/etc
- Run chmod 444 app/etc/*
- Run ./bin/magento setup:upgrade --keep-generated
Actual Result
Additional Information
please do take also in consideration that it happens for env.php which in a cloud horizontal scaling environment with immutable artefacts deployed (Kubernetes, docker, aws lambda etc) is important to be able to manage it ourselves.
Command to output required changes would greatly help, as we could update the env.php for example in the secret Kubernetes injects and redeploy, the system having all state as it expects.