commit | cc0904473c19977eb0b9789b3c1be54a74ca873d | [log] [tgz] |
---|---|---|
author | Ed Tanous <ed@tanous.net> | Wed Oct 07 08:20:50 2020 -0700 |
committer | Ed Tanous <ed@tanous.net> | Wed Oct 07 15:31:42 2020 +0000 |
tree | bb3c9d766e5064469f6642efd8c9a7939b1df13d | |
parent | 309b0834262f69071c16f7389ba02f56747a9a23 [diff] |
Fix PATCH verb Fix PATCH in the router. https://github.com/openbmc/bmcweb/commit/888880af0ec22bb50e262917bd5dab5d221d521c was injected recently which attempted to reduce the memory load on the system by reducing the number of handlers we hold. This code is already brittle, as it relies on a specific order of verbs in boost. unfortunately, patch was accidentally removed from the router. This commit reverts the attempted memory reclaiming, and does what the old code did, claiming all the way to UNLINK verb. Tested: only inspected at this point, but CI was able to catch the failure. Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: I62a531cb20c2508db2dcedec249c2f39719a2181
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/meson_options.txt
and then compiling. For example, meson <builddir> -Dkvm=disabled ...
followed by ninja
in build directory. The option names become C++ preprocessor symbols that control which code is compiled into the program.
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C buildir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in bmcweb/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja coverage -C builddir test
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.