Pavel Karpy
291fd2f183
[ #1096 ] go.mod: Add SDK replace
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-01-21 10:47:33 +03:00
Pavel Karpy
ed156cd738
[ #1096 ] eacl: Use validator from SDK
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-01-21 10:47:33 +03:00
Pavel Karpy
7c02a2e251
[ #1087 ] *: Adopt SDK changes
...
- Update `neofs-sdk-go`:
v0.0.0-20211230072947-1fe37df88f80 => v0.0.0-20220113123743-7f3162110659
- Add client interface that duplicates SDK's client behaviour and new
`MultiAddressClient` interface that has method that iterates over wrapped
clients.
- Also start using simple client mode that does not require parsing statuses
outside the SDK library.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-01-14 17:29:03 +03:00
Alex Vanin
90f05d4448
[ #1066 ] cli: Support basic ACL constants without final flag
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-12-30 14:07:18 +03:00
Alex Vanin
abca196990
Update neofs-api-go and neofs-sdk-go repositories
...
1. Adds mandatory timeout for all NeoFS API message
transmissions to avoid connection freeze and
goroutine leak.
2. Fixes inconsistency in object placement function.
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-12-28 17:06:27 +03:00
Alex Vanin
904759d5bf
Update neo-go to the latest v0.98.0 release
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-12-09 10:37:06 +03:00
Leonard Lyubich
6f41cd86ed
[ #979 ] Upgrade SDK NeoFS Go dependency
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-12-01 17:31:04 +03:00
Leonard Lyubich
41eaa1e246
[ #973 ] ir: Listen and process Put/Delete events of Subnet contract
...
Define notification events, implement parsers. Add morph client of
Subnet contract. Listen, verify and approve events in Inner Ring app.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-28 16:15:18 +03:00
Pavel Karpy
0c6cdd0afd
[ #987 ] morph/event: Add RemoveNode
event and its parser
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-11-28 14:38:44 +03:00
Leonard Lyubich
7f5fb130c0
[ #961 ] *: Support NeoFS API status returns
...
Upgrade NeoFS API Go library to version with status returns. Make all API
clients to pull out and return errors from failed statuses. Make signature
service to respond with status if client version supports it.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-24 09:26:40 +03:00
Evgenii Stratonikov
95893927aa
*: replace neofs-api-go with neofs-sdk-go
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-11-12 17:29:09 +03:00
Evgenii Stratonikov
0b6350d463
[ #733 ] neofs-adm: fetch contracts release from Github
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-11-01 15:17:18 +03:00
Alex Vanin
99f9f8dd08
Release v0.26.0 - Udo (우도, 牛島)
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-10-19 20:00:00 +03:00
Leonard Lyubich
e0f0188466
[ #907 ] container/put: Work with named containers
...
Add name and zone arguments to `Put` method of wrapper over the Container
contract client. Pass result of `container.GetNativeNameWithZone` function
to the method in `Put` helper function. Due to this, the storage node will
call the method depending on the presence of the container name in the
attributes.
Make IR to listen `putNamed` notification event. The event is processed like
`put` event, but with sanity check of the container attributes.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-10-18 11:54:34 +03:00
Leonard Lyubich
3929f6b396
[ #833 ] Upgrade Neo Go and NeoFS API Go libraries
...
Upgrade Neo Go lib to release v0.97.3.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-10-15 13:56:19 +03:00
Leonard Lyubich
4661f65975
[ #645 ] client/cache: Check response public key in all client operations
...
There is a need to check if public key in the RPC response matches the
public key of the related storage node declared in network map.
Define `ErrWrongPublicKey` error. Implement RPC response handler's
constructor `AssertKeyResponseCallback` which checks public key. Construct
handler and pass it to client's option `WithResponseInfoHandler`.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-09-30 20:57:00 +03:00
Leonard Lyubich
be05bed0b3
[ #860 ] Re-compile protobuf files after make protoc
target update
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-09-29 17:51:33 +03:00
Leonard Lyubich
6f35405dca
[ #860 ] Update google.golang.org/grpc module to v1.41.0
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-09-29 17:51:33 +03:00
Pavel Karpy
27f0758650
[ #760 ] go.mod: Update api-go library
...
github.com/nspcc-dev/neofs-api-go v1.28.3 => v1.29.0
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-08-27 15:03:15 +03:00
Alex Vanin
06af24dd56
[ #752 ] Update neo-go to v0.97.1
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-08-06 18:47:42 +03:00
Pavel Karpy
c3e2738a46
[ #743 ] go.mod: Update neo-go library
...
github.com/nspcc-dev/neo-go v0.96.1 => v0.97.0
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-08-04 12:43:33 +03:00
Alex Vanin
3a34e4a48e
[ #738 ] Update go.mod
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-08-03 21:03:36 +03:00
Pavel Karpy
c2ab0e19ef
[ #735 ] go mod: Update multiaddr library
...
github.com/multiformats/go-multiaddr v0.3.2 => v0.4.0
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-08-02 14:28:58 +03:00
Alex Vanin
62d3eeea6e
[ #719 ] Update neo-go to v0.96.1
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-07-23 19:41:15 +03:00
Pavel Karpy
e753eebaee
Update Neo-Go library to v0.96.0
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-07-23 10:58:26 +03:00
Evgenii Stratonikov
459fe40758
[ #684 ] neofs-adm: add tests for generate-alphabet
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-07-21 15:23:16 +03:00
Pavel Karpy
937210a2d3
Update API Go library to v1.28.3
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-07-07 16:00:51 +03:00
Pavel Karpy
5a20df8e91
Update API Go library to v1.28.2
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-07-07 12:08:23 +03:00
Leonard Lyubich
a2bb59adb8
Update API Go library to v1.28.1
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-07-05 11:05:44 +03:00
Leonard Lyubich
29f9ed90f6
[ #652 ] Update API Go to v1.28.0
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-29 13:44:59 +03:00
Leonard Lyubich
dab33e0f9b
[ #652 ] Update Neo Go to v0.95.3
...
Add `keys.NEP2ScryptParams()` to `keys.NEP2Decrypt` call arguments.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-29 13:44:59 +03:00
Leonard Lyubich
4eca4dc527
[ #638 ] Update github.com/spf13 packages
...
Update:
* `viper` to v1.8.1;
* `cobra` to v1.1.3.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-29 13:44:59 +03:00
Leonard Lyubich
56d4410913
[ #638 ] Update to Go 1.16
...
Changes:
* replace `iotuil` elements with the ones from `os` package;
* replace `os.Filemode` with `fs.FileMode`;
* use `signal.NotifyContext` instead of `NewGracefulContext` (removed).
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-29 13:44:59 +03:00
Leonard Lyubich
6d4154bce6
[ #607 ] Update NeoFS API Go library with updated interface of NodeInfo
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-28 15:52:50 +03:00
Alex Vanin
75709deb6f
Revert "go.mod/spf13: Bump versions"
...
This reverts commit fc2fc9a4f4
.
go1.14 fails `make build*` command.
Go version should be updated.
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-06-23 13:35:31 +03:00
Pavel Karpy
8fac4acd78
[ #629 ] go.mod/compress: Bump version
...
- github.com/klauspost/compress v1.11.3 => v1.13.1
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Pavel Karpy
ad07b54d11
[ #629 ] go.mod/base58: Bump version
...
- github.com/mr-tron/base58 v1.1.3 => v1.2.0
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Pavel Karpy
7ac3fc93d9
[ #629 ] go.mod/go-multiaddr: Bump version
...
- github.com/multiformats/go-multiaddr v0.3.1 => v0.3.2
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Pavel Karpy
0f1369db89
[ #629 ] go.mod/ants/v2: Bump version
...
- github.com/panjf2000/ants/v2 v2.3.0 => v2.4.0
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Pavel Karpy
a328c3bb80
[ #629 ] go.mod/orb: Bump version
...
- github.com/paulmach/orb v0.2.1 => v0.2.2
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Pavel Karpy
ff0322067f
[ #629 ] go.mod/prometheus: Bump version
...
- github.com/prometheus/client_golang v1.6.0 => v1.11.0
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Pavel Karpy
fc2fc9a4f4
[ #629 ] go.mod/spf13: Bump versions
...
- github.com/spf13/cast v1.3.0 => v1.3.1
- github.com/spf13/cobra v1.0.0 => v1.1.3
- github.com/spf13/viper v1.7.0 => v1.8.0
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Pavel Karpy
623d62440c
[ #629 ] go.mod/zap: Bump version
...
- go.uber.org/zap v1.13.0 => v1.17.0
- github.com/stretchr/testify v1.6.1 => v1.7.0
- go.uber.org/atomic v1.5.1 => v1.8.0
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Pavel Karpy
7f45fcdbed
[ #629 ] go.mod/grpc: Bump version
...
- github.com/google/uuid v1.1.1 => v1.1.2
- google.golang.org/grpc v1.29.1 => v1.38.0
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Pavel Karpy
bb8d3b1997
[ #629 ] go.mod/protobuf: Bump version
...
- google.golang.org/protobuf v1.25.0 => v1.26.0
- github.com/golang/protobuf v1.4.3 => v1.5.2
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-22 12:44:41 +03:00
Evgenii Stratonikov
b7dfbf4c23
Update neo-go to v0.95.2
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-06-16 15:16:01 +03:00
Leonard Lyubich
cc81723b01
[ #615 ] blobovnicza: Simplify byte size stringer
...
Make `stringifyByteSize` to return number of bytes as string.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-16 12:14:04 +03:00
Evgenii Stratonikov
9142c778c7
[ #562 ] pkg: remove nspcc-dev/neofs-crypto
dependency
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-06-15 14:49:59 +03:00
Alex Vanin
9b598355a0
Update neofs-api-go to v1.27.1
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-06-10 21:09:43 +03:00
Leonard Lyubich
2f38fef31a
[ #589 ] ir/container: Verify session token lifetime
...
Session tokens have limited lifetime in NeoFS. Container processor should
verify lifetime of the incoming tokens.
Define `NetworkState` interface with `Epoch` method to get number of the
current epoch. Use Netmap contract client's wrapper as `NetworkState` of
Container `Processor`. Check values of token lifetime, and deny if:
* NBF value is gt the current epoch;
* IAT is gt the current epoch;
* EXP is le the current epoch.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-09 10:17:49 +03:00