[MDEV-20125] Redact MYSQL_PWD environment variable under Linux Created: 2019-07-23 Updated: 2020-04-28 Resolved: 2020-04-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Anel Husakovic | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Under Linux, when using the mysql client binary, passing the -the argument vector is world-readable via /proc/$pid/cmdline As a defense-in-depth measure, this change redacts the MYSQL_PWD This change complements how the mysql client deals with To test this change: Create DB test user - say - juser Connect with the command line client, e.g.:
Check (in another terminal) that the environment variable is indeed redacted, e.g.:
|