Homestyx hydra
Diffusion hydra 8fbb411a9a72

Respect user/pass flags to bin/storage for direct DatabaseRef-based queries

Description

Respect user/pass flags to bin/storage for direct DatabaseRef-based queries

Summary:
Ref T11893. Previously, we excuted all bin/storage queries through StorageManagementAPI objects.

After D16848, we execute some queries through PhabricatorDatabaseRef. However, the refs we use weren't getting passed the -u / -p flags correctly, for specifying alternate administrative credentials.

Test Plan:

  • Created a second account (trunk).
  • Ran bin/storage -u trunk.
  • Made libphutil throw when not connecting as that user.
  • Before patch: some connections incorrectly used the default user, "root".
  • After patch: all connections correctly used the configured user, "trunk".

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11893

Differential Revision: https://secure.phabricator.com/D16901

Details

Provenance
epriestleyAuthored on Nov 19 2016, 11:35 AM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:97cd7a98b1e3: Strip restricted and incomplete handles from the "Mentions" tab on Maniphest…
Branches
Unknown
Tags
Unknown

Event Timeline