Commit graph

551 commits

Author SHA1 Message Date
Leonard Lyubich
78fdc7a787
Merge pull request #101 from nspcc-dev/refactor-acl-package
acl: refactor the package
2020-07-23 17:05:53 +03:00
Leonard Lyubich
befb34a9ff acl: refactor the package
This commit:

  * replaces the wrappers of the messages to eacl sub-package;

  * renames Target to Group in eacl package;

  * defines Group constants;

  * replaces EACLTable message marshaler (unmarshaler) with custom MarshalTable
    (UnmarshalTable) of the Table.
2020-07-23 14:51:21 +03:00
Alex Vanin
630ac612ea
Merge pull request #100 from nspcc-dev/neo3/address
Use NEO3 based address generation
2020-07-21 18:52:20 +03:00
alexvanin
1958ff8c37 Use NEO3 based address generation
With neo-go v0.90.0 there are new event subscription component
and new verification script routines based on NEO3. These features
allow to avoid using low-level neo-vm code in NeoFS and corresponding
projects.

This commit removes unused function:
- FetchPublicKeys (used in neofs indexer),
- VerificationScript (used in KeysToAddress),
- Address (used in KeysToAddress),
- ReversedScriptHashToAddress (used in neofs indexer),
- IsAddress (used in neofs indexer),
- ReverseBytes (used in neofs indexer),
- DecodeScriptHash (used in neofs indexer).

KeysToAddress changed into KeyToAddress because NeoFS won't work with
multisignature owners for now and it is not supported in neo-go library.
2020-07-20 16:43:31 +03:00
Alex Vanin
8cb9ac0528
Merge pull request #97 from nspcc-dev/ImplementingProtoClone
Implementing proto.Clone
2020-07-17 18:19:54 +03:00
Leonard Lyubich
3dff202073 Merge tag 'v1.2.0' into develop
Release v1.2.0
2020-07-08 11:10:05 +03:00
Leonard Lyubich
3cc34a823f Merge branch 'release/1.2.0' 2020-07-08 11:09:56 +03:00
Leonard Lyubich
2bf5a0c30b Update changelog and readme for v1.2.0 2020-07-08 11:09:29 +03:00
Leonard Lyubich
123837af93
Merge pull request #99 from nspcc-dev/feature/upgrade-to-api-v1.2.0
Update to neofs-api v1.2.0
2020-07-08 10:56:22 +03:00
Leonard Lyubich
504804f806 Update to neofs-api v1.2.0 2020-07-08 10:50:58 +03:00
Leonard Lyubich
494a52c35a
Merge pull request #98 from nspcc-dev/eacl-addition
Add a rich functionality of management of NeoFS extended ACL
2020-07-08 10:04:05 +03:00
Pavel Korotkov
2fba8cb7b3 acl: make MatchType's constants public back 2020-07-08 01:10:07 +03:00
Pavel Korotkov
f826517207 acl: delete unused types 2020-07-08 01:09:54 +03:00
Pavel Korotkov
d0f56e5044 acl: reorganize files 2020-07-08 01:09:46 +03:00
Pavel Korotkov
0db55d31ae acl: remove tests 2020-07-08 01:09:36 +03:00
Pavel Korotkov
ec4fb22e30 acl: fix an erroneous method name in comments 2020-07-08 01:09:21 +03:00
Pavel Korotkov
1dd4d48b5f alc: add a rich functionality to manage Extended ACL 2020-07-08 01:08:53 +03:00
Evgeniy Kulikov
d45548c43b
Implementing proto.Clone 2020-07-03 09:17:35 +03:00
Alex Vanin
4fadb5040b
Merge pull request #96 from nspcc-dev/feature/matryoshka-signatures
service: sign requests on the principle of Matryoshka
2020-06-24 14:33:01 +03:00
Leonard Lyubich
5e1e220988 service: sign requests on the principle of Matryoshka
This commit changes SignRequestData / VerifyRequestData functions to
add the list of previous public keys to a signed message for all
requests.
2020-06-22 17:26:59 +03:00
Leonard Lyubich
ce4513ce54 Merge tag 'v1.1.0' into develop
Release v1.1.0
2020-06-18 17:26:27 +03:00
Leonard Lyubich
2456521240 Merge branch 'release/1.1.0' 2020-06-18 17:26:15 +03:00
Leonard Lyubich
d3984cf236 Update changelog and readme for v1.1.0 2020-06-18 17:25:39 +03:00
Leonard Lyubich
6b5f81f205
Merge pull request #95 from nspcc-dev/support-eacl-signed-payload
container: implement SignedDataSource interface on EACL messages
2020-06-18 16:32:39 +03:00
Leonard Lyubich
03bc5c5f89 container: implement SignedDataSource interface on EACL messages 2020-06-18 16:26:44 +03:00
Leonard Lyubich
6cbf6562c6
Merge pull request #94 from nspcc-dev/implement-bearer-interface-on-message
service: implement BearerToken interface on BearerTokenMsg message
2020-06-18 16:12:15 +03:00
Leonard Lyubich
a3c4889945 service: implement BearerToken interface on BearerTokenMsg message
This commit:

  * implements (Set)ExpirationEpoch methods on BearerTokenMsg;

  * removes BearerTokenMsg wrapper.
