Skip to content

Fargate phase fails if Secrets Manager generates a password containing a ` character #1

@TonyFNZ

Description

@TonyFNZ

RDS MySQL database passwords can contain as a valid character, so Secrets Manager includes the char as an option when executing the password rotation.

If by random chance a ` char is added to the database password, then ecs.sh (running within the Fargate task) will fail with a Bash syntax error. As a result the TASKDEF_SECRET environment varibale is not set and the user is unable to connect to the database via mysql.newway.sh

In theory it should be possible to escape the backtick character when it is being handled in ecs.sh

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