Commit graph

230 commits

Author SHA1 Message Date
Evgeniy Kulikov
55dacf20c1 Merge pull request #3 from nspcc-dev/issue/2
#2 Fix AWS V4 signature regexp

closes #2
2020-07-28 19:14:32 +03:00
Pavel Korotkov
d2ce83a6f8 #2 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
Evgeniy Kulikov
feaa52ae81 Merge pull request #1 from nspcc-dev/NFSSVC-27
NFSSVC-27 Simplify ListBuckets handler
2020-07-28 14:34:36 +03:00
Evgeniy Kulikov
1db70efd7b NFSSVC-27 Add CID to Bucket struct
This is done in order to cache the list of containers in the future
2020-07-28 11:43:42 +03:00
Evgeniy Kulikov
504ef4da91 NFSSVC-27 Return list of buckets from getContainerList 2020-07-28 01:56:10 +03:00
Evgeniy Kulikov
b12b5008e3 NFSSVC-27 Update dependencies 2020-07-28 01:55:08 +03:00
Evgeniy Kulikov
58fdcd090f NFSSVC-27 Fixes for auth middleware 2020-07-28 01:54:47 +03:00
Evgeniy Kulikov
1ca3e6e04b NFSSVC-27 Simplify ListBuckets handler 2020-07-27 09:49:23 +03:00
Evgeniy Kulikov
e59d62237e NFSSVC-27 Migrate to auth.GetBearerToken 2020-07-24 19:24:35 +03:00
Evgeniy Kulikov
e776e9c0cb NFSSVC-27 Implement list-buckets 2020-07-24 19:10:41 +03:00
Pavel Korotkov
309179e9ba Remove other useless stuff 2020-07-24 19:03:57 +03:00
Pavel Korotkov
de0a63a850 Remove useless log message 2020-07-24 19:00:08 +03:00
Pavel Korotkov
0a3187aa0e Remove accidental print 2020-07-24 17:07:45 +03:00
Pavel Korotkov
c939abaf5e Add missing return 2020-07-24 17:05:33 +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
916a216da5 Move user auth procedure to S3 API router; activate overall setting bearer tokens in neofs objects 2020-07-22 22:48:34 +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
Pavel Korotkov
b2289ba10b Add a separate package to encapsulate http related stuff 2020-07-22 18:05:18 +03:00
Pavel Korotkov
1aa22329fa Add setting bearer token in container list method 2020-07-22 17:58:35 +03:00
Evgeniy Kulikov
c6bc8c513b NFSSVC-30 Isolate S3 routing from legacy code 2020-07-22 16:25:09 +03:00
Pavel Korotkov
324bbdb934 Change app name 2020-07-22 15:38:37 +03:00
Pavel Korotkov
e1c43497db Embed bearer token into context 2020-07-22 12:12:22 +03:00
Evgeniy Kulikov
1c6da41bee NFSSVC-25 Isolate health-checkers
- Add mime-type for health-check response
- Remove legacy health-checkers
2020-07-21 17:43:45 +03:00
Pavel Korotkov
4098bfda9c Merged in NFSSVC-23 (pull request #4)
[WIP] Isolate a new auth scheme within a subrouter
2020-07-21 10:50:37 +00: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
24b19152c4 Remove aliasing 2020-07-21 12:58:53 +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
3355a54272 Merge branch 'master' of bitbucket.org:nspcc-dev/neofs-s3-proto into NFSSVC-23 2020-07-21 10:46:53 +03:00
Pavel Korotkov
22487b9ccf Enable auth validation for signed requests 2020-07-21 02:43:40 +03:00
Pavel Korotkov
5d0505001c Update deps 2020-07-21 02:42:48 +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
Evgeniy Kulikov
e0a8e48672 Merged in NFSSVC-24 (pull request #5)
NFSSVC-24 Metric isolation

It now collects:
* Info on invoked routes
* Durations of requests
* Tx/Rx bytes
2020-07-16 13:11:56 +00:00
Evgeniy Kulikov
b9cc4acb99 NFSSVC-24 Migrate and refactoring metrics
- Request time duration
- Collect API/Network stats
2020-07-16 15:42:06 +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
Evgeniy Kulikov
f3f16ba768 NFSSVC-24 Remove unnecessary metrics route 2020-07-15 18:01:36 +03:00
Pavel Korotkov
aa28121466 Introduce a auth center + secure enclave in a separate package 2020-07-15 16:48:25 +03:00
Pavel Korotkov
e670e68226 Set legacy gateway name to the actual gate's name 2020-07-15 13:28:43 +03:00
Pavel Korotkov
d68347ff4d Add secure enclave 2020-07-15 13:01:22 +03:00
Evgeniy Kulikov
dd31b28ab7 Add logging to ObjectLayer.ListBuckets 2020-07-14 16:12:30 +03:00
Evgeniy Kulikov
170f9b4b08 Update scripts for building docker image 2020-07-14 14:33:52 +03:00