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

Special characters in the .env #24

Closed
frogeth opened this issue Dec 16, 2023 · 3 comments · Fixed by #41
Closed

Special characters in the .env #24

frogeth opened this issue Dec 16, 2023 · 3 comments · Fixed by #41
Assignees
Labels
bug Something isn't working p0 critical

Comments

@frogeth
Copy link

frogeth commented Dec 16, 2023

My password for my ECDSA and BLS key had a special character inside. I would opt into EigenDA using ./run.sh opt-in and the password would decrypt properly, but when i would docker compose up i would get the following error:

application failed: could not decrypt the ECDSA file: /app/operator_keys/ecdsa_key.json

The temporary solution at the moment is to leave it as is for the opt-in/opt-out command (without single quotes) and before docker composing up or down I would add single quotes to the .env

Special characters include: ?,! and maybe a few others thats just what i know of.

The solution imo is to just allow the opt-in/opt-out command to support a password with single quotes as to not confuse people onboarding.

@eferbarn
Copy link

The situation gets really bad when there's a parenthesis in the password variable.
In that case, even the temporary solution mentioned doesn't work, and repeatedly displays the following error message:
‍‍./run.sh: 91: ./.env: Syntax error: "(" unexpected

@shrimalmadhur
Copy link
Contributor

Thanks for reporting this issue. I will try to look into what is happening. I am wondering if there's an issue with how docker-compose file reads the password with parentheses.

@shrimalmadhur shrimalmadhur added bug Something isn't working p0 critical labels Dec 19, 2023
@shrimalmadhur shrimalmadhur self-assigned this Dec 19, 2023
@shrimalmadhur
Copy link
Contributor

Have you tried single quotes around password with special characters? Looking at this issue - docker/compose#8607
maybe worth trying and see if it resolves. I will also try on my side when I have some cycles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p0 critical
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants