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]: Issue deploying wireguard easy with password: unexpected character "/" in variable name #4973

Closed
datadrowner opened this issue Jan 26, 2025 · 2 comments

Comments

@datadrowner
Copy link

Error Message and Logs

failed to read /data/coolify/services/d0cg0g8k0g4ossoksowg800s/.env: line 1: unexpected character "/" in variable name "y35924410359244hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG="

Steps to Reproduce

  1. Select the App in wg-easy in the application list
  2. Edit Docker Compose file and add - PASSWORD_HASH=$$2y$$10$$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG to enable password for the webUI
  3. Start the services

Example Repository URL

https://github.com/wg-easy/wg-easy/blob/master/docker-compose.yml

Coolify Version

latest

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04.1 LTS

Additional Information

Hey guys,

I have been trying to deploy the app wg-easy. They use some hash for password for example:
# - PASSWORD_HASH=$$2y$$10$$hBCoykrB95WSzuV4fafBzOHWKu9sbyVa34GJr8VV5R/pIelfEMYyG # (needs double $$, hash of 'foobar123'; see "How_to_generate_an_bcrypt_hash.md" for generate the hash)

Is there some way to circumvent this? Otherwise, would it be possible to add some functionality where this would work? So we can have secure web interfaces.

@datadrowner datadrowner added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Jan 26, 2025
@datadrowner datadrowner changed the title [Bug]: Issue deploying wireguard easy with password [Bug]: Issue deploying wireguard easy with password: unexpected character "/" in variable name Jan 28, 2025
@HachiroSan
Copy link

Had this issue earlier. Checkout the workaround below.

#3946

However, I need to point out that using the solution in the discussion has some quirks. the password hash will keep popping in the environment variables every time you saved the config. This will pose a problem if you have slash '/' in your password hash as there will be an error when you try to deploy the container.

Image

hash used :-
Image

what you need to do is keep generating the password hash until you get password hash that doesn't contain slash like below
Image

this is the workaround I found so far.

Hope it helps

@datadrowner
Copy link
Author

datadrowner commented Jan 31, 2025

OMG worked like a charm... But the bug is dumb xD

@github-actions github-actions bot removed 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Jan 31, 2025
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

No branches or pull requests

2 participants