Skip to content

[Feature]: Bake database password into mysql/mariadb images #137

@svrnm

Description

@svrnm

Problem Statement

When database services are started they need a password to be set, this is normally done by setting the <DB>_ROOT_PASSWORD. The services right now use a hardcoded username & password, set to root:root.

Proposed Solution

We are going to bake the password (root) into the Dockerfile for now. This is obviously not secure, so it is an intermediate solution. Long term we should consider alternatives to that, e.g. using compose/k8s secrets to store and retrieve them, but for now this is good enough since this is for simulated apps in an controlled environment.

Alternatives Considered

We could do a different implementation like with secrets already, or we could ask users to always provide the password in an environment variable, but we would loose some easy of use.

Additional Context

No response

Checklist

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions