Skip to content

Add quotes in Dockerfile cmd line#78

Closed
craddm wants to merge 1 commit intoalan-turing-institute:mainfrom
craddm:quote-env-variable
Closed

Add quotes in Dockerfile cmd line#78
craddm wants to merge 1 commit intoalan-turing-institute:mainfrom
craddm:quote-env-variable

Conversation

@craddm
Copy link
Copy Markdown
Contributor

@craddm craddm commented Feb 24, 2025

Adds quotes around environment variables in the Dockerfile to prevent special characters from causing the healthcheck to faile

Closes #77

@craddm craddm requested a review from JimMadge February 24, 2025 16:00
Copy link
Copy Markdown
Member

@JimMadge JimMadge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. @craddm did you test this with dangerous characters in the password env var?

@craddm
Copy link
Copy Markdown
Contributor Author

craddm commented Feb 24, 2025

Don't think so - what would count as dangerous?

@JimMadge
Copy link
Copy Markdown
Member

Anything that the shell might interpret as a command like >, !, |.

@craddm
Copy link
Copy Markdown
Contributor Author

craddm commented Feb 25, 2025

Hm, I'm not actually able to reproduce the problem locally (via the docker compose variant) so I can't test it...

@JimMadge
Copy link
Copy Markdown
Member

Using the same password that fails in the deployment?

Maybe this isn't the problem.

@craddm
Copy link
Copy Markdown
Contributor Author

craddm commented Feb 26, 2025

Actually, I think you're right and I jumped the gun. The issue appears to be that somehow the admin password variable is empty, suggesting a deployment problem rather than something with this container. Closing this PR and the issue.

@craddm craddm closed this Feb 26, 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

Successfully merging this pull request may close these issues.

Special characters in password causing healthcheck to fail

2 participants