| commit | 1188a58e8e3d4423f2932dfe3a51610670309281 | [log] [tgz] |
|---|---|---|
| author | Ed Tanous <etanous@nvidia.com> | Wed Oct 08 12:09:59 2025 -0700 |
| committer | Ed Tanous <ed@tanous.net> | Thu Oct 16 00:23:10 2025 +0000 |
| tree | a4913d08df5dbc231c6865e2cf5ce0855090569c | |
| parent | b360d5b91cff2c98113e259203a02e5e7d6963a2 [diff] |
Make DBus aggregation optional There are a number of scenarios where Entity manager might not be running, or might have errored out. For resilience, this should ONLY result in the aggregated sources disappearing, and should not effect the main collections. One use case for this is local development and testing the aggregation. To accomplish this, modify the getSatteliteConfigs function to always call the callback, in the case of an error, calling with an empty map of satellites. Tested: Launched bmcweb directly with insecure-disable-auth and redfish-aggregation enabled. Created an aggregated source: ``` curl -vvvv -k https://localhost:18080/redfish/v1/AggregationService/AggregationSources -H "Content-Type: application/json" --request POST --data '{"HostName":"https://10.114.132.149", "UserName": "root", "Password": "0penBmc"}' ``` Change-Id: Ica667fe27a35b33a99d0b411a06407b73efe6731 Signed-off-by: Ed Tanous <etanous@nvidia.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. Http1 and http2 are supported using ALPN registration for TLS connections and h2c upgrade header for http connections.
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 supports various forms of http compression, including zstd and gzip. Client headers are observed to determine whether compressed payloads are supported.
bmcweb is capable of aggregating resources from satellite BMCs. Refer to AGGREGATION.md for more information on how to enable and use this feature.