2020-06-18 16:08:44 +03:00
Leonard Lyubich
42956686f6
Merge pull request #93 from nspcc-dev/add-x-headers-to-request-data
Add X-headers to request data
2020-06-18 15:53:32 +03:00
Leonard Lyubich
c360b7d19c service: add ExtendedHeader list to signed payload of the requests 2020-06-18 15:50:01 +03:00
Leonard Lyubich
db53e2ea39 service: make RequestData to provide ExtendedHeadersSource interface 2020-06-18 15:47:55 +03:00
Leonard Lyubich
2bef390cc6
Merge pull request #92 from nspcc-dev/add-bearer-token-to-request-data
Add bearer token to signed request data
2020-06-18 15:40:33 +03:00
Leonard Lyubich
a3569ad99e service: ad BearerToken to signed payload of the requests 2020-06-18 15:28:58 +03:00
Leonard Lyubich
3f7d3f8a86 service: make RequestData to provide BearerTokenSource interface 2020-06-18 15:24:17 +03:00
Alex Vanin
ce5264a479
Merge pull request #91 from nspcc-dev/update-to-api-v1.1.0
Update to neofs-api v1.1.0
2020-06-18 15:21:33 +03:00
Leonard Lyubich
ee584f325c Update to neofs-api v1.1.0 2020-06-18 15:01:25 +03:00
Leonard Lyubich
fe6672d480
Merge pull request #90 from nspcc-dev/feature/x-headers-definition
service: define request X-headers interface
2020-06-18 14:44:47 +03:00
Leonard Lyubich
705582dbc7 service: define request X-headers interface 2020-06-18 14:41:44 +03:00
Leonard Lyubich
73e90be443
Merge pull request #89 from nspcc-dev/feature/bearer-token-definition
service: define BearerToken interface
2020-06-18 14:40:41 +03:00
Leonard Lyubich
55c3b714c0 service: define BearerToken interface 2020-06-18 14:37:42 +03:00
Leonard Lyubich
4709d46292
Merge pull request #88 from nspcc-dev/feature/sign-verify-payload-group
service: support broken apart signable payload of the requests
2020-06-15 13:58:54 +03:00
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
Evgeniy Kulikov
8dbd65132d
Merge tag 'v1.0.0' into develop
Release v1.0.0
2020-05-26 13:12:11 +03:00
Evgeniy Kulikov
72a2668265
Merge branch 'release/1.0.0' 2020-05-26 13:12:00 +03:00
Evgeniy Kulikov
e5fccc5f25
CHANGELOG 2020-05-26 13:11:55 +03:00
Evgeniy Kulikov
a2af84ba6e
Merge pull request #86 from nspcc-dev/bump-major-release
Bump major release
2020-05-26 13:09:44 +03:00
Evgeniy Kulikov
a50442199a
Bump major release 2020-05-26 13:06:43 +03:00
Leonard Lyubich
47476bf9c3 Merge tag 'v0.7.6' into develop
Release v0.7.6
2020-05-19 13:29:58 +03:00
Leonard Lyubich
9b0757c6b1 Merge branch 'release/0.7.6' 2020-05-19 13:29:46 +03:00
Leonard Lyubich
114144646b Update changelog for v0.7.6 2020-05-19 13:29:27 +03:00
Leonard Lyubich
e183188239
Merge pull request #85 from nspcc-dev/object-intergrity-header-signed-payload
object: implement SignedData() and AddSignKey() methods on IntegrityH…
2020-05-18 16:54:22 +03:00