forked from TrueCloudLab/frostfs-api
[#66] object: Add object_id signature to Head response
Object ID signature is needed to check Header authenticity. Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
eab2210ffe
commit
a07a518a1e
2 changed files with 7 additions and 0 deletions
|
@ -250,6 +250,12 @@ message HeadResponse {
|
|||
|
||||
// Short object header
|
||||
ShortHeader short_header = 2;
|
||||
|
||||
// Signed object_id to verify full header's authenticity through following steps:
|
||||
// 1. Calculate SHA-256 of marshalled Headers structure.
|
||||
// 2. Check if the resulting hash matched ObjectID
|
||||
// 3. Check if ObjectID's signature in signature field is correct.
|
||||
neo.fs.v2.refs.Signature signature = 3;
|
||||
}
|
||||
}
|
||||
// Body of head object response message.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue