Commit graph

30 commits

Author SHA1 Message Date
Evgeniy Kulikov
86e07c8882 [] Fix linter warnings
closes 

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-10-13 12:43:24 +03:00
Evgeniy Kulikov
3b1fd968f8 [] Migrate auth package to NeoFS API v2
- upgrade to NeoFS API v2
- upgrade to new Authmate package

closes 

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-10-13 12:33:33 +03:00
Pavel Korotkov
0528eed7b6 [] Bug with AccessKey
Closes .

Signed-off-by: Pavel Korotkov <pkorotkov@gmail.com>
2020-08-19 16:28:17 +03:00
Pavel Korotkov
8d4017f1d3 [] Use proper creds contructor to avoid unnatural convertions
Signed-off-by: Pavel Korotkov <pkorotkov@gmail.com>
2020-08-07 14:12:27 +03:00
Pavel Korotkov
1e608634e7 [] Accept directly bytes from gate key file
Signed-off-by: Pavel Korotkov <pkorotkov@gmail.com>
2020-08-07 14:12:27 +03:00
Pavel Korotkov
d70fe6410b [] Active validation of AWS V4 signature
Signed-off-by: Pavel Korotkov <pkorotkov@gmail.com>
2020-08-07 14:12:27 +03:00
Pavel Korotkov
fdc6d7acbd [] Turn on creds and manager
Signed-off-by: Pavel Korotkov <pkorotkov@gmail.com>
2020-08-07 14:12:27 +03:00
Pavel Korotkov
c972682430 [] Switch outer code to using the new auth scheme
* Removed CLI flag for RSA key
* Passed through peers to auth center to be able to independently interact with a NeoFS node
* Added flag and loader for curve25519 (private) key

Signed-off-by: Pavel Korotkov <pkorotkov@gmail.com>
2020-08-07 14:12:27 +03:00
Pavel Korotkov
490254c69e [] Add an early changes to auth package
Signed-off-by: Pavel Korotkov <pkorotkov@gmail.com>
2020-08-07 14:12:27 +03:00
Pavel Korotkov
d2ce83a6f8 Fix AWS V4 signature regexp
We now respect possible spaces in parts of Authorization header field whoses presence causes problems for some client apps (such as aws cli).

Signed-off-by: Pavel Korotkov <pkorotkov@gmail.com>
2020-07-28 18:54:39 +03:00
Pavel Korotkov
0a3187aa0e Remove accidental print 2020-07-24 17:07:45 +03:00
Pavel Korotkov
f6aeb06ee9 Fast hot fix before rework of auth scheme 2020-07-24 17:03:02 +03:00
Pavel Korotkov
04dbe30f49 Refactor if-blocks in GetBearerToken method 2020-07-23 14:29:36 +03:00
Pavel Korotkov
ae66e4de61 Add throwing error for GetBearerToken method 2020-07-23 11:05:50 +03:00
Pavel Korotkov
9662fb0019 Merged master into NFSSVC-26 2020-07-22 19:06:43 +03:00
Pavel Korotkov
57466b3db2 Add getting/setting bearer token at the auth package 2020-07-22 19:02:35 +03:00
Evgeniy Kulikov
c6bc8c513b NFSSVC-30 Isolate S3 routing from legacy code 2020-07-22 16:25:09 +03:00
Pavel Korotkov
b5bd835cd5 Add error checking while creating auth center 2020-07-21 13:21:03 +03:00
Pavel Korotkov
c6b6076544 Get back checking severe auth errors 2020-07-21 13:07:09 +03:00
Pavel Korotkov
3870f59484 Rename GetNeoFSKey(Public/Private)Key to GetNeoFS(Public/Private)Key 2020-07-21 12:44:25 +03:00
Pavel Korotkov
ea7286c875 Split code into smaller parts within the auth package 2020-07-21 12:40:46 +03:00
Pavel Korotkov
6c0ddca8d0 Add missing error checks 2020-07-21 12:28:00 +03:00
Pavel Korotkov
e4f7a702dc Move auth HTTP header field regexp to a package level variable 2020-07-21 11:35:30 +03:00
Pavel Korotkov
22487b9ccf Enable auth validation for signed requests 2020-07-21 02:43:40 +03:00
Pavel Korotkov
d9b146628d Tune getting bearer token; prepare for passing through bearer token 2020-07-20 20:23:16 +03:00
Pavel Korotkov
3ff7028229 Add early support of auth middleware 2020-07-16 18:33:47 +03:00
Pavel Korotkov
a43c596f49 Remove enclove as a separate entity; move auth center to app settings 2020-07-15 23:16:27 +03:00
Pavel Korotkov
a890d9142d Clear useless comments 2020-07-15 18:31:05 +03:00
Pavel Korotkov
4fc7eaed34 Remove global state 2020-07-15 18:20:45 +03:00
Pavel Korotkov
aa28121466 Introduce a auth center + secure enclave in a separate package 2020-07-15 16:48:25 +03:00