summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Center modals and fix sizingbeccabroek2019-03-262-23/+25
| | | | | | | | | | | | | | | | | | Previously the modals were not centered on the screen and the size of the modal was set to 50% of the screen, leading to a lot of white space within modals with less content. This sizes the modal based on the amount of content within and centers the modal. Also adds the grey modal overlay to the 'confirm network settings' modal to be consistent with the other pages. Resolves openbmc/phosphor-webui#35 Tested: Viewed all modals currently in GUI (Firmware page, network page, and overview page) and modals were sized correctly and appeared with the modal overlay in the background. Change-Id: Ie35d179810d36b8bcbbf39dc1302e773387fa788 Signed-off-by: beccabroek <beccabroek@gmail.com>
* WebUI: Adding Filters support to system logsAppaRao Puli2019-03-196-25/+183
| | | | | | | | | | | | | | Adding Filter support to system logs page - Severity filter. - Date filter with start and end date. - Filter by Sensort Type. Tested By: Loaded System logs page with type selection 'Event' and check all filters. Change-Id: I41eba4cd59c0f3c2933637bf0e207a3eca3214f1 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* WebUI system logs implementationAppaRao Puli2019-03-1910-10/+616
| | | | | | | | | | | | | | | | | | | | This commit implements the webui logs page which will show all system logs depends on user selection( SEL or Event or Oem). This is based out of redfish systems log services. - View logs with pagination. - Search filter for logs view. - Sort option with Type, Id, Severity, Date. - Clear logs. - Export logs. UnitTest: - Existing bmcweb send the system logs of EntryType "Event". So Loaded UI, selected Type "Event" and validated all the above mentioned operations. Change-Id: I0384e475f7913ca66b6db5d64831583fb382f8d5 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* Checkbox disabled when 0 event logsbeccabroek2019-03-182-1/+8
| | | | | | | | | | | | | | | | | The 'select all' box on event log page should be disabled when there are no event logs presented to the user. Also adds a message to the user when there are no logs or there are no logs with their selected filters applied. Resolves openbmc/phosphor-webui#44 Tested: Checked that correct user message appears when there are no logs and when the logs are all filtered out. Also that when there are no logs presented to the user, the select all box is disabled. Change-Id: I3106426a72d2148a323ceed978bcdd5515096e2b Signed-off-by: beccabroek <beccabroek@gmail.com>
* Secondary button text colorbeccabroek2019-03-111-1/+1
| | | | | | | | | Changes color of secondary button text to be more readable. Resolves openbmc/phosphor-webui#66 Change-Id: I3d7622a3556139a8c984590bcc8db5c34cefc73e Signed-off-by: beccabroek <beccabroek@gmail.com>
* Set SOL Screen dynamicallyYang Cheng2019-03-063-3/+46
| | | | | | | | | | | | | | | | | | | | | | | To make EWS SOL Screen size match the real BIOS console, need to set the screen dynamically. Web page get terminal resolution from config.json and calculate frame width and height base on the resolution and fontsize. Web page use this width and height to change the screen size. If no related configuration in config.json the SOL Screen will keep the original size before this code change. Tested By: Add "customConsoleDisplaySize": {"width": 100, "height": 32} to config.json, and open EWS Server Serial over LAN console page, the size of console client can match 100*32 characters. Set console redirection to 100*32 in BIOS setup page, the page show correctly in this SOL client in EWS. After enter OS, the linux console can show correctly in SOL client. After remove "customConsoleDisplaySize" in config.json, the size of console client in EWS show the same as the code change in this patch. Change-Id: I09bfe4e67db1387abcd57ee3a13b912957cf95b0 Signed-off-by: Yang Cheng <cheng.c.yang@linux.intel.com>
* Hardware: Filter out associationsGunnar Mills2019-03-051-0/+7
| | | | | | | | | | | | | | | Don't display associations on the "Hardware status" page. All and only associations have the "endpoints" property, use this is to filter. An example of an association is from the BMC inventory item to BMC software images. Tested: Loaded on a Witherspoon and no longer see the "Activation" item on the page. This "Activation" item was an association. All other items appear as normal. Change-Id: I6e6e24737b0a19e91dbd7eb691dd3d78f1b4c12c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add Custom Key for SOL on webuiYang Cheng2019-03-042-0/+139
| | | | | | | | | | | | | | | | | | | | | | To support VT100+ extensions for SOL on webui, add custom key into xtermjs to handle key Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12. Tested By: After added item "customKeyEnable": true, "keyType" : "VT100+" into iconfig.json. Under EFI SHELL: Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12 keys can work as local keyboard in Web SOL. Under linux with $TERM=vt100+: Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12 keys can work as local keyboard in Web SOL. If not add "customKeyEnable" or "keyType", into config.json, Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12 keys can work correctly in linux OS with $TERM=vt220 in SOL. Other keys such as a-z can always work in SOL no matter "customKeyEnable" or "keyType" is inserted into config.json. Change-Id: Ifb196ec37080781033c0d6a3b0688baa7d0080b5 Signed-off-by: Cheng C Yang <cheng.c.yang@linux.intel.com>
* Fix inventory dropdownbeccabroek2019-02-262-186/+98
| | | | | | | | | | | | | Dropdown on hardware page was cutting off text. Changes styling so that table is in line and all information is displayed as expected. If information exceeds dropdown size, a scroll bar appears. Tested: Appears to be displaying correctly using Chrome, Firefox and Safari. Change-Id: Ib1531c59865a7d7bf4ea1ded7277702e9cd53b8b Signed-off-by: beccabroek <beccabroek@gmail.com>
* Clean up headersbeccabroek2019-02-1919-71/+48
| | | | | | | | | | | | | | Updates headers to match style guide and makes them consistent throughout pages in the GUI. Removes instances where a header element existed and a different header style was being applied. For example, <h2 class="h4"> Tested: Ran GUI locally and verified that headers look consistent and have the appropriate sizing while using Chrome, Firefox and Safari. Change-Id: I187136298ed2bfd36c40c2b80d5a4f20947cbe56 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Fix layout for responsive design: HeaderRyan Arnell2019-02-152-9/+11
| | | | | | | | | Get rid of "BMC host/IP address" & "server info" text, make the buttons tighter and make more buttons visible in header so that the information is more useful to users in tablet view. Change-Id: I6b4166390b1828fca265e7bb56f51106b4e6f21b Signed-off-by: Ryan Arnell <iffy.ryan@ibm.com>
* Remove angular-websocket dependencyGunnar Mills2019-02-142-29/+0
| | | | | | | | | | | | | The WebUI does not use angular-websocket for websockets instead uses https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket https://github.com/openbmc/phosphor-webui/blob/457ca04073ff10cb1df2e7c5ab5192430a2ac6a9/app/common/directives/serial-console.js#L38 This unused dependency was found with depcheck. Tested: Built this code and loaded it onto a Witherspoon. Still see the SOL console. Change-Id: Iffc1f31f94ae0ff5bf7173d06208b1c7bef6ca2a Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Make default redfishSupportEnabledGunnar Mills2019-02-141-1/+1
| | | | | | | | | | | | | | | | | redfishSupportEnabled now defaults to true. The standard rest-server is bmcweb which has redfish support included. Creating a new user and chanding a users password on the user management does not work with redfishSupportEnabled = false. This is due to neither bmcweb or phosphor-rest-server having a SetPassword API. Resolves openbmc/openbmc#3454 Tested: The user management page on Witherspoon. Change-Id: I35f6b6b644cddb4135ff5b41c3a3b74134eb6ecb Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* NPM updateGunnar Mills2019-02-142-173/+376
| | | | | | | | | | | | | | | | | | | Observed this security vulnerability in the phosphor-webui repo on GitHub: "We found a potential security vulnerability in one of your dependencies. lodash vulnerability found in package-lock.json Upgrade lodash to version 4.17.11 or later." See https://nvd.nist.gov/vuln/detail/CVE-2018-16487 for more information. Ran "NPM update" && "npm install lodash@latest --save". Tested: Built the GUI and loaded it on a Witherspoon. No regressions observed Change-Id: I0b848a6aedea699a1b1a26f58c342ff781618a3d Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Fix login and overview pages in Safaribeccabroek2019-02-121-1/+1
| | | | | | | | | | | | | | Bootstrap 4 columns in Safari are not working as expected, causing issues with the layout on the login and overview pages. Small CSS change resolves issue, see https://github.com/twbs/bootstrap/issues/24219 Tested: Layout appears to be fixed using Safari. No pages are affected visually by the change when using Chrome or Firefox. Change-Id: I79bf6ef3734703e4f610ee7f95b75625538761c2 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Add role alert to toastsbeccabroek2019-02-0610-57/+82
| | | | | | | | | | For accessibility reasons, 'role="alert" is required for toast messages. This notifies screen readers that an error or success message has appeared. Adds a service layer for toast messages that adds the role attribute to the message. Change-Id: Ic4dbf5556337eea589de5692c1b4c3323e771813 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Form validation on login pagebeccabroek2019-02-0211-123/+81
| | | | | | | | | | | | | | | | | | Using ngMessages, adds form validation to login page. Also creates a directive, hasError, to be used to validate form field by passing in a boolean. This is a proposed pattern to be used moving forward, as form validation is added to additional pages. Validation error messages are shown on $touched and on submit. Unreachable Server and Invalid username and password error messages remain until input is no longer $pristine after form submission. In addition, this removes unneeded and unused css styling Resolves openbmc/phosphor-webui#47 Change-Id: I7a067af67ac74d4cf2977d10f66445720ecae9eb Signed-off-by: beccabroek <beccabroek@gmail.com>
* Fix table headerIftekharul Islam2019-01-304-6/+21
| | | | | | | | | | Makes the table header in sensor page stay fixed after scrolling. Fixes the allignment of filter button. Resolves openbmc/phosphor-webui#28 Change-Id: If9b8b0848169b5924b811e67588ff57c8dae7c5c Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Add ngMessagesbeccabroek2019-01-293-1/+8
| | | | | | | | | | Brings in the angular ngMessages directive to be used for form validation. Adds 1.057KB to finished javascript package Change-Id: I367672c4871040e92cd530abb6f23a5f86912f5f Signed-off-by: beccabroek <beccabroek@gmail.com>
* Fix issue for responsive design: Login screenRyan Arnell2019-01-292-26/+14
| | | | | | | | | | This push fixes the issue of the logo and input alignment in login screen on tablets portrait and landscape mode. They are centrally aligned in these views. Gets rid of the unwanted horizontal scrollbar in tablets. Change-Id: I31fd9caa881e0ffb6b1cd58701d911ee916dd419 Signed-off-by: Ryan Arnell <iffy.ryan@ibm.com>
* Fix error log resolveGunnar Mills2019-01-283-19/+21
| | | | | | | | | | | | | logging/entry/<entryId>/attr/Resolved is a boolean as such send true when resolving. Before the function was always returning successful, fixed this and log to the console when it fails. Tested: Resolved multiple error logs and see the fail in the console on a fail. Change-Id: I60496f30f9241ffb6b6b73cf87b7481bea10b24f Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* webui: user management bug fixesAppaRao Puli2019-01-233-37/+38
| | | | | | | | | | | | | Bug fixes in user management - Removed granular error messages which is causing issues in non-redfish (rest api) case. - Set default password show button state. - Delete button missing in table issue fix. - Role dropdown not proper issue fix. - Associating label element with 'for' attributes. Change-Id: I6c5bb25837bb2fcbcb131a88060e6acf603ca5a2 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* Firmware: Remove unnecessary promisesGunnar Mills2019-01-231-61/+34
| | | | | | | | | From the firmware functions in api-utils.js, don't create a new promise. Tested: Changed Priority, deleted, and activated images. Change-Id: I53e4def6dda2e1868f65ccd365510cd84d01a065 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add toast to Firmware pagebeccabroek2019-01-236-117/+25
| | | | | | | Replace error and success messages with toast notifications. Change-Id: I6c68568b7c9db4fd1f85b3de843289cf1bfba376 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Add toast to Network Settings pagebeccabroek2019-01-232-45/+43
| | | | | | | | Displays error message if any settings fail to save and success if all succeed on the Network Settings page. Change-Id: Ifddf1822ba59753a217d1ec257b8d0ca870cceed Signed-off-by: beccabroek <beccabroek@gmail.com>
* Add toast to Date Time pagebeccabroek2019-01-212-11/+6
| | | | | Change-Id: I0c0912f9d18fbb170ccf4863366b5973eb25050a Signed-off-by: beccabroek <beccabroek@gmail.com>
* Add toast to LED pagebeccabroek2019-01-212-20/+15
| | | | | | | | Toast error notification alerts user if LED light switch was not successful. Change-Id: I4f7af80276b6fefa93c8d0f0f50f8b28a06bced3 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Add toast to Power Operations pagebeccabroek2019-01-151-42/+9
| | | | | | | | Replaces error messages with tast notifications on the Power Operations page. Change-Id: If92bcb18fc96e9dbd74807faf27feb9c82b6fc59 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Add toast to Power Usage pagebeccabroek2019-01-152-17/+16
| | | | | | | | Replaces success and error messages with tast notifications on the Power Usage page. Change-Id: Id7c3f8d63f932671a72644a740c5f1da1d2f9777 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Add toast notifications to SNMP pagebeccabroek2019-01-158-12/+74
| | | | | | | | | | | | Design team proposed that our error and success messages be delivered as 'toast' messages on the right side of the screen. This brings in ngToast and implements notifications on SNMP page. Notifications will fade after 10 seconds or can be dismissed. https://github.com/tameraydin/ngToast Change-Id: I1053534cd1ab189ae5c2ac07e2a922acea231c70 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Run "npm update"Gunnar Mills2019-01-082-1505/+1054
| | | | | | | | | | | Ran "npm outdated" and noticed we had a lot of outdated packages. Ran "npm update" and then tested. Tested: Launched the dev server and pointed at a Witherspoon. Built the webui and loaded it on a Witherspoon. Did not obverse any regressions. Change-Id: If36efef006f54988a27b897778abd8b45372eb21 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Address webpack-dev-server security vulnerabilityGunnar Mills2019-01-082-813/+467
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although we only use webpack-dev-server for development and this isn't a security vulnerability for us, still going to fix. From GitHub: "We found a potential security vulnerability in one of your dependencies. Remediation Upgrade webpack-dev-server to version 3.1.11 or later." "An issue was discovered in lib/Server.js in webpack-dev-server before 3.1.11. Attackers are able to steal developer's code because the origin of requests is not checked by the WebSocket server, which is used for HMR (Hot Module Replacement). Anyone can receive the HMR message sent by the WebSocket server via a ws://127.0.0.1:8080/ connection from any origin." More information can be found at: https://nvd.nist.gov/vuln/detail/CVE-2018-14732 Edited webpack-dev-server in package.json to be 3.1.11 then did a npm install to create the package-lock.json. Tested: Launched the dev server and pointed it at a Witherspoon. Change-Id: Id6615ce387db8c6e1d2b64ff1e059db9167e11d0 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Removed unused changePassword()Gunnar Mills2019-01-081-31/+0
| | | | | | | | | | | | changePassword in api-utils.js is no longer used. https://github.com/openbmc/phosphor-webui/commit/28711a6ad2cff8277bfa537c3b140caf690ab575 removed the use of it. 28711a6 moved us over to multiple user account management and has its own function to set the user's password (setUserPassword). Change-Id: I4ac4175a33b10f2ae4f89b5e83d6c3ffa2b09912 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Fix RequestedBMCTransition capitalizationGunnar Mills2019-01-041-1/+1
| | | | | | | | | | | The property name is capitalized as RequestedBMCTransition. BMCweb is case sensitive. https://github.com/openbmc/phosphor-dbus-interfaces/blob/f019ea0979ce9d29654e0ce7bfbeb57783c59bd9/xyz/openbmc_project/State/BMC.interface.yaml#L8 Tested: Rebooted a Witherspoon system via GUI. Change-Id: Ie1379125d32d4c8e17aadcac7e0d65c89d49d2bd Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* WebUI: Dynamically get accountService rolesAppaRao Puli2019-01-022-12/+74
| | | | | | | | | | | | | Get the AccountService roles dynamically by calling redfish/rest API's and use them in user management webui. Test: Loaded web page and checked user management page for appropriate roles fetched from dbus. Change-Id: I4f51cb0a622a1be8b0bfec2b2fe3ecdee2538c6a Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* WebUI: User management full implementation.AppaRao Puli2019-01-026-86/+511
| | | | | | | | | | | | | | | | | | | | | | | | Added webui user accounts management. This support both redfish and rest based backend API calls depending on redfishSupportEnabled flag. It does following actions: - View all user list and there properties like name, privilege, enabled state, Locked etc.. - Create new user account. - Delete existing user account. - Update the existing user properties like password, privilege, enabled state. Unit Test: - Viewed all user information is proper or not. - Created new user and validated. - Deleted specific user and checked. - Modified user info and validated the change. All tests are done by enabling and disabling redfishSupportEnabled flag using conifg.json. Change-Id: Ifecf63844dc42c44771509958bf75947a92997ac Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* Enable strict content security policyEd Tanous2018-12-224-30/+103
| | | | | | | | | | | | | | | | | Webpack allows us to define a content security policy that utilizes hashes to define what is, and isn't allowed to execute in the page context. Because we're a single page application, this means that we can effectively defend the whole page with a few extra lines of setup. This does not utilitize _any_ of the unsafe-* calls that content security policy has, which should meet security standards for all uses. Tested By: Launched GUI, observed no functional changes, and watched console for CSP errors. Saw none. Change-Id: I892df1f1b004384943be0ae6e51046054991fd45 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Enable ngSanitizeEd Tanous2018-12-221-1/+1
| | | | | | | | | Previously, we had been pulling in ngSanitize, but were not enabling it. This commit enables ngSanitize to improve our injection prevention. Change-Id: I8a8666efac37da1759b53e5961dad4b63101d3cd Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* webui: enable ngCSPEd Tanous2018-12-222-2/+2
| | | | | | | | | | | | | | | ngCSP allows angular to avoid using inline style and unsafe eval mechanisms. Enabling this will allow us to update to a more stringent content-security policy. for more details, see documentation here: https://docs.angularjs.org/api/ng/directive/ngCsp Tested by: Launching the GUI, and saw no ill effects. Change-Id: I4db732e997c2901d1fe57eee99607007b5e3afec Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Enabling redfish support under configuration.AppaRao Puli2018-12-214-21/+34
| | | | | | | | | | | | | | | | This commit contains: 1) Enabling redfish support under configuration. While loading header, get the redfish root node and sets the redfishSupport configuration param. 2) Depending on redfish support flag, it decide to use redfish URI or REST uri for user password change. Tested: - Tested both redfish enable and dsiable scenarios. Change-Id: I98ecc7f419ddcfdbfac9c212ad2834479e9986b5 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* webui: Fix redfish to use proper stylesEd Tanous2018-12-213-6/+21
| | | | | | | | | | | | Redfish was using inline style tags, which is conflicting with our desire to disable inline styles. This moves the redfish styles to an appropriate SCSS file. Tested by: Launched redfish GUI, and observed no style differences Change-Id: Ifb96730f0d6a34700f8c05666b6963a77d511911 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Remove style tags from svgEd Tanous2018-12-211-4/+4
| | | | | | | | | | | | | | The style tags in the svg inline images will trigger an issue when the browser attempts to interpret them, and flags them as inline-styles (which we want to disallow via policy). This commit removes them, which, given that they shouldn't have been there in the first place, should have no ill effects. Tested By: Launched GUI, observed button behavior did not change Change-Id: I9b6443051fd30770853e589fcd2a7231f85fd082 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Fix issue about menu not disappearing on firmware pageRyan Arnell2018-12-214-2/+32
| | | | | | | | | | | In firmware update page "More info” dialog did not disappear until it is clicked again. With this push users can click anywhere outside the menu and it disappears. Resolves openbmc/phosphor-webui#32 Change-Id: I1519caf2428c702af03fb0e4dd8a08d0c0588abf Signed-off-by: Ryan Arnell <iffy.ryan@ibm.com>
* Make actions visible in a disabled stateIftekharul Islam2018-12-202-3/+12
| | | | | | | | | | | In event log page, main actions are made visible all the time in a disabled state. Once select a log item is selected, the corresponding actions become active. Resolves openbmc/phosphor-webui#26 Change-Id: Idd7dced5984b7d103a706abc12c1e4889710d420 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Fix Server power operations page styleGunnar Mills2018-12-202-4/+5
| | | | | | | | | | | | | | | | On the Server power operations page, need a width: 100% for the "Select a power operation" header. Drop "Row" from power operations div to fix confirm modal being cut off. These are needed because of the move to Bootstrap 4. 84e114a Resolves openbmc/phosphor-webui#51 Change-Id: I7250daf2aed4ce5af7ed5acdf61a65cc38deac72 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* fix date/time representation in national localesAlexander Filippov2018-12-0710-33/+72
| | | | | | | | | | | | | | | | | Added "localeDate" filter to present date and time in preferred format: - the date will be displayed as: 'Dec 3, 2018' - the time will be displayed in locale preferred format. - the timezone will be displayed as abbrev or GMT+/-offset. At the 'Date and Time setting' the time zone name will displayed in long format if it is possible. All text parts of date/time representation will be in English. Resolves: openbmc/phosphor-webui#42 Change-Id: I2fdbb47c62dfc5000039b0c00a20f64a9a389fc6 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
* Remove AngularUtilsbeccabroek2018-12-044-7/+701
| | | | | | | | | | | The AngularUtils library is no longer maintained. This brings the pagination directive used on the log events page into the project and removes it from package.json Resolves openbmc/phosphor-webui#10 Change-Id: I8235ef6ff325c9b0d8440d203816a38ded5d3890 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Remove bower.jsonGunnar Mills2018-12-042-37/+0
| | | | | | | | | | bower.json is an incomplete, outdated package list. Remove it to not confuse people. The current list could not be used to build the app. Tested: npm install && npm run-script build Change-Id: Iae1f9b255eec5027f5e2c1a7d98fd1850addae3f Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Downgrade event-stream package to 3.3.4Gunnar Mills2018-11-272-18/+17
| | | | | | | | | | | | | | | | | From the phosphor-webui alert: "The NPM package flatmap-stream is considered malicious. A malicious actor added this package as a dependency to the NPM event-stream package in versions 3.3.6 and later. Users of event-stream are encouraged to downgrade to the last non-malicious version, 3.3.4." More information can be found at: https://github.com/dominictarr/event-stream/issues/116 https://arstechnica.com/information-technology/2018/11/hacker-backdoors-widely-used-open-source-software-to-steal-bitcoin/ Tested: Manually on a Witherspoon. Change-Id: I2555ee04be69cc42f99cf3a5d18a99a4d5c26324 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* phosphor-webui: Allow after login redirectsEd Tanous2018-11-191-4/+13
| | | | | | | | | | | | | | When redirecting a user to a login url, it is helpful to be able to point them to a url that after login, will forward to the requested page. This is accomplished by the use of a url param named "next" which specifies the URL that the user wants to be redirected to after login. If no next url is specified, the user is redirected to the overview page, like the vehavior before. Change-Id: Iff0da65632119a8f7ae3f35eb74147ca67563f30 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
OpenPOWER on IntegriCloud