Skip to content

Support partial ProxySQL configuration merge with runtime password injection #2291

@chinaboard

Description

@chinaboard

Proposal

Description:
Currently, if a user specifies spec.proxysql.configuration, they must provide a complete proxysql.cnf. The entrypoint's password injection via sed doesn't work because the ConfigMap mount is read-only.

Expected behavior:

  • User provides partial config (e.g., just mysql_variables.auto_increment_delay_multiplex=0)
  • Operator merges it with default config
  • Passwords are still injected at runtime

Current behavior:

  • User must provide complete config
  • Password injection fails (read-only mount)

Thanks!

Use-Case

User does:

  1. Partial config merged with defaults, passwords injected at runtime
  proxysql:
    configuration: |
      mysql_variables=
      {
        auto_increment_delay_multiplex=0
      }
  1. Provide full config without hardcoded passwords:
  proxysql:
    configuration: |
      datadir="/var/lib/proxysql"
      admin_variables = { ... }
      mysql_variables = { auto_increment_delay_multiplex=0 ... }

Is this a feature you are interested in implementing yourself?

No

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions