Commit graph

341 commits

Author SHA1 Message Date
alexvanin
124666a142 object: Add default filename user header key for third party apps 2020-02-04 13:29:31 +03:00
Evgeniy Kulikov
b528d5c980
Merge pull request #41 from nspcc-dev/update-readme
Update README
2020-02-03 12:38:26 +03:00
Evgeniy Kulikov
d75a56f92e
Update Object.Search, stream 2020-02-03 12:36:37 +03:00
Evgeniy Kulikov
0d3aa8bf4e
Update README 2020-02-03 11:39:03 +03:00
Evgeniy Kulikov
a28f93bf0d
Merge tag 'v0.2.13' into develop
Release v0.2.13
2020-02-03 11:36:24 +03:00
Evgeniy Kulikov
47594556de
Merge branch 'release/0.2.13' 2020-02-03 11:36:10 +03:00
Evgeniy Kulikov
3f5a819af6
CHANGELOG 2020-02-03 11:35:35 +03:00
Evgeniy Kulikov
048cd413cf
Merge pull request #40 from nspcc-dev/prepare-for-separated-proto-lib
Use separated proto repository
2020-02-03 11:25:50 +03:00
Evgeniy Kulikov
80fde665ca
code format 2020-01-30 16:38:52 +03:00
Evgeniy Kulikov
53af48372f
prepare to rename neofs-proto to neofs-api 2020-01-30 16:35:30 +03:00
Evgeniy Kulikov
b42537f8d8
Use separated proto repository
Workflow:
- update goland dependencies
- remove old `*.proto` and `*.pb.go` files
- download specific version of neofs-proto (will be published soon)
- extract proto files into `vendor/proto`
- walk throw `vendor/proto` folders that contains `*.proto` files and override in repo
2020-01-30 16:35:24 +03:00
Evgeniy Kulikov
78d1372cf6
Merge tag 'v0.2.12' into develop
Release v0.2.12
2020-01-27 15:52:56 +03:00
Evgeniy Kulikov
403d999fa3
Merge branch 'release/0.2.12' 2020-01-27 15:52:47 +03:00
Evgeniy Kulikov
131ec937da
Update changelog for v0.2.12 2020-01-27 15:51:58 +03:00
Evgeniy Kulikov
b9107680bb
Merge pull request #39 from nspcc-dev/fix/object_size_NaN
Fix NaN ObjectSize
2020-01-27 15:14:19 +03:00
Evgeniy Kulikov
9366b51ace
Fix NaN ObjectSize 2020-01-27 15:02:14 +03:00
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