Name
Date
Size
#Lines
LOC

..--

.github/ISSUE_TEMPLATE/H--6664

config/H--239206

http/H--7,5406,169

include/H--9,5078,037

redfish-core/H--404,601369,148

scripts/H--2,2371,786

src/H--1,8571,483

static/H--534470

subprojects/H--9675

test/H--8,2456,000

.clang-formatH A D03-Feb-20253.7 KiB137135

.clang-tidyH A D03-Jan-202514.8 KiB402400

.codespell-ignoreH A D02-Jan-2024518 1511

.dockerignoreH A D22-Jul-202053 75

.eslintignoreH A D29-May-202425 21

.gitignoreH A D29-Feb-20245.3 KiB293223

.markdownlint.yamlH A D07-Dec-202245 43

.openbmc-enforce-gitlintHD24-Aug-20220

.prettierignoreH A D12-May-202425 21

.shellcheckHD06-Oct-20200

AGGREGATION.mdH A D13-Oct-20227 KiB193152

CLIENTS.mdH A D15-Jul-20242.6 KiB7348

COMMON_ERRORS.mdH A D02-Feb-202514.3 KiB418340

DBUS_USAGE.mdH A D02-Jan-20241.5 KiB2724

DEVELOPING.mdH A D29-Aug-202410.4 KiB257192

HEADERS.mdH A D07-Dec-20223 KiB5344

LICENSEH A D15-Jul-202111.1 KiB202169

OEM_SCHEMAS.mdH A D15-Jul-20245.6 KiB10284

OWNERSH A D21-Feb-20244.2 KiB10093

README.mdH A D15-May-20232.9 KiB8357

REDFISH_CHECKLIST.mdH A D15-Jul-20241.7 KiB3726

Redfish.mdH A D20-Aug-202420.1 KiB1,148853

TESTING.mdH A D16-Oct-20244.7 KiB148107

meson.buildH A D03-Jan-202515.1 KiB513463

meson.optionsH A D24-Feb-202516.4 KiB538483

run-ciH A D08-Feb-2022305 105

README.md

1 # OpenBMC webserver
2 
3 This component attempts to be a "do everything" embedded webserver for OpenBMC.
4 
5 ## Features
6 
7 The 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 
21 bmcweb at a protocol level supports http and https. TLS is supported through
22 OpenSSL.
23 
24 ## AuthX
25 
26 ### Authentication
27 
28 Bmcweb 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 
36 Each of these types of authentication is able to be enabled or disabled both via
37 runtime policy changes (through the relevant Redfish APIs) or via configure time
38 options. All authentication mechanisms supporting username/password are routed
39 to libpam, to allow for customization in authentication implementations.
40 
41 ### Authorization
42 
43 All authorization in bmcweb is determined at routing time, and per route, and
44 conform to the Redfish PrivilegeRegistry.
45 
46 \*Note: Non-Redfish functions are mapped to the closest equivalent Redfish
47 privilege level.
48 
49 ## Configuration
50 
51 bmcweb is configured per the
52 [meson build files](https://mesonbuild.com/Build-options.html). Available
53 options are documented in `meson_options.txt`
54 
55 ## Compile bmcweb with default options
56 
57 ```ascii
58 meson setup builddir
59 ninja -C builddir
60 ```
61 
62 If any of the dependencies are not found on the host system during
63 configuration, meson will automatically download them via its wrap dependencies
64 mentioned in `bmcweb/subprojects`.
65 
66 ## Use of persistent data
67 
68 bmcweb relies on some on-system data for storage of persistent data that is
69 internal to the process. Details on the exact data stored and when it is
70 read/written can seen from the `persistent_data` namespace.
71 
72 ## TLS certificate generation
73 
74 When SSL support is enabled and a usable certificate is not found, bmcweb will
75 generate a self-signed a certificate before launching the server. Please see the
76 bmcweb source code for details on the parameters this certificate is built with.
77 
78 ## Redfish Aggregation
79 
80 bmcweb is capable of aggregating resources from satellite BMCs. Refer to
81 [AGGREGATION.md](https://github.com/openbmc/bmcweb/blob/master/AGGREGATION.md)
82 for more information on how to enable and use this feature.
83