commit | 0c814aa604b36cff01b495f9c335f981c7be83be | [log] [tgz] |
---|---|---|
author | rajeeranjan <ranjan.rajeev1609@gmail.com> | Tue Mar 25 13:31:49 2025 +0530 |
committer | Ed Tanous <ed@tanous.net> | Thu May 15 14:39:39 2025 +0000 |
tree | 08c9153eace67bf4d98e29fd540a9269ffe5dcfe | |
parent | e2460466d95c98c2da4623892ca0ceff216a9ff2 [diff] |
Separate endpoint for MultipartHttpPushUri Update Currently, the UpdateService uses the same endpoint "/redfish/v1/UpdateService/update" for both "application/octet-stream" and "multipart/form-data" HTTP push methods. This change introduces a dedicated endpoint "/redfish/v1/UpdateService/update-multipart" to handle multipart firmware updates separately, aligning with the Redfish spec recommendations[1] and Section 3.1.2 Multipart HTTP push update in Redfish FW Update White Paper [2]. Spec examples in [1], Section 7.12, shows '/update-multipart' endpoint as a dedicated URI for MultipartHttpPushUri. [1] https://www.dmtf.org/sites/default/files/standards/documents/DSP0266_1.22.0.pdf [2] https://www.dmtf.org/sites/default/files/standards/documents/DSP2062_1.0.2.pdf Tested: - Verified GET on UpdateService ``` curl -k https://user:pass@<bmc-ip>/redfish/v1/UpdateService ... "MultipartHttpPushUri": "/redfish/v1/UpdateService/update-multipart", ... ``` - Verified MultipartPushURI update using the new URI. ``` curl -X POST -k https://user:pass@<bmc-ip>/redfish/v1/UpdateService/update-multipart --form 'UpdateParameters={"Targets":["/redfish/v1/Managers/bmc"]};type=application/json' --form "UpdateFile=@<fwpkg>;type=application/octet-stream" { "@odata.id": "/redfish/v1/TaskService/Tasks/1", "@odata.type": "#Task.v1_4_3.Task", "Id": "1", "TaskState": "Running", "TaskStatus": "OK" } ``` Change-Id: I477d7d64571113079d51bff9f188cfa776e6dafa Signed-off-by: Rajeev Ranjan <ranjan.rajeev1609@gmail.com>
This component attempts to be a "do everything" embedded webserver for OpenBMC.
The webserver implements a few distinct interfaces:
bmcweb at a protocol level supports http and https. TLS is supported through OpenSSL.
Bmcweb supports multiple authentication protocols:
Each of these types of authentication is able to be enabled or disabled both via runtime policy changes (through the relevant Redfish APIs) or via configure time options. All authentication mechanisms supporting username/password are routed to libpam, to allow for customization in authentication implementations.
All authorization in bmcweb is determined at routing time, and per route, and conform to the Redfish PrivilegeRegistry.
*Note: Non-Redfish functions are mapped to the closest equivalent Redfish privilege level.
bmcweb is configured per the meson build files. Available options are documented in meson_options.txt
meson setup builddir ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson will automatically download them via its wrap dependencies mentioned in bmcweb/subprojects
.
bmcweb relies on some on-system data for storage of persistent data that is internal to the process. Details on the exact data stored and when it is read/written can seen from the persistent_data
namespace.
When SSL support is enabled and a usable certificate is not found, bmcweb will generate a self-signed a certificate before launching the server. Please see the bmcweb source code for details on the parameters this certificate is built with.
bmcweb is capable of aggregating resources from satellite BMCs. Refer to AGGREGATION.md for more information on how to enable and use this feature.