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]: Hashtag (#) in Env Variable seems to be decoded weirdly #5093

Closed
Julhol-droid opened this issue Feb 8, 2025 · 4 comments
Closed

[Bug]: Hashtag (#) in Env Variable seems to be decoded weirdly #5093

Julhol-droid opened this issue Feb 8, 2025 · 4 comments

Comments

@Julhol-droid
Copy link

Julhol-droid commented Feb 8, 2025

Error Message and Logs

Might have found a bug:

I have set up a docker volume backup with Offen Volumne Backup.
I set the GPG_PASSPHRASE Variable and what i found out that if my Passphrase contains a # it is not possible to decrypt my GPG File afterwards. According to this issue it seems to be a problem with the env file and not the Offen Backup. When i remove the hashtag in the passhrase it works correctly.

Note that my password still has some special characters (*!&@) which are no problem.

Steps to Reproduce

  1. Create a image with docker volumne backup
  2. Setup a GPG_PASSPHRASE variable with a hashtag
  3. Backup some volumne (doesnt really matter)
  4. Copy the created backup to your local machine
  5. Try to decrypt it with gpg

Example Repository URL

No response

Coolify Version

v4.0.0-beta.390

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04

Additional Information

No response

@Julhol-droid Julhol-droid added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Feb 8, 2025
@Julhol-droid
Copy link
Author

Ok it seems that also the Dollar ($) Sign makes problems

@geoMJ
Copy link

geoMJ commented Feb 10, 2025

Have you tried percentage-encoding those characters ? %23 for # and %24 for $. So "mysu#perpass$word" would become "mysu%23perpass%24word". It also depends on how the variables are parsed by the app / tool you are using.

@Julhol-droid
Copy link
Author

No i didn't. Will try it and come back to you

@Julhol-droid
Copy link
Author

Ok this is weird now: it works with a normal # without encoding. However it doesnt work with a Dollar sign (wheter it is envoded or not).

I will close this issue for now.

Its not that big of a deal as i will check, whenever i configure a backup for my volumes, if my backups can be GPG decrypted and restored. I will do this nevertheless.

@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 Feb 12, 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