Commit graph

725 commits

Author SHA1 Message Date
alexvanin
959fb58dba Merge tag 'v0.2.11' into develop
Release v0.2.11
2020-01-21 13:12:59 +03:00
alexvanin
934dc5a82b Merge branch 'release/0.2.11' 2020-01-21 13:12:54 +03:00
alexvanin
9683795a22 Update changelog for v0.2.11 2020-01-21 13:12:28 +03:00
Alex Vanin
4bb81ef369
Merge pull request #38 from nspcc-dev/raw-get-head-flag
Raw flag in Get and Head requests
2020-01-21 12:37:06 +03:00
Leonard Lyubich
5bd19fe0d2 Add Raw flag to Get and Head request bodies
Raw flag provides the ability to switch the expected representation
of the object between the physically stored and the system-wide.
The response to the request may vary when the flag is set for some
classes of objects (e.g. linking).
2020-01-21 10:22:40 +03:00
alexvanin
e585cf90b2 Merge tag 'v0.2.10' into develop
Release v0.2.10
2020-01-17 15:09:14 +03:00
alexvanin
25cf1e8b7b Merge branch 'release/0.2.10' 2020-01-17 15:09:08 +03:00
alexvanin
0a2fd1dbc0 Update changelog for v0.2.10 2020-01-17 15:08:21 +03:00
Alex Vanin
40f3b3673d
Merge pull request #37 from nspcc-dev/fix/add-public-keys-to-session-store
session: Add public key to the constructor of new private token
2020-01-17 15:06:20 +03:00
alexvanin
01b910fd31 session: Add public key to the constructor of new private token
Private token based on the token with private key. Therefore
it must inherit public key field through constructor parameter.
2020-01-17 14:56:51 +03:00
alexvanin
a21dd19fad Merge tag 'v0.2.9' into develop
Release v0.2.9
2020-01-17 14:06:58 +03:00
alexvanin
e945525510 Merge branch 'release/0.2.9' 2020-01-17 14:06:53 +03:00
alexvanin
34828f5578 Update changelog for v0.2.9 2020-01-17 14:06:08 +03:00
Alex Vanin
038f934da5
Merge pull request #36 from nspcc-dev/public-keys-in-token
Public keys in token
2020-01-17 13:57:59 +03:00
alexvanin
b556d54f16 session: Modify verify routine to check owner id connection with public keys 2020-01-17 13:18:36 +03:00
alexvanin
98ea69a9d4 docs: Add documentation on public keys field in session token 2020-01-17 13:18:36 +03:00
alexvanin
e88a6ee028 session: Add owner's public key into session token
We want to remove all innner ring queries to authenticate
owner by public keys. Therefore we put public keys into
session token. Later public keys could be gathered with NeoID
or other centre of authority.
2020-01-17 13:18:36 +03:00
Alex Vanin
beb13d5a9f
Merge pull request #34 from nspcc-dev/object-verification-change
Add public key header for new object verification routine
2020-01-17 11:44:41 +03:00
alexvanin
81cdfcc502 object: Update verify routine
Verify routine now supports public key field to check
if integrity header contains correct signature of
object header.

