Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Non-root user breaks proxy #4255

Open
Bilge opened this issue Nov 12, 2024 · 0 comments
Open

[Bug]: Non-root user breaks proxy #4255

Bilge opened this issue Nov 12, 2024 · 0 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@Bilge
Copy link
Contributor

Bilge commented Nov 12, 2024

Error Message and Logs

When changing proxy type:

Error: bash: line 2: cd: /data/coolify/proxy/caddy: Permission denied

Steps to Reproduce

  1. Install Coolify as non-root user with sudo access.
  2. Try to change proxy.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.367

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 22.04.3 LTS

Additional Information

Initially these directories are provisioned with the correct 9999:0 permissions, but it seems Coolify (ab)uses its sudo access to set the wrong permissions when provisioning the proxy.

/data/coolify# ll

total 40
drwx------ 10    9999 root    4096 Nov 12 14:12 ./
drwx------  3    9999 root    4096 Nov 12 14:12 ../
drwx------  2    9999 root    4096 Nov 12 14:12 applications/
drwx------  2    9999 root    4096 Nov 12 14:12 backups/
drwx------  2    9999 root    4096 Nov 12 14:12 databases/
drwx------  4 coolify coolify 4096 Nov 12 14:17 proxy/
drwx------  2    9999 root    4096 Nov 12 14:12 services/
drwx------  2    9999 root    4096 Nov 12 14:12 source/
drwx------  4    9999 root    4096 Nov 12 14:13 ssh/
drwx------  2    9999 root    4096 Nov 12 14:12 webhooks-during-maintenance/

Even manually resetting the permissions for this directory has no effect, since Coolify is constantly overwriting them with incorrect ownership, to such an extent that it is actually impossible to start the Caddy proxy at all with a non-root user.

@Bilge Bilge added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Nov 12, 2024
@Bilge Bilge changed the title [Bug]: Non-root user breaks proxy directory permissions [Bug]: Non-root user breaks proxy Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant