commit | c76f964a8f793e295a149064df0fbc263ef97e93 | [log] [tgz] |
---|---|---|
author | Gunnar Mills <gmills@us.ibm.com> | Sun Jan 26 21:37:59 2025 -0600 |
committer | Gunnar Mills <gmills@us.ibm.com> | Tue Mar 18 18:26:41 2025 +0000 |
tree | a403ebefb8d8ac120059196b455e87b93a2053b3 | |
parent | 8873f3226c157d26201e60ed9c11f2b3737d8f9b [diff] |
Change Session Cookie name We have a use case where the GUI sits behind a Apache Tomcat proxy[1]. In this environment the cookie looks like: ``` en-US,en;q=0.9cookie: JSESSIONIDSSO=4E999D77EF4E01CB72DE63949D5FF830; CCFWSESSION=48A66EB93C00AD4F6327FB3FC2A338FC; LOGIN_MODE=Dashboard; XSRF-TOKEN=Ue1La3Ik48Bn5NosyLnJ; SESSION=pCAdqApWt4Kb4IUV9vh8dnt: ``` The bmcweb code thinks the CCFWSESSION= is the SESSION. The bmcweb code could be made smarter to differentiate "CCFWSESSION" and "SESSION" but reading SESSION seems too generic of a name and something like "BMCWEB-SESSION" better matches [2], [3], and [4]. [1]: https://tomcat.apache.org/tomcat-9.0-doc/proxy-howto.html [2]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#session_cookie [3]: https://http.dev/set-cookie [4]: https://www.geeksforgeeks.org/http-headers-set-cookie/ Tested: The GUI works and this proxy environment now works. Change-Id: I9b63093c1839e26602fe26313a330e337961cb81 Signed-off-by: Gunnar Mills <gmills@us.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 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 is capable of aggregating resources from satellite BMCs. Refer to AGGREGATION.md for more information on how to enable and use this feature.