summaryrefslogtreecommitdiff
path: root/src/store
AgeCommit message (Collapse)AuthorFilesLines
4 daysAdd privilege check to power operation buttonHEADmasterAravinth S1-0/+7
Disables power operation buttons for users with "Read-only" privileges. This change ensures that only "Operator" and administrative users can perform power operations, preventing unauthorized actions and enhancing system security. Change-Id: I515ede092cef3c82a110d9534d9f8d3d6afc3135 Signed-off-by: Aravinth S <aravinths@ami.com>
2025-08-08Improved performance in Sensors pageNikhil Ashoka1-1/+38
- The Sensors page takes too long to load, It is because we are trying to call the redfish endpoint: /Sensors' Members one by one and setting in the GUI. The change made is that we are using the query parameters' expand option to call only once and get all the required responses. - We are using query parameters only for those which have MaxLevels>0, else calling the APIs one by one. - Tested: Checked on a p10 system. For 306 records, it used to take 1 minute 20 seconds, now takes 7 seconds to load. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: Ife3447e48d4f5617dcf4563ceac486e4502b2de1
2025-02-04Rename host firmware to bios firmwareShane Lin1-17/+17
Problem: - Host firmware naming was inconsistent with actual functionality Changes: - Rename hostFirmware to biosFirmware in store - Update component names and references - Modify i18n translation keys Tested: - Verified store mutations/actions - Confirmed component rendering - Checked i18n translations - npx eslint without error related to 'host' Change-Id: Ib97e4682f649d4a52f65e69df50422d84f23e916 Signed-off-by: Shane Lin <hslin@nvidia.com>
2025-01-24inventory: move serial console to systemTan Siewert2-3/+3
SerialConsole was deprecated in Manager v1_10_0 and has been removed in bmcweb [1]. Because the SerialConsole values were not available anymore, the Managers were not displayed because "setBmcInfo" couldn't find the "SerialConsole" properties. THe following error will be logged: ``` TypeError: Cannot read properties of undefined (reading 'ConnectTypesSupported') at Wa.setBmcInfo (app.25e72670.js:58:745295) at app.25e72670.js:50:2774 at app.25e72670.js:50:10113 at Array.forEach (<anonymous>) at app.25e72670.js:50:10092 at Wa._withCommit (app.25e72670.js:50:11953) at Wa.commit (app.25e72670.js:50:10066) at Wa.commit (app.25e72670.js:50:9518) at o.commit (app.25e72670.js:50:2216) at app.25e72670.js:58:745747 ``` [1]: https://github.com/openbmc/bmcweb/commit/fa800c8a141aa4b209269e0fb50cae34aa24f75d Tested: BMC manager being listed in the inventory and serial console variables being displayed for the system. Change-Id: I1a24178717805ca50eef2c89042c0bd9ede1d5bc Signed-off-by: Tan Siewert <tan@siewert.io>
2024-12-04Update to api function for MessageIDjason westover1-3/+20
Update to api function for MessageIDs - PaswordChangeRequired This patch is just a small tweak while still assuming the current X.Y.Z version format. When searching for a standard Registry string from @Message.ExtendedInfo -which is an array of Message objects-, we should stick to the default namespace. For example, if someone added OpenBMC.0.5.0.PaswordChangeRequired it could be erroneous to assume that it has the same meaning, since semantically it is a different message. For our use, trying to do something useful with version portion seems problematic, so I am fine with ignoring them as already done with code being updated here. The search function has been made generic to allow reuse, and some IntelliSense sugar was added. Tested, as Paul documented: Tested: logging in, navigating, logging out with non-expired password. Logging in, navigating, then running `passwd -e <accountname>` via ssh leads to functional password change page on the next request and then navigating proceeds normally, and logging out too. If password is expired before logging in the user gets redirected to the password change page automatically after logging in. Change-Id: I306ace2024efea13f25e24528a048d0955b2f95b Signed-off-by: j-westover <jwestover@nvidia.com>
2024-11-07Retrieve role information the Redfish standard wayPaul Fertser2-23/+26
Currently webui-vue has a hardcoded list of pages and sidebar menu items restricted to a specific Redfish role (from a predefined default set). To disallow navigating to restricted pages and to hide disallowed menu items the application needs to know the roles assigned to the session. bmcweb only implements a single role identity per session so the Roles array returned within a Session object always has just one element. This patch changes the mechanism used to retrieve the current role from buggy direct query to AccountService (which can only return information about BMC local users) to extracting it from standard Redfish Session object. In case the role is not available (e.g. when backend implementation predates #Session.v1_7_0.Session) the application assumes Administrator role which is meant as a best effort to continue working given the circumstances. This doesn't pose a security risk because all validation is always performed by the backend itself, so the worst that can happen is end user getting error messages trying to access something without enough privileges. Tested: logging in and out of accounts with different roles without reloading the page, observing the list of queries made, the role variable assignments and presence of the menu items depending on account, navigating to different pages. Also tested reloading the page and confirmed the correct role was retrieved without going through login again. Also tested deleting and mangling localStorage variable sessionURI prior to doing page reload, in those cases redirect to login page was observed. Change-Id: I8b6c84060a987489cc1d35c46c1b00618a88b607 Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-10-04i18n fix after vue3 merge to masterSurya Venkatesan1-1/+1
Fix i18n issue in the Power restore policy, Inventory LEDs, and User management page. After merge the vue3 code to master the i18n Power restore policy, Inventory LEDs, and User management page got conflicts and old code retrieved in master. So unable to render the Power restore policy, Inventory LEDs and unable to disable the user in user management page change the i18n.t method to i18n.global.t for the vue3 support. Change-Id: I46f3f56632308ceaee321dd896e16e922d964b60 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03LDAP and server power operation page fixSurya Venkatesan1-1/+1
In LDAP loading declare outside the form, form validation condition change, server power operation page validation added and i18n method changed in the event log store. Change-Id: I903b4dec7da1a5a2cc8441c65693c57201405d70 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Network page validation and i18n issue fixSurya Venkatesan1-12/+12
In network page invalid if condition changed, added validations and i18n function changed based on the vue 3 support. Change-Id: If5b9c00f6da722984f1c568cfbcb6b34537c3df1 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Vuelidate, I18n, and filter are upgraded to vue3Surya V27-167/+265
While navigating to the pages i18n, vuelidate, and filters errors occurred. i18n, and vuelidate code changes in each page adapted to vue3. Filter global function for date and time format implemented in the main.js file and those files which as called the filter functions. Change-Id: If1a2ee22d47750faef1c35ef2c263299067d9a20 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Upgrade vue3 and all dependenciesEd Tanous2-2/+4
Start the process of porting everything to Vue 3. I have most things working. npm run-scripts build works, npm install works. prettier passes. Styles load, login works, webui loads. This was primarily done using the linked documents below. It makes the following design decisions: 1. Vue is put in compat 2 mode, which allows most of the components to work as-is. 2. Bootstrap v4 is used along with bootstrap-vue to keep our components working. 3. Minor changes are made to load the latest versions of vue-router, vuex, and vue-i18n. I suspect this patchset is good enough to start with, and we can clean up the broken things one patchset at a time. The things that need to happen are: 1. Get remaining features working again. This primiarily is vue-i18n for mixins, and non vue components. This likely needs to be done by not pulling in i18n into the non vue components, then using the .Vue files to do the internationalization in the component context, NOT in the mixin context. Alternatively, we could drop MixIns alltogether. 2. Get custom styles working again. Previously, we used some path hackery in vue.config.js to optionally pre-load styles. This stops working now that we're required to @import our modules. Likely we need some rearangement of the paths such that custom styles are a complete replacement (possibly importing the original) rather than additive with overrides. That's a guess, but I don't really see anyone else doing customization the way we've defined it here. 3. Bootstrap 5 no longer requires ANY custom vue modules, as it has dropped the jquery dependency. We won't be able to pull in bootstrap 5 all at once, so pull in bootstrap 5 under an alias, like "bootstrap5" that we can optionally import 5 or 4. 4. One at a time, start porting components over to Vue3 syntax and bootstrap 5. This will be the bulk of the manual work and review. The only thing I think left is getting unit tests passing, which I commented out the pre-commit hook to make this PR. Tested: Code builds. Needs better testing. [1] https://router.vuejs.org/guide/migration/ [2] https://vue-i18n.intlify.dev/guide/migration/vue3 [3] https://vuelidate-next.netlify.app/migration_guide.html#package-name-and-imports Change-Id: I5bb3187b9efbf2e4ff63e57994bc528756e2a981 Signed-off-by: Ed Tanous <ed@tanous.net>
2024-10-01Updated Power restore policy URINikhil Ashoka1-19/+28
- Previously, we used to get the values for power restore policy page from“JsonSchemas/ComputerSystem/ComputerSystem.json”. Now we have removed the hardcoded API call and are fetching the values from the JsonSchemas/ComputerSystem’s URI because we would have versioned ComputerSystem.json in the redfish response. Change-Id: I1a25cbbb3dfc536485a6f71a359ae32c6eadf5f7 Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com>
2024-09-27Fix event entry downloadSean Zhang1-1/+5
Event entry should be downloaded with specific http header of "Accept: application/octet-stream" or "*/*", but the default http header is set to "Accept: application/json", so need to specify the header for event downloading. Refer: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/40136 Tested: Event entry data can be downloaded with the fix. Change-Id: Ia45123340da79a54fc4229470e6822206b8df808 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-09-13Add default Target to MultipartHttpPushjason westover1-1/+7
When no targets are provided, webui will now default to the BMC: i.e. "/redfish/v1/Managers/bmc" The current version of bmcweb requires the Targets parameter. bmcweb will be updated for multipart to match the behavior of simpleupdate: if Targets is empty or missing, default to the BMC. Also, the fwupdate page will be updated soon to allow the selection of Targets from the FirmwareInventory list. This should be a temp webui fix until we are comfortable with the upcoming changes to bmcweb. Change-Id: I630dcb40068b98aad8e1d276d17fe9af4793e788 Signed-off-by: jason westover <jwestover@nvidia.com>
2024-09-10Add support for MultipartHttpPushUri in fw pushLeo Xu1-1/+30
According to the Redfish Firmware Update Whitepaper [1] due to the vendor-specific details of this operation, HttpPushUri has been deprecated in favor of multipartHTTP push updates. Availability of update methods is determined from the UpdateService response. If MultipartHttpPushUri is found it will be preferred over HttpPushUri Tested: -Firmware update by performed via MultipartHttpPushUri [1]: https://www.dmtf.org/sites/default/files/standards/documents/DSP2062_1.0.1.pdf Change-Id: I184a889514d5f9f9598f35b2281404335bc0bc82 Signed-off-by: Leo Xu <yongquanx@nvidia.com>
2024-08-27Use auth token when not communicating with bmcwebPaul Fertser2-2/+19
Redfish backends other than OpenBMC bmcweb expect clients to authenticate using X-Auth-Token HTTP header as that's the only standard authentication method for Redfish sessions. This code falls back to using the token in case Session creation didn't result in obtaining an XSRF cookie (as should normally happen with bmcweb). Limitations: all WebSocket-based functionality can not work (JS-based NBD Virtual Media, IP KVM, SOL), page reload drops the session and requires to log in again. Tested: logging in, observing Overview and successfully logging out of an AMI MegaRAC BMC. Logging in and navigating around a bmcweb-running system which doesn't have the code to provide cookies for Session POST request (everything works as usual sans WS-based features). Change-Id: I81dc881193440d8d252dcd283b99915bd08c0c5e Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-08-12Handle expired passwords Redfish standard wayPaul Fertser2-5/+20
A password can expire at any moment during session lifetime and bmcweb starts returning 403 Forbidden errors to the requests made after that. The response contains clear indication of the condition in the standard `@Message.ExtendedInfo` attribute which is an array of Message objects. Previously the code was trying to detect this condition by querying AccountService after logging in but this approach doesn't work when password expires mid-session. Also it was limited to BMC-managed accounts and used hardcoded account URIs in violation of Redfish spec. This patch adds to the interceptor of 403 error so that the user is automatically redirected to the password change page as soon as the condition is detected. The same message is also present in the session creation POST response 201 if the password expired before the log in attempt, in this case the session is created as usual but the user is automatically redirected to password change page before any further requests are made. Tested: logging in, navigating, logging out with non-expired password. Logging in, navigating, then running `passwd -e <accountname>` via ssh leads to functional password change page on the next request and then navigating proceeds normally, and logging out too. If password is expired before logging in the user gets redirected to the password change page automatically after logging in. Fixes: https://github.com/openbmc/webui-vue/issues/118 Change-Id: I03f5ee2526a4bb1d35d3bbea1142fea077d6bfed Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-07-26Fix single event entry downloadSean Zhang1-0/+16
For event entry download, the href not work since the event entry download only work with header of "Accept: application/octet-stream" or the default "*/*", change to click function to make it work. Refer: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/40136 Change-Id: I11051e913bfd71ef081bed93ffcbeeb1edd8c730 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-07-19Switch to standard Redfish auth endpointPaul Fertser1-12/+22
To be able to talk to a Redfish-compliant implementation webui should switch from old non-standard login and logout endpoints to creating a Session via an appropriate POST request and to DELETE it on logout. This also gives us standard Session object with all the relevant parameters which allows the frontend to know what session it's using, what permissions it has etc. This works against bmcweb which checks for the presence of webui-vue-specific "X-Requested-With" header in the request and provides cookies in addition to the Redfish authentication token in the header. Tested: logging in, logging out, navigating the pages, reloading the page doesn't require logging in (if the session isn't expired), WebSocket connections work. Change-Id: I9d6159850b109a658b8f980637653e7e4576058b Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-07-16Removed TFTP code update optionNikhil Ashoka1-26/+0
- Removed TFTP server firmware update ability in the UI. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: Icbeddc7a3faa262f12e85268206ae70850f37905
2024-07-11fix reboot BMC error messageSean Zhang1-2/+1
Remove getLastBmcRebootTime after post BMC reboot action since BMC connection will be lost after reboot. The last BMC reboot time will be got after reboot BMC page loading, and after BMC reboot, user need reload the WEB UI, so there is also no need to send Redfish request to get the last BMC reboot time just after the post the BMC reboot action. Change-Id: Ic5d0cbca23a61610cc387a4046b85e9c20c255ea Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-07-06Add support for IPv6 network settingSean Zhang1-21/+151
Add IPv6 setting in network setting page. - Add IPv6 domain name, DNS servers, NTP servers enable/disable - Add DHCPv6 enable/disable - Add IPv6 default gateway - Add IPv6 addresses - Add IPv6 static addresses - Add IPv6 static addresses adding and deleting Tested: - IPv6 domain name, DNS servers, NTP servers enable/disable function - DHCPv6 enable/disable function - Verified the IPv6 default gateway - IPv6 addresses adding and deleting - Verified the IPv6 addresses in IPv6 table Change-Id: I9eebf6ef5f7de748f79779d8168b8dcfcdda2495 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-06-25Replace fixed paths with response from APISean Zhang20-107/+186
Currently, the Redfish request used fixed URIs, modify the code to use the BMC and System paths got from response of API calls. For CertificateStore, since it was using the URL for constant variable assignment, changed the constant CERTIFICATE_TYPES to method call. Change-Id: I330b7272083e3e6993aae5705aae170b8e9a4659 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-06-19remove setApplyTimeImmediate and its usageJagpal Singh Gill1-25/+2
BMCWeb is dropping the support for patch for ApplyOptions, hence remove the setApplyTimeImmediate and its corresponding usage from webui. The related patch from bmcweb is as under - https://gerrit.openbmc.org/c/openbmc/bmcweb/+/72150 Change-Id: I4ef64485103db843e1280bc5b8bd8be63813c368 Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
2024-05-21Added toast notification for identify LEDsNikhil Ashoka6-35/+89
- Added success toast notification messages for identify LEDs present at Inventory and LEDs page and Overview. - Import of Toast was not present in Overview's Inventory card and DIMM slot table, fixed it. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: If9ad84e66f6f15616cb8af51b1e84d8d06b1afd0
2024-05-08Removed Challenge password option from Generate CSR panelVedangi Mittal1-2/+0
- Unable to generate Certificate Signing Request (CSR) when filling optional field-Challenge password values on Certificate page. - Hence, removed the Challenge password option from the Generate CSR panel. Change-Id: I862f024de84f34738be5e5cd22701b63c2309152 Signed-off-by: Vedangi Mittal <vedangimittal3004@gmail.com>
2024-05-02Allow to log in when using remote authenticationPaul Fertser1-1/+11
For accounts authenticated remotely (e.g. with LDAP or RADIUS) the API endpoint (handled by bmcweb) can not provide any information about RoleId currently, reporting 404 instead. This confuses the frontend and it doesn't allow to navigate at all. Fix this by lifting all frontend-side restrictions by assuming 'Administrator' role in this case. Since the backend verifies validity of each and every request anyway this doesn't affect security anyhow. Tested: logging in, out and incorrectly using local BMC and remote LDAP users, reloading the page with an active session. In all cases frontend behaved as expected, storing assumed RoleId after getting 404 not found reply and using it for unrestricted routing decisions. Change-Id: If17d06bf0b8a372acd1980f6777227e25d9c78d8 Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-04-26Implement response cachingEd Tanous1-1/+14
Bmcweb supports the If-None-Match and etag headers on responses. While for static files, we can do a direct set, for responses, there's no way to cache values. Add caching support by adding what seems to be a well supported axios package. Note the intent is that the cache expires immediately, such that the bmc will always be polled for results, and return 304 when not modified. Additionally, we currently cache these values in the session context, such that they can be reused on refresh. Tested: webui loads properly. Upon navigating to a logs page, and back, the network console shows the bmc returning nearly all redfish responses with 304, not modified. Change-Id: I2e8067a88a0352226db9f987d1508ab5bf266b92 Signed-off-by: Ed Tanous <ed@tanous.net>
2024-04-25Deduplicate and simplify RoleId handlingPaul Fertser1-2/+5
To improve UX for users of accounts with restricted permissions the frontend determines the current RoleId. Knowing that it can hide menus and inhibit transitions that are not allowed by the backend in any case. This patch unifies the handling by moving processing of the API reply containing RoleId in the single place, right where `authentication/getUserInfo` store gets it. This makes the program flow easier to understand and change if needed without worrying of where another copy of the code might be and how it would need to be amended. No functional change. Tested: logging in and out, navigating the pages, getting an error message when wrong credentials are used, reloading the page with an established session. All while observing Network and Console tabs in Web Developer tools, no unexpected API requests are made and no unexpected errors reported. Confirmed in debugger that the retrieved role gets stored and used for routing restrictions. Change-Id: Ia8782f44cb6bf813954d30b8bf3a620a626ad455 Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-04-21Remove /subscribe websocket handlerEd Tanous2-62/+0
Having this code is causing crashes for implementations that don't have dbus-rest enabled in bmcweb, which is deprecated. This commit is intended to start a discussion around this issue, and propose simply removing it. 33a8c5369e0253a93dba2e70647bda1c7697b73b (checked in July 2020) points this crash out, and adds a way to disable the feature. While we could just make VUE_APP_SUBSCRIBE_SOCKET_DISABLED the default, this seems ill advised, given the dbus-rest options deprecated status. Change-Id: I6244f5e2ce895199d5d47cfca9eef36584e8f524 Signed-off-by: Ed Tanous <ed@tanous.net>
2024-03-20Display Power Supply Inventory from PowerSubsystemHuyLe1-6/+18
Switch Power Supply information to use information from the new PowerSubsystem since bmcweb enabled this by default, any other modern Redfish implementation should have this schema enabled. Tested: On Ampere MtJade platform 1. Login to WebUI; Hardware Status; Inventory 2. Inventory information for power supplies is displayed. Change-Id: Iad59d0145b47bcd5eb3cb4ff852e50da976a6005 Signed-off-by: HuyLe <hule@amperecomputing.com>
2024-03-13Correct Actions/Manager.ResetToDefaults parameter nameKonstantin Aladyshev1-1/+1
According to the Redfish Data Model specification the correct parameter name for the '/Actions/Manager.ResetToDefaults' action is not 'ResetToDefaults' but 'ResetType'. Change parameter name to match with the specification. Tested: Reset operation still works as expected. Change-Id: I111001800bb812ccb32f51f78f2e02c5f4d10e7c Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
2024-03-08Move to new ThermalSubsystemGunnar Mills1-72/+34
Remove VUE_APP_FAN_DATA_FROM_THERMAL_SUBSYSTEM. Assume any Redfish implementation we are using has the new ThermalSubsystem. bmcweb, the only webserver, webui-vue supports today, enabled this by default at https://gerrit.openbmc.org/c/openbmc/bmcweb/+/69228 ThermalSubsystem, PowerSubsystem has been out since 2020.4, so it is reasonable to assume it is there in any modern Redfish implementation. Tested: Nabil tested and verified this worked. Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Change-Id: I4952daf30f9b654234dd0e838adebc38cc8c380f
2024-03-05Reformat files with new linterEd Tanous28-152/+162
All changes should be whitespace, and were done using npm run-script lint. Change-Id: I943c6b435c5c872841af5affc1e89910468b5ca6 Signed-off-by: Ed Tanous <ed@tanous.net>
2023-10-09Fix pressing Refresh button not removing deleted sensorsHuyLe1-0/+7
Issue: when clicking the Refresh button at top right corner of the WebUI, sensors that were removed from Redfish are not removed from the WebUI but still shown with old sensor values. Root cause: current code keeps a list of sensors. Click on Refresh button just checks and updates sensors returned by Redfish, it does not check if sensors are still present or not. This is incorrect for sensors on hot plug devices or PLDM sensors when the sensor source is not available. In this case, sensors are completely removed instead of just their values changed to n/a. Solution: Initialize an empty array sensor state to retrieve existing sensor data whenever loading sensors. Change-Id: Ifb0c0586fdba22b6f446c58b3d5b937a3f3ee750 Signed-off-by: HuyLe <hule@amperecomputing.com>
2023-08-23Remove phosphor-rest style loginEd Tanous1-1/+4
As part of [1] There are deprecated login flows that webui-vue seems to have copied from phosphor-rest. These were originally added because phosphor-rest didn't look at response codes, but webui-vue does, so we can use the normal version, which allows us to reduce the code in bmcweb. This needs to go the same time as [1]. Tested: Gunnar tested with 65810 and this works. [1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/65810 Change-Id: I1e55f08cf1d7d44b6757ac4173a26546eaca72e5 Signed-off-by: Ed Tanous <edtanous@google.com> Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2023-08-10Add SNMP alerts page and test hooksKonstantin Aladyshev2-0/+123
This page will be included in Configuration section of the primary navigation. The user will be able to delete and add alert destination. Change-Id: I396d19a54ea11724f2c5aec67e20ba9abff947d3 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
2023-08-08Fan data from Thermal or ThermalSubsystem APISivaprabu Ganesan1-27/+72
Fan data API switch in Inventory and LEDs page based on environment variable VUE_APP_FAN_DATA_FROM_THERMAL_SUBSYSTEM. Backend Support PR: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/57533 Change-Id: I95ac9f9cef97bdab84a179b3e318eb37ab11752b Signed-off-by: Sivaprabu Ganesan <sivaprabug@ami.com>
2023-07-14Drop processor and memory summary status displayKonstantin Aladyshev1-8/+0
Redfish deprecated the Processor/Memory Summary Status (state, health, healthrollup) attributes. Please refer to redfish spec for more details: https://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_20_0.json These attributes are already removed from the bmcweb code: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/62731 So currently webui-vue tries to access not present attributes and fails, and since these fields are not marked as optional, 'Server Overview' card fails to display. Drop processor and memory summary status attributes handling to correct the issue. Change-Id: I7fb956a0a310c6bd85560169b1ca0a64c19dc824 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
2023-07-03Fix incorrect or missing parameters in functions of apiyubowei9821-8/+8
1."api.get()" need to add 'config' parameter for some circumstance need to modify configure. 2.The second param of api.delete() is payload not config. 3."api.patch()" need to add 'config' parameter for some circumstance need to modify configure. 4."api.put()" need to add 'config' parameter for some circumstance need to modify configure. Change-Id: I2df9eae468933c043dd9be1e12d2e2aeb9576ae8 Signed-off-by: Bowei Yu <yubowei0982@phytium.com.cn>
2023-06-20Add fields to the DIMM inventory tableJason M. Bills1-0/+6
There is a request to see three additional fields from Redfish in the DIMM inventory table: https://github.com/openbmc/webui-vue/issues/107. This change adds Manufacturer, Error correction, and Rank count data from Redfish into the DIMM inventory table. Tested: Confirmed that the three fields show in the table with the correct data from Redfish. Change-Id: I6f1fc5103649abf8350e5b5c107c11eea3d1a599 Signed-off-by: Jason M. Bills <jason.m.bills@intel.com>
2023-06-02Fix logout button not work on SafariThang Q. Nguyen1-1/+1
After logged on via Safari web browser, click <user> -> Log out button does not take effect until clicking on other tab. The current page still works normally. For example, in Virtual Media page, after clicking on the Log out button, nothing happens and we can still mount ISO file. The issue does not happen on Chrome or Firefox. Fix the issue by changing router.go() to router.push(). Reference: https://github.com/vuejs/vue-router/issues/2554 https://codewithandrea.com/articles/flutter-navigation-gorouter-go-vs-push/ Tested: 1. Check if the issue does not happen on Safari anymore. 2. Check if no issue with Google Chrome and Mozilla Firefox. Change-Id: I2ae35dad2dec6b19c3cb9d7f8d577b6077ac8d9c Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Signed-off-by: HuyLe <hule@amperecomputing.com>
2023-05-10Add session timeout in Policies pagekirankumarb071-0/+29
This patchset will provide the option to configure the session timeout for the WebUI. The functionality will provide the below timeout options to configure. 1. 30 minutes 2. 1 hour 3. 2 hours 4. 4 hours 5. 8 hours 6. 1 Day For the API, redfish is having the following resource. URL - /redfish/v1/SessionService Method - GET (to get the configured timeout) - PATCH (to configure the timeout value) Property - { "SessionTimeout": 1800 } When the user idles up until the configured session timeout, after that any API call from this session will get 401 status and the web UI will gets logged out. Change-Id: Ic7c6b4817e560ca4ceb983dc5e2af51f3ae08cf5 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2023-04-20Remove hardcoded chassis from Fan storeMichalX Szopinski1-3/+23
This change removes the hardcoded chassis URL from FanStore. Now the URL is taken from the odata.id. Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: I59e4d46a8aaa453f6662f4f396f32d7fad18fb91
2023-04-15Added the use of HttpPushUrigreenfil1-2/+5
According to the Redfish specification, the address to update the firmware is set in redfish/v1/UpdateService with the HttpPushUri variable. ``` https://github.com/openbmc/bmcweb/commit/4dc23f3fb6c9a7cef84658f8ab3b703d29ec7d57 ``` Change-Id: I29566a8ab2d06b658ab62f61c34be00fbbba0571 Signed-off-by: greenfil <mikl@greenfil.ru>
2023-04-12Added a "solved" checkGlukhov Mikhail1-6/+8
Now Health status will be "Ok" if there are no unsolved problems in the log. Before this patch, the flag "solved" was not considered. Test: Created a log entry with the status of "Critical" and "Warning". Health became Critical. Event Critical pressed Resolved. Health became "Warning". Event Warning pressed Resolved. Health became "Ok". Change-Id: Ic74a4c488c1c806c478c562a17fc0bb132e66e8f Signed-off-by: Glukhov Mikhail <mikl@greenfil.ru>
2023-04-12Fixed endpoint for Power PowerControlDamian Celico1-1/+1
Saving power cap value was throwing an error, and it was caused by incorrect endpoint to PowerControl resource in Redfish: https://redfish.dmtf.org/schemas/v1/Power.v1_7_1.json Fixed endpoint for saving Power Cap value Signed-off-by: Damian Celico <damianx.celico@intel.com> Change-Id: Ib9117f62548c55eb3f07562b71330675a2101924
2023-04-10Handle API error messages on add/edit userMichalX Szopinski1-24/+27
Display API error messages on Local user managment tab. Change-Id: I8ffe2359aa454503d07e8895907202bd0d8493f5 Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com>
2023-04-05Fix popup-box authenticate on session disconnectEd Tanous1-0/+3
On the session Web UI page, when we disconnect the current session, instead of navigating to the login page, the browser populates the authentication window for basic authorization. If basic authentication is enabled, we are adding the www-authenticate header to unauthorizing requests. As per redfish, we have to set the "Accept" and "X-Requested-With" header for the request from Web UI. This patch set will add those headers. Tested: Logged in to the WebUI and navigated to the sessions page. Clicked "Disconnect" to the current session and the WebUI is navigated to login. page as expected. Change-Id: I61cccbf41e854683e6cd5aa80fa72593ae4aa698 Signed-off-by: Ed Tanous <edtanous@google.com>
2023-03-27Added route restrictions based on user privilegeDamian Celico2-3/+8
This commit allows us to add 'exclusiveToRoles' field to route config files, with the list of roles that can access this resource, if needed. In this case, only Administrator can access Virtual-Media page and SOL console, and it is blocked for other users. Signed-off-by: Sivaprabu Ganesan <sivaprabug@ami.com> Change-Id: Ibcee18bd92d97c34414ecaf2caf6af28070c5538