Closed
Bug 653180
Opened 13 years ago
Closed 13 years ago
[webby] Store http auth credentials for staging servers
Categories
(Webtools Graveyard :: Elmo, defect)
Webtools Graveyard
Elmo
Tracking
(Not tracked)
RESOLVED
FIXED
1.2
People
(Reporter: stas, Assigned: stas)
References
Details
Attachments
(1 file, 3 obsolete files)
2.56 KB,
patch
|
Pike
:
review+
|
Details | Diff | Splinter Review |
...and show them to the logged-in users. This way we don't have to send the creds out via emails to individual localizers.
Assignee | ||
Comment 1•13 years ago
|
||
+ some SQL to run: alter table `webby_project` add `stage_login` varchar(80); alter table `webby_project` add `stage_passwd` varchar(80);
Assignee: nobody → stas
Attachment #528652 -
Flags: review?(gandalf)
Assignee | ||
Comment 2•13 years ago
|
||
Forgot to mention: this patch is created based on the playdoh branch, as we will most likely move to it in the next couple of hours.
Comment 3•13 years ago
|
||
Comment on attachment 528652 [details] [diff] [review] Patch check if the user is logged in
Attachment #528652 -
Flags: review?(gandalf) → review-
Assignee | ||
Comment 4•13 years ago
|
||
I remembered to put this in, and didn't, in the end. Here's the updated patch.
Attachment #528652 -
Attachment is obsolete: true
Attachment #528661 -
Flags: review?(gandalf)
Comment 5•13 years ago
|
||
Comment on attachment 528661 [details] [diff] [review] grrr, new patch Review of attachment 528661 [details] [diff] [review]: good one!
Attachment #528661 -
Flags: review?(gandalf) → review+
Comment 6•13 years ago
|
||
Comment on attachment 528661 [details] [diff] [review] grrr, new patch I wonder if the stage URL could include the user name and password for logged-in users?
Assignee | ||
Comment 7•13 years ago
|
||
Peter suggested that I use schematic migrations to deal with the sql.
Attachment #528661 -
Attachment is obsolete: true
Attachment #528809 -
Flags: review?(peterbe)
Comment 8•13 years ago
|
||
Comment on attachment 528809 [details] [diff] [review] Add migration data Review of attachment 528809 [details] [diff] [review]: r=me
Attachment #528809 -
Flags: review?(peterbe) → review+
Assignee | ||
Comment 9•13 years ago
|
||
As suggested by Axel, this adds the stage_auth_url field. It's the simplest approach, I know I could have probably leveraged stage_url and insert the credentials into it, but since we're only adding projects every couple of weeks, I figured that the benefit wasn't worth putting any more time into this.
Attachment #528809 -
Attachment is obsolete: true
Attachment #528858 -
Flags: review?(l10n)
Comment 10•13 years ago
|
||
Comment on attachment 528858 [details] [diff] [review] Add stage_auth_url field Review of attachment 528858 [details] [diff] [review]: r=me with the permission nit. ::: apps/webby/templates/webby/project.html @@ +99,5 @@ <li><a href="{{project.verbatim_url}}">Verbatim</a></li> <li><a href="{{project.l10n_repo_url}}">L10n repository</a></li> <li><a href="{{project.code_repo_url}}">Project repository</a></li> + <li> + {% if perms.webby.change_weblocale and project.stage_auth_url %} Reading views.py, it seems that add_weblocale is the localizer permission, and change_weblocale is the admin permission. Should be add_locale, thus.
Attachment #528858 -
Flags: review?(l10n) → review+
Assignee | ||
Comment 11•13 years ago
|
||
https://github.com/mozilla/elmo/commit/fcd951e3b56915d51acc048c7d77e8a048f1314f
Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 12•13 years ago
|
||
Axel and I have tested this on /test/, and I would like to deploy this patch on production asap, before we switch to playdoh. This is slightly more involved, so I filed a follow-up bug 653553.
Updated•4 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•