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)
Webtools Graveyard
Bonsai
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: justdave, Assigned: justdave)
Details
Attachments
(1 file, 1 obsolete file)
|
2.71 KB,
patch
|
bear
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•19 years ago
|
||
Attachment #252433 -
Flags: review?(bear)
Comment 2•19 years ago
|
||
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-
| Assignee | ||
Comment 3•19 years ago
|
||
Good catch!
Attachment #252433 -
Attachment is obsolete: true
Attachment #252434 -
Flags: review?(bear)
Updated•19 years ago
|
Attachment #252434 -
Flags: review?(bear) → review+
| Assignee | ||
Comment 4•19 years ago
|
||
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
Updated•10 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•