Commit Graph

9 Commits (23e85d11c499710073ac87625374069fc5520fab)

Author SHA1 Message Date
Evgenii Stratonikov 7864fc3c4d [#55] policy: Fix typo in ErrNotAuthorized
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-11-29 09:21:58 +03:00
Evgenii Stratonikov edf3c26047 [#54] policy: Accept []byte as name
Strings cannot contain non-UTF8 bytes, this is ensured in JSON
marshaling/unmarshaling. At the same time using human-readable strings
can be rather restrictive, because we have 64-byte key limit.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-11-28 13:49:57 +03:00
Evgenii Stratonikov f30fb324ff [#55] policy: Swap signature check order
While implementing the changes for FrostFS ID it became obvious, that
committee signature check can be rather costly (`getCommittee` call +
multiaddress construction + checking witness). In real scenarious it
will mostly fail, so it makes sense do it last.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-11-28 13:49:57 +03:00
Evgenii Stratonikov 0dda536d4a [#55] policy: Fix admin processing in _deploy
Refactoring remnants, there is a single admin now.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-11-28 13:49:57 +03:00
Evgenii Stratonikov e56e8d02ee [#52] policy: Add admin
DCO action / DCO (pull_request) Successful in 57s Details
Tests / Tests (1.20) (pull_request) Successful in 1m31s Details
Tests / Tests (1.19) (pull_request) Successful in 1m37s Details
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-11-24 10:34:22 +03:00
Denis Kirillov 20f86e96b2 [#51] policy: Fix tests
DCO action / DCO (pull_request) Successful in 1m11s Details
Tests / Tests (1.19) (pull_request) Successful in 1m30s Details
Tests / Tests (1.20) (pull_request) Successful in 1m31s Details
We don't want to return Null from contract when list is empty
because generated policy client cannot parse this.

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
2023-11-20 15:43:07 +03:00
Denis Kirillov 5cc34f98e9 [#51] policy: Support Get and ListByPrefix methods
DCO action / DCO (pull_request) Successful in 1m2s Details
Tests / Tests (1.19) (pull_request) Failing after 1m43s Details
Tests / Tests (1.20) (pull_request) Failing after 1m42s Details
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
2023-11-17 14:36:48 +03:00
Evgenii Stratonikov d890a7eba4 [#50] Replace `interface{}` with `any`
DCO action / DCO (pull_request) Successful in 1m6s Details
Tests / Tests (1.19) (pull_request) Successful in 1m17s Details
Tests / Tests (1.20) (pull_request) Successful in 1m12s Details
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-11-07 15:18:48 +03:00
Evgenii Stratonikov 9ed3845aa9 [#44] policy: Initial implementation
DCO action / DCO (pull_request) Successful in 1m7s Details
Tests / Tests (1.19) (pull_request) Successful in 1m21s Details
Tests / Tests (1.20) (pull_request) Successful in 1m18s Details
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-11-02 09:54:36 +03:00