Commit graph

320 commits

Author SHA1 Message Date
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
Evgeniy Kulikov
c38c4ca5db Add posibility to serve HTTPS/TLS connection 2020-07-13 18:50:11 +03:00
Evgeniy Kulikov
b9c4156e5b Fix S3 NeoFS integration 2020-07-13 14:25:26 +03:00
Evgeniy Kulikov
45d31752a9 Fixes for S3 API router 2020-07-13 13:22:37 +03:00
Evgeniy Kulikov
48d8138474 Move metrics, pprof and healthy routes to /system subrouter 2020-07-13 12:51:21 +03:00
Evgeniy Kulikov
151c3c672a Prepare to export 2020-07-13 02:05:51 +03:00
Evgeniy Kulikov
0bdd3e4507 Merged in refactoring (pull request #2)
Refactoring

Approved-by: Pavel Korotkov
2020-07-09 11:49:48 +00:00
Evgeniy Kulikov
212e1a50b7 Move s3-gate files to cmd/gate 2020-07-09 12:28:52 +03:00
Evgeniy Kulikov
3c7682402e Rename cmd -> legacy 2020-07-09 12:28:51 +03:00
Evgeniy Kulikov
1665c8e35e Rename cmd -> legacy 2020-07-09 12:28:51 +03:00
Evgeniy Kulikov
b75a189805 Refactoring cmd package 2020-07-09 12:28:51 +03:00