Commit graph

26 commits

Author SHA1 Message Date
Leonard Lyubich
74e917810a service: support broken apart signable payload of the requests
In previous implementation service package provided types and functions
that wrapped signing/verification of data with session token.
This allowed us to use these functions for signing / verification of
service requests of other packages. To support the expansion of messages
with additional parts that need to be signed, you must be able to easily
expand the signed data with new parts.

To achieve the described goal, this commit makes the following changes:

  * adds GroupSignedPayloads and GroupVerifyPayloads functions;

  * renames SignedDataWithToken to RequestData, DataWithTokenSignAccumulator
    to RequestSignedData, DataWithTokenSignSource to RequestVerifyData;

  * renames SignDataWithSessionToken/VerifyAccumulatedSignaturesWithToken
    function to SignRequestData/VerifyRequestData and makes it to use
    GroupSignedPayloads/GroupVerifyPayloads internally.
2020-06-10 20:37:10 +03:00
Leonard Lyubich
e01fb0cc62 Implement signed data calculating function from SignedDataReader 2020-05-11 17:28:44 +03:00
Leonard Lyubich
ab198b4049 state: implement SignedDataSource on ChangeStateRequest message 2020-05-11 16:31:39 +03:00
Leonard Lyubich
5545b25a95 state: implement SignedDataSource on DumpVarsRequest message 2020-05-11 16:16:54 +03:00
Leonard Lyubich
603db9c325 state: implement SignedDataSource on DumpRequest message 2020-05-11 16:15:31 +03:00
Leonard Lyubich
ea12eabaf6 state: implement SignedDataSource on HealthRequest message 2020-05-11 16:14:29 +03:00
Leonard Lyubich
df9a04e542 state: implement SignedDataSource on MetricsRequest message 2020-05-11 16:11:17 +03:00
Leonard Lyubich
539e93e558 state: implement SignedDataSource on NetmapRequest message 2020-05-11 16:10:08 +03:00
Evgeniy Kulikov
bef32abb9c
proto: regenerate files 2020-04-20 13:55:29 +03:00
Evgeniy Kulikov
b118f469d2
Migrate to new repo 2020-03-31 10:05:26 +03:00
Evgeniy Kulikov
1deea42f5a
Add tests for EncodeMetrics and DecodeMetrics 2020-02-10 15:36:28 +03:00
Evgeniy Kulikov
02e82156ba
Add tests for EncodeConfig 2020-02-10 15:27:24 +03:00
Evgeniy Kulikov
fc91a5b232
Add tests for EncodeVariables 2020-02-10 14:54:25 +03:00
Evgeniy Kulikov
cf5f6b1192
Implement function to encode debug variables 2020-02-10 14:54:25 +03:00
Evgeniy Kulikov
bf5cd8b740
Update service.proto file and generate go-code 2020-02-10 14:54:24 +03:00
Evgeniy Kulikov
49cc731c8d
update proto files, regenerate pb.go 2020-02-05 16:58:06 +03:00
Evgeniy Kulikov
53af48372f
prepare to rename neofs-proto to neofs-api 2020-01-30 16:35:30 +03:00
Evgeniy Kulikov
f557f24616
Fix bug with DecodeMetrics (empty metrics returns) 2019-12-17 17:53:48 +03:00
Evgeniy Kulikov
55b9a2447c
state: add method to encode config into response message 2019-12-17 14:09:52 +03:00
Evgeniy Kulikov
11eb541f23
state: add request to dump node config
- regenerate proto files
- regenerate proto docs
2019-12-17 14:08:59 +03:00
Evgeniy Kulikov
1a9a840d17
proto: regenerate proto files 2019-11-21 16:16:39 +03:00
Evgeniy Kulikov
c35eefec3b
docs: add doc comments for session and state requests 2019-11-21 16:16:34 +03:00
Evgeniy Kulikov
24e5497b1d
Update develop branch 2019-11-21 13:10:57 +03:00
alexvanin
0af63c42cc docs: regenerate proto files 2019-11-20 21:43:04 +03:00
Evgeniy Kulikov
6050ab755c docs: add state proto documentation 2019-11-20 21:43:00 +03:00
Evgeniy Kulikov
1cf33e5ffd
initial 2019-11-18 16:34:06 +03:00