pingcap / pingcap/tidb-binlog

drainer: Support reading downstream password from file

Open
#888 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request status/help-wanted
Dominant language
Go
Stars
291
Forks
131
Avg merge
5m
Merged PRs (30d)
2

Description

Feature Request

The drainer that writes to downstream MySQL/MariaDB/TiDB currently reads the password from a config file or from the MYSQL_PSWD environment variable.

The drainer should also be able to read the downstream password from a file.

This feature will support reading he password from a kubernetes secret.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the drainer's downstream password handling and the MYSQL_PSWD path, then inspect how config-file and environment passwords are read. Done means the drainer can read a password from a file for MySQL, MariaDB, or TiDB downstreams, with the behavior covered by relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, mariadb, mysql
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.