Closed Bug 367836 Opened 19 years ago Closed 19 years ago

Let the shadowdb connection have its own username and password

Categories

(Webtools Graveyard :: Bonsai, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: justdave, Assigned: justdave)

Details

Attachments

(1 file, 1 obsolete file)

Should have done it this way to begin with... it's only proper to lock down access on the shadow database so that the connection *can't* be used to write to the database. In a fully replicated environment (where the privileges get replicated, too), the only way to do this is to set up a separate username that has the restricted privs, and use that username for the shadow database connection. I did this during the troubleshooting to find out what was writing to the shadowdb in bug 367823, so I could get logged error messages with line numbers and query info when it failed.
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #252433 - Flags: review?(bear)
Comment on attachment 252433 [details] [diff] [review] Patch v1 ConnectToDatabase() needs to pick the correct mysql-related variables based on what dbiparam is chosen. Currently, if shadowdbiparam is empty, it falls back to dbiparam but tries to use shadowmysqluser and shadowmysqlpassword.
Attachment #252433 - Flags: review?(bear) → review-
Attached patch Patch v2Splinter Review
Good catch!
Attachment #252433 - Attachment is obsolete: true
Attachment #252434 - Flags: review?(bear)
Attachment #252434 - Flags: review?(bear) → review+
Checking in defparams.pl; /cvsroot/mozilla/webtools/bonsai/defparams.pl,v <-- defparams.pl new revision: 1.12; previous revision: 1.11 done Checking in globals.pl; /cvsroot/mozilla/webtools/bonsai/globals.pl,v <-- globals.pl new revision: 1.49; previous revision: 1.48 done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: