commit | f8883d0fb533a7edbdd6859728328d6783ad9284 | [log] [tgz] |
---|---|---|
author | Nan Zhou <nanzhou@google.com> | Mon Jul 07 13:25:27 2025 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jul 07 13:26:01 2025 -0700 |
tree | c4529953226ea6e0f4f6842ec101a5d73fba739d | |
parent | 64d1bf22c4f934ab3191a95788daf53908c4f467 [diff] |
Composable tlbmc This CL made modules in tlBMC flexible and configurable at runtime. See designs in go/composable-tlbmc Changes are: 1. Make collectors composable. For a collector, if it is not enabled, its equivalent dummy collector is created. A dummy collector will return empty resources or not found on its interfaces. This is needed as the code base does not do nullptr check today. 1. Defined a central config proto, so that collector are enabled by configs. Every platform can have its unique config 1. Platform is determined at tlbmc runtime, no need for to specify platform at compile time 1. A single textproto file is created to configure tlbmc across platforms. This is to ensure the WIP gbmcweb msvfud package can still support single package for every platform. This textproto file will be maintained in https://gbmc-private.googlesource.com/ as I can't leak code names. 1. Made a factory method so that the logic of creating tlbmc App and store can be tested. Today it's in webserver_main_include and it is not tested. 1. Made a `default` platform which represents all platform that have `tlbmc` enabled but without FRU collector and Sensor collector turned on. Added e2e tests for it #tlbmc PiperOrigin-RevId: 780235972 Change-Id: Ibefb10261c36af674f00cb450d157918daec7aeb
This project is Google's version of BMCWeb.
See Readme Google for Google added features. The following is the original README of OpenBMC/BMCWeb.
==============================================================================
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 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.