commit | 382d64759b0848f18bad9e0d85a8291529ced0e9 | [log] [tgz] |
---|---|---|
author | Ali Ahmed <ama213000@gmail.com> | Fri Sep 03 16:53:53 2021 -0500 |
committer | Ed Tanous <ed@tanous.net> | Fri Sep 02 01:02:37 2022 +0000 |
tree | 701440b615e1c9c69cbe833984b8769a4d823518 | |
parent | ea2b670d306d85d6975b6174024985491af04a89 [diff] |
Move nested dbus calls in getComputerSystem Dbus calls to dbus objects 'xyz.openbmc_project.Inventory.Item' and and 'xyz.openbmc_project.State.Decorator.OperationalStatus' are nested under a call for 'xyz.openbmc_project.Inventory.Item.Cpu' properties. This change seperates these calls for clarity and to minimize variables Testing: 1. Redfish Validator Testing passed 2. Curl testing: curl -k -H "X-Auth-Token: $tok" https://$bmc/redfish/v1/Systems/system ... "ProcessorSummary": { "CoreCount": 0, "Count": 2, "Model": "", "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" } }, ... Signed-off-by: Ali Ahmed <ama213000@gmail.com> Change-Id: Id4657836607a2261a188db8d565aaa2b1a414c5a Signed-off-by: Shantappa Teekappanavar <shantappa.teekappanavar@ibm.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 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 by default is compiled with runtime logging disabled, as a performance consideration. To enable it in a standalone build, add the
-Dlogging='enabled'
option to your configure flags. If building within Yocto, add the following to your local.conf.
EXTRA_OEMESON:pn-bmcweb:append = "-Dbmcweb-logging='enabled'"
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.