Name Date Size #Lines LOC

..Today-

.github/ISSUE_TEMPLATE/H15-Aug-2023-6664

config/H23-May-2024-174145

http/H29-May-2024-6,7305,566

include/HToday-9,2537,799

redfish-core/H29-May-2024-266,812242,437

scripts/HToday-1,6721,294

src/H02-May-2024-783620

static/H11-Aug-2021-109,421102,463

subprojects/H19-Apr-2024-8163

test/H21-Sep-2022-6,3794,588

.clang-formatH A D25-Oct-20233.6 KiB136134

.clang-tidyH A D24-Apr-202414.1 KiB388386

.codespell-ignoreH A D10-Jan-2024518 1511

.dockerignoreH A D07-Mar-202153 75

.gitignoreH A D05-Mar-20245.3 KiB293223

.markdownlint.yamlH A D07-Dec-202245 43

.openbmc-enforce-gitlintH A D28-Aug-20220

.prettierignoreH A D29-May-202425 21

.shellcheckH A D07-Mar-20210

AGGREGATION.mdH A D28-Feb-20237 KiB193152

CLIENTS.mdH A D10-Jan-20242.6 KiB7348

COMMON_ERRORS.mdH A D15-Aug-202312.9 KiB370302

DBUS_USAGE.mdH A D10-Jan-20241.5 KiB2724

DEVELOPING.mdH A D10-Jan-202410.1 KiB249186

HEADERS.mdH A D07-Dec-20223 KiB5344

LICENSEH A D20-Jul-202111.1 KiB202169

OEM_SCHEMAS.mdH A D06-Apr-20235.6 KiB10284

OWNERSH A D22-Feb-20244.2 KiB10093

README.mdH A D16-May-20232.9 KiB8357

REDFISH_CHECKLIST.mdH A D18-Mar-20241.7 KiB3525

Redfish.mdH A D03-May-202419.4 KiB1,113819

TESTING.mdH A D10-Jan-20244.7 KiB148107

meson.buildH A D29-May-202412.7 KiB430381

meson_options.txtH A D23-May-202411.8 KiB391347

run-ciH A D14-Feb-2022305 105

README.md

1# OpenBMC webserver
2
3This component attempts to be a "do everything" embedded webserver for OpenBMC.
4
5## Features
6
7The webserver implements a few distinct interfaces:
8
9- DBus event websocket. Allows registering on changes to specific dbus paths,
10  properties, and will send an event from the websocket if those filters match.
11- OpenBMC DBus REST api. Allows direct, low interference, high fidelity access
12  to dbus and the objects it represents.
13- Serial: A serial websocket for interacting with the host serial console
14  through websockets.
15- Redfish: A protocol compliant, [DBus to Redfish translator](Redfish.md).
16- KVM: A websocket based implementation of the RFB (VNC) frame buffer protocol
17  intended to mate to webui-vue to provide a complete KVM implementation.
18
19## Protocols
20
21bmcweb at a protocol level supports http and https. TLS is supported through
22OpenSSL.
23
24## AuthX
25
26### Authentication
27
28Bmcweb supports multiple authentication protocols:
29
30- Basic authentication per RFC7617
31- Cookie based authentication for authenticating against webui-vue
32- Mutual TLS authentication based on OpenSSL
33- Session authentication through webui-vue
34- XToken based authentication conformant to Redfish DSP0266
35
36Each of these types of authentication is able to be enabled or disabled both via
37runtime policy changes (through the relevant Redfish APIs) or via configure time
38options. All authentication mechanisms supporting username/password are routed
39to libpam, to allow for customization in authentication implementations.
40
41### Authorization
42
43All authorization in bmcweb is determined at routing time, and per route, and
44conform to the Redfish PrivilegeRegistry.
45
46\*Note: Non-Redfish functions are mapped to the closest equivalent Redfish
47privilege level.
48
49## Configuration
50
51bmcweb is configured per the
52[meson build files](https://mesonbuild.com/Build-options.html). Available
53options are documented in `meson_options.txt`
54
55## Compile bmcweb with default options
56
57```ascii
58meson setup builddir
59ninja -C builddir
60```
61
62If any of the dependencies are not found on the host system during
63configuration, meson will automatically download them via its wrap dependencies
64mentioned in `bmcweb/subprojects`.
65
66## Use of persistent data
67
68bmcweb relies on some on-system data for storage of persistent data that is
69internal to the process. Details on the exact data stored and when it is
70read/written can seen from the `persistent_data` namespace.
71
72## TLS certificate generation
73
74When SSL support is enabled and a usable certificate is not found, bmcweb will
75generate a self-signed a certificate before launching the server. Please see the
76bmcweb source code for details on the parameters this certificate is built with.
77
78## Redfish Aggregation
79
80bmcweb is capable of aggregating resources from satellite BMCs. Refer to
81[AGGREGATION.md](https://github.com/openbmc/bmcweb/blob/master/AGGREGATION.md)
82for more information on how to enable and use this feature.
83