Verify also have strict check that integrity header is
last header in the list of headers.
2020-01-16 17:32:57 +03:00
alexvanin
f1418ef79d object: Add CreateIntegrityHeader function
CreateIntegrityHeader function allow to optimize
object put pipeline in neofs nodes.
2020-01-16 17:32:32 +03:00
alexvanin
c2f63107d0 docs: Add doc about new public key header in object 2020-01-16 17:32:32 +03:00
alexvanin
50d3649acf object: Add public key header type
Object can contain public key header. It will be used
for object verification. This header can contain owner's
public key or be the part of x509 chain verification in
couple with verification header.
2020-01-16 17:32:27 +03:00
alexvanin
f0097d6c24 dep: Update neofs-crypto lib to v0.2.3 2020-01-16 14:17:27 +03:00
Alex Vanin
2703f99630
Merge pull request #33 from nspcc-dev/remove-tombstone-timestamp
object: Remove tombstone creation field in tombstone header
2020-01-15 18:08:57 +03:00
alexvanin
dea7002625 docs: Update doc for object proto file
Tombstone header in the object does not contain
timestamp now.
2020-01-15 17:13:25 +03:00
alexvanin
e4d761be06 object: Remove tombstone creation field in tombstone header
Tombstone header contains timestamp when tombstone was created.
This timestamp duplicates object creation timestamp in object
system header. This commit removes redundant field.
2020-01-15 17:13:05 +03:00
alexvanin
d5072d20f0 docs: Add doc for container ACL field
ACL support still under development. Detailed documentation on
container access rules will be added later.
2020-01-15 17:13:05 +03:00
Evgeniy Kulikov
35e92e5227
Merge tag 'v0.2.8' into develop
Release v0.2.8
2019-12-21 12:25:53 +03:00
Evgeniy Kulikov
abc3c371ce
Merge branch 'release/0.2.8' 2019-12-21 12:25:45 +03:00
Evgeniy Kulikov
e1b7d0a7a6
CHANGELOG 2019-12-21 12:25:35 +03:00
Evgeniy Kulikov
c671e9b568
Merge pull request #31 from nspcc-dev/optimize-sign-verify-request-headers
service: Use sync pool for Sign/Verify request headers
2019-12-21 12:12:11 +03:00
Evgeniy Kulikov
8d028100e9
service: Use sync pool for Sign/Verify request headers
```
// Before
BenchmarkSignRequestHeader-8   	     146	   8070375 ns/op	 4210607 B/op	      48 allocs/op
BenchmarkVerifyRequestHeader-8   	      14	  83058325 ns/op	42085955 B/op	    1601 allocs/op

// After
BenchmarkSignRequestHeader-8   	     156	   7709172 ns/op	   33902 B/op	      45 allocs/op
BenchmarkVerifyRequestHeader-8   	      15	  76910232 ns/op	   54368 B/op	    1563 allocs/op

// Summary:
benchmark                          old ns/op     new ns/op     delta
BenchmarkSignRequestHeader-8       8070375       7709172       -4.48%
BenchmarkVerifyRequestHeader-8     83058325      76910232      -7.40%

benchmark                          old allocs     new allocs     delta
BenchmarkSignRequestHeader-8       48             45             -6.25%
BenchmarkVerifyRequestHeader-8     1601           1563           -2.37%

benchmark                          old bytes     new bytes     delta
BenchmarkSignRequestHeader-8       4210607       33902         -99.19%
BenchmarkVerifyRequestHeader-8     42085955      54368         -99.87%
```
2019-12-20 17:14:51 +03:00
Evgeniy Kulikov
b76841b4b8
Merge pull request #28 from nspcc-dev/container-acl
Container access control type definitions
2019-12-19 01:41:46 +03:00
Leonard Lyubich
6ad23612c9 Use expanded field naming in AccessGroup structure 2019-12-17 19:48:44 +03:00
Evgeniy Kulikov
1d4f28dd48
Merge tag 'v0.2.7' into develop
Release v0.2.7
2019-12-17 18:04:22 +03:00
Evgeniy Kulikov
a7f2026db0
Merge branch 'release/0.2.7' 2019-12-17 18:04:11 +03:00
Evgeniy Kulikov
a52e26389e
CHANGELOG 2019-12-17 18:03:24 +03:00
Evgeniy Kulikov
41167eb040
Merge pull request #29 from nspcc-dev/fix-bug-with-decoding-metrics
Fix bug with DecodeMetrics (empty metrics returns)
2019-12-17 18:00:28 +03:00
Evgeniy Kulikov
f557f24616
Fix bug with DecodeMetrics (empty metrics returns) 2019-12-17 17:53:48 +03:00
Leonard Lyubich
7e6e30b850 Add unit tests for container access modes 2019-12-17 16:15:51 +03:00
Leonard Lyubich
6b6728356a Container access control type definitions 2019-12-17 15:47:54 +03:00
Evgeniy Kulikov
805ef243ee
Merge tag 'v0.2.6' into develop
Release v0.2.6
2019-12-17 14:30:49 +03:00
Evgeniy Kulikov
96e38dd90f
Merge branch 'release/0.2.6' 2019-12-17 14:30:38 +03:00
Evgeniy Kulikov
13bc423c45
CHANGELOG 2019-12-17 14:30:23 +03:00
Evgeniy Kulikov
c9a913d419
Merge pull request #27 from nspcc-dev/add-rpc-method-for-dumping-node-settings
Add rpc method for dumping node settings
2019-12-17 14:26:50 +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
3e30d3bb16
Merge branch 'release/0.2.5' into develop 2019-12-05 14:46:01 +03:00
Evgeniy Kulikov
3fc1c74ee5
Merge branch 'release/0.2.5' 2019-12-05 14:45:51 +03:00
Evgeniy Kulikov
1f22bcc9c1
CHANGELOG 2019-12-05 14:45:40 +03:00