Skip to content

[Bug]: Docker entrypoint sed replacement breaks with special characters in password #463

Description

@faizanakram99

System architecture

Linux

PHP Version

No response

Bug description

The docker entrypoint script docker-entrypoint.sh uses sed to replace username/password placeholders:

  sed -i "s|username|${username}|g" ${exposeConfigPath}
  sed -i "s|password|${password}|g" ${exposeConfigPath}

This breaks when the password contains sed special characters.

Steps to reproduce

  1. Set password environment variable containing &: password=MyPass&#
  2. Start the container
  3. Check the config - password becomes MyPasspassword# instead of MyPass&#

Relevant log output

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions