Skip to content

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

@faizanakram99

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

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