Skip to content

[Security] Removes 'vito' elevation requirement for Composer install#1008

Merged
saeedvaziry merged 1 commit intovitodeploy:3.xfrom
RichardAnderson:feat/composer-elevation
Jan 29, 2026
Merged

[Security] Removes 'vito' elevation requirement for Composer install#1008
saeedvaziry merged 1 commit intovitodeploy:3.xfrom
RichardAnderson:feat/composer-elevation

Conversation

@RichardAnderson
Copy link
Member

This pull request updates the process for installing Composer in the PHP service to improve security and ensure Composer is installed and verified under the correct user context. The most significant changes are in how SSH commands are executed and how Composer is run after installation.

Improvements to Composer installation process:

  • Changed the SSH connection to explicitly use the root user when installing Composer to ensure proper permissions during installation (app/Services/PHP/PHP.php).
  • Updated the Composer installation script to:
    • Remove the use of sudo when running the Composer installer, since the script is now run as root.
    • Run composer --version as the vito user after installation to verify the install and ensure correct user permissions (install-composer.blade.php).

This avoids the requirement for the vito user to have elevated rights for the composer installation. Smaller PRs incoming for where this is noticed.

@saeedvaziry saeedvaziry merged commit 171d756 into vitodeploy:3.x Jan 29, 2026
3 checks passed
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.

2 participants