Add RootOfTrustCollection and RootOfTrust under Google service root.These are Google only resources powered by Hoth DBus interface.The ComponentsProtected links is hardcoded for now.But it will b
Add RootOfTrustCollection and RootOfTrust under Google service root.These are Google only resources powered by Hoth DBus interface.The ComponentsProtected links is hardcoded for now.But it will be queried from DBus and interpreted accordingly in thefuture.TEST:$curl -u root:0penBmc -X GET http://[::1]:$PORT/google/v1/RootOfTrustCollection{ "@odata.id": "/google/v1/RootOfTrustCollection", "@odata.type": "#RootOfTrustCollection.RootOfTrustCollection", "Members": [ { "@odata.id": "/google/v1/RootOfTrustCollection/Hoth" } ], "Members@odata.count": 1}$ curl -u root:0penBmc -X GET http://[::1]:$PORT/google/v1/RootOfTrustCollection/Hoth{ "@odata.id": "/google/v1/RootOfTrustCollection/Hoth", "@odata.type": "#RootOfTrust.v1_0_0.RootOfTrust", "Actions": { "#RootOfTrust.SendCommand": { "target": "/google/v1/RootOfTrustCollection/Hoth/Actions/RootOfTrust.SendCommand" } }, "Id": "Hoth", "Location": { "PartLocation": { "ServiceLabel": "Hoth", "Locationtype": "Embedded" } }, "Name": "RootOfTrust-Hoth", "Status": { "State": "Enabled"}$ curl -u root:0penBmc -X POST -d @req.json -H "Content-Type: application/json" http://[::1]:$PORT/google/v1/RootOfTrustCollection/Hoth/Actions/RootOfTrust.SendCommand{ "CommandResponse": "033B0000"}Signed-off-by: Vidya Satyamsetti <satyamsetti@google.com>Change-Id: If64612468bb89e6d9251d848697608b7daf37339
show more ...
Add google service rootThis commit introduces the following=> Service root for Google=> compiler option for the Google Root of Trust specific functionalitiesTested:curl -vvvv --insecure --user
Add google service rootThis commit introduces the following=> Service root for Google=> compiler option for the Google Root of Trust specific functionalitiesTested:curl -vvvv --insecure --user $user_pass https://${bmc}/google/v1Desing Doc can be found here https://github.com/openbmc/docs/blob/master/designs/oem/google/root_of_trust.mdChange-Id: I941b5cab55179279d0eff18aa29df62c3f226e47Signed-off-by: Feras Aldahlawi <faldahlawi@gmail.com>