| commit | d7e080295f1f3c2517a440e3911600cec0c190fa | [log] [tgz] |
|---|---|---|
| author | jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> | Thu Dec 05 23:29:13 2019 +0000 |
| committer | mutyalax.jayaprakash <mutyalax.jayaprakash@intel.com> | Fri Dec 06 17:42:39 2019 +0000 |
| tree | 2444c07a1a80fc26047219060039c6e7f26dbe10 | |
| parent | a78d3e618eb919a62731c54223e7851a912c9450 [diff] |
privileges: Added noAccess privilege check Issue: NoAccess user able to get the Systems/system in Redfish Fix: Added privilege check for NoAccess Tested: 1. Verified redfish validator passed 2. Verified NoAccess privilege user on Redfish for /Systems/system url GET: https://<BMC IP>/redfish/v1/Systems/system Result: Status is 403 Forbidden Body log: Forbidden Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> Change-Id: Ib0ccb3382a9c33608ef354f1e545c328aec40179
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/CMakeLists.txt and then compiling. For example, cmake -DBMCWEB_ENABLE_KVM=NO ... followed by make. The option names become C++ preprocessor symbols that control which code is compiled into the program.
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 prime256v1 algorithm. The certificate
C=US, O=OpenBMC, CN=testhost,SHA-256 algorithm.