Commit graph

1252 commits

Author SHA1 Message Date
Pavel Korotkov
c972682430 [#8] 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 [#8] Add an early changes to auth package
Signed-off-by: Pavel Korotkov <pkorotkov@gmail.com>
2020-08-07 14:12:27 +03:00
Evgeniy Kulikov
0d7f782b93 Merge pull request #14 from nspcc-dev/cleanup
Cleanup and refactoring code structure
2020-08-06 15:10:02 +03:00
Evgeniy Kulikov
0161d2fbd3 [#13] Rename go module name according to NSPCC standards
- refactoring s3 gate structure
- cleanup unused code
- rename go module to `github.com/nspcc-dev/neofs-s3-gate`

closes #13

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-08-06 15:02:13 +03:00
Evgeniy Kulikov
e7f72fc670 Cleanup README.md
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-08-06 14:51:56 +03:00
Evgeniy Kulikov
91ae8b72f8 Cleanup from legacy files
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-08-06 14:49:15 +03:00
Evgeniy Kulikov
9a7f7064f4 Merge pull request #12 from nspcc-dev/cleanup
Cleanup from legacy code usage
2020-08-06 14:05:14 +03:00
Evgeniy Kulikov
4c6572141b Update dependencies (cleanup from legacy code usage) 2020-08-06 13:51:03 +03:00
Evgeniy Kulikov
26dda9ef2b Fixes for handler initialize 2020-08-06 13:50:04 +03:00
Evgeniy Kulikov
e223876d53 Remove legacy code usage 2020-08-06 13:49:25 +03:00
Evgeniy Kulikov
28fa75fb69 Remove pkg-legacy subpackage 2020-08-06 13:48:03 +03:00
Evgeniy Kulikov
c49d2824a1 Remove legacy subpackage 2020-08-06 13:47:44 +03:00
Evgeniy Kulikov
f055e7d269 Merge pull request #9 from nspcc-dev/fixes-for-object-receive
Simplify receiving object from NeoFS
2020-08-05 16:52:43 +03:00
Evgeniy Kulikov
06df8642b3 Simplify receiving object from NeoFS
- add function to receive object with payload
- simplify receiving object for layer.Get
- simplify receiving object for layer.objectGet

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-08-05 16:47:09 +03:00
Evgeniy Kulikov
06c9a126d1 Merge pull request #7 from nspcc-dev/fixes-around-new-layer
Fixes for new NeoFS layer client
2020-08-03 18:22:24 +03:00
Evgeniy Kulikov
f7dc2095b1 Fixes for new NeoFS layer client
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-08-03 18:19:56 +03:00
Evgeniy Kulikov
8101161e51 Merge pull request #6 from nspcc-dev/layer-get-neofs-object
Add NeoFS helper to fetch object by refs.Address
2020-08-03 18:13:49 +03:00
Evgeniy Kulikov
a8c8bdaadf Add NeoFS helper to fetch object by refs.Address
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-08-03 18:08:55 +03:00
Evgeniy Kulikov
2b5b71ac83 Merge pull request #5 from nspcc-dev/object-layer
Refactoring ObjectLayer
2020-08-03 17:36:20 +03:00
Evgeniy Kulikov
2731246239 Refactoring ObjectLayer
- simplify layer.Client
- refactoring neofs pool client

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-08-03 14:51:28 +03:00
Evgeniy Kulikov
b64c986b1c Merge pull request #4 from nspcc-dev/NFSSVC-27
NFSSVC-27 Add session token workaround to connection pool
2020-07-29 14:37:37 +03:00
Evgeniy Kulikov
a200ae327a NFSSVC-27 Add session token workaround to connection pool
- Renew token for connections
- Pool.SessionToken for connection and options

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-07-29 14:30:20 +03:00
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