Closed
Bug 805872
Opened 12 years ago
Closed 12 years ago
Build a basic UI for BMM
Categories
(Infrastructure & Operations :: RelOps: General, task)
Infrastructure & Operations
RelOps: General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: dustin)
Details
Attachments
(1 file)
3.80 KB,
patch
|
rail
:
review+
|
Details | Diff | Splinter Review |
For dcops
* show all boards
* allow viewing logs
* allow rebooting and reimaging, preferably of groups of boards at a time
This will be a bit tricky given that the API call for a panda must be made to that panda's imaging server. I'll need to learn about cross-origin access.
Assignee | ||
Comment 1•12 years ago
|
||
That's not so hard. Each server's API has to reply with a 'Access-Control-Allow-Origin' header giving the origin from which the request originates. The browser sends an 'Origin' request header giving the originating domain.
My thinking is, let's add an 'allowed_origin_regex' to the config - it will be something like 'mobile-imaging-[0-9]+.p[0-9]+.releng.scl1.mozilla.com' for the moment. Then, when a request comes in, if the Origin header matches the regexp, send the same origin back in the Access-Control-Allow-Origin header.
That will allow JS served from one imaging server to make POST requests to all other imaging servers.
These services aren't authenticated anyway, so XSS is kinda worthless. I don't see a need for too much caution here.
Assignee | ||
Updated•12 years ago
|
Assignee: server-ops-releng → dustin
Assignee | ||
Comment 2•12 years ago
|
||
OK, I have the frontend built, checked in, and released as bmm-0.2.0. Now to deploy with puppet.
Assignee | ||
Comment 3•12 years ago
|
||
Note that this adds a new parameter to supervisord::supervise, too.
Attachment #677515 -
Flags: review?(rail)
Comment 4•12 years ago
|
||
Comment on attachment 677515 [details] [diff] [review]
bug805872.patch
Review of attachment 677515 [details] [diff] [review]:
-----------------------------------------------------------------
Ship it!
Attachment #677515 -
Flags: review?(rail) → review+
Assignee | ||
Comment 5•12 years ago
|
||
That's service! Thanks!
Checked in.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Component: Server Operations: RelEng → RelOps
Product: mozilla.org → Infrastructure & Operations
You need to log in
before you can comment on or make changes to this bug.
Description
•