commit | 91e130a365a0d3b93357e6efa0a5be8a0b53c6d1 | [log] [tgz] |
---|---|---|
author | jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> | Wed Mar 04 22:26:38 2020 +0000 |
committer | Jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> | Sat Mar 14 17:18:43 2020 +0000 |
tree | 781f03cfc4e45771972aeb9bfd80fbe9ff7380cd | |
parent | 818ea7b8f06292eaaa82ba67ef21933f50d71192 [diff] |
Allow unrestricted sensor override through flag Allow overriding sensor values without any restriction based on BMCWEB_INSECURE_UNRESTRICTED_SENSOR_OVERRIDE flag Tested: 1. Redfish validator - passed for this new change 2. Verified for BMCWEB_ENABLE_VALIDATION_UNSECURE_FEATURE is OFF and BMCWEB_INSECURE_UNRESTRICTED_SENSOR_OVERRIDE is ON Case 1: 1. Enable manufacturing mode by pressing power button while bmc booting 2. Patch sensor values from Redfish. Redfish URI: PATCH https://<BMC-IP>/redfish/v1/Chassis/WC_Baseboard/Thermal Body: { "Temperatures": [ { "MemberId": "SSB_Temp", "ReadingCelsius":112 } ] } Response: { "@odata.id": "/redfish/v1/Chassis/WC_Baseboard/Thermal", "@odata.type": "#Thermal.v1_4_0.Thermal", "Fans": [], "Id": "Thermal", "Name": "Thermal", "Temperatures": [] } 3. Sensor value Overridden successfully Case 2: Verified for ValidationUnsecure mode. Case 3: Tested without SpecialMode mode 1. Stop the specialmodemgr.service service 2. Patch sensor values from Redfish. 3. Sensor value Overridden successfully Case 4: 1. Disable manufacturing mode Command: ipmitool raw 0x30 0xB4 3 0 Response: //Success 2. Patch sensor values from Redfish. 3. Sensor value Overridden successfully Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> Change-Id: I0557cc88d2aceebade4b78e4478e17feecb6e088
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 secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.