Commit graph

752 commits

Author SHA1 Message Date
Roman Khimov
dfbe543c61 Merge pull request #90 from KirillovDenis/feature/83-use_multiple_bearer_tokens
[#83] Use multiple bearer tokens
2021-06-18 19:55:05 +03:00
Denis Kirillov
81408dcc1c [#83] Added sessionKey to token
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-18 19:17:32 +03:00
Denis Kirillov
d1594b586e [#83] Use multiple bearer tokens
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-18 11:19:07 +03:00
Roman Khimov
9060b0a988 Merge pull request #85 from KirillovDenis/feature/75-using_256r1_instead_of_ed25519
[#75] Using secp256r1 instead of curve25519
2021-06-17 16:39:17 +03:00
Denis Kirillov
78eb1945e3 [#75] Fixed authContainer basic acl
Allowed GET operation to OTHERS
(it's need to successfully fetch accessbox).

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-17 16:36:54 +03:00
Denis Kirillov
b86d20265d [#75] Using secp256r1 instead of curve25519
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-17 16:36:23 +03:00
Roman Khimov
aa950b8af6 Merge pull request #86 from masterSplinter01/feature/72-session-token-in-authmate
[#72] Session token in authmate
2021-06-17 14:13:29 +03:00
Angira Kekteeva
44da6cf70c [#72] authmate: Add session token
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-17 14:09:58 +03:00
Angira Kekteeva
0814bf3d01 Merge pull request #87 from roman-khimov/lint
Linter fixes
2021-06-16 23:01:29 +03:00
Roman Khimov
473536372a Merge pull request #84 from KirillovDenis/bugfix/82-pass_bearer_to_request
[#82] Using bearer token
2021-06-16 12:58:54 +03:00
Roman Khimov
996b2d8667 auth: add missing comment
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-06-15 18:50:10 +03:00
Roman Khimov
b20d249bcd tokens: gofmt
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-06-15 18:48:39 +03:00
Roman Khimov
df3746ad03 s3-gw: drop dead code
cmd/s3-gw/app-settings.go:31:2   deadcode  `defaultKeepaliveTime` is unused
cmd/s3-gw/app-settings.go:32:2   deadcode  `defaultKeepaliveTimeout` is unused

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-06-15 18:47:50 +03:00
Denis Kirillov
6a135a6bb4 [#82] Using bearer token
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-15 17:16:26 +03:00
Roman Khimov
2b75bb3420 Merge pull request #81 from KirillovDenis/feature/78-using_object_interface
[#78] Using client.Object from sdk
2021-06-15 17:09:08 +03:00
Denis Kirillov
fba29a9a66 [#78] Using client.Object from sdk
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-15 17:06:19 +03:00
Roman Khimov
ee078eabcc Merge pull request #80 from masterSplinter01/feature/48-protobuf-format-authbox
Protobuf format of accessbox
2021-06-15 16:57:22 +03:00
Angira Kekteeva
fe2d507121 [#48] creds,authmate:Replace old accessbox by new
Removed encoder, decoder wraps.
Made changes in api, authmate and creds via new accessbox.
Updated bearer_token_tests via new accessbox.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-15 14:54:11 +03:00
Roman Khimov
a59d7bc5d8 Merge pull request #79 from KirillovDenis/feature/65-allow_no_sign_requests
[#65] Allow no sign requests
2021-06-15 10:23:46 +03:00
Angira Kekteeva
364257c5fd [#48] creda: Add accessbox in protobuf format
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-14 16:38:37 +03:00
Denis Kirillov
47fc10a869 [#65] Using containerList falls back
Looking container up using the owner list if its name is not cid

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-13 14:32:13 +03:00
Denis Kirillov
4df647baac [#65] Added NoAuthorizationHeader error
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-11 19:29:55 +03:00
Denis Kirillov
8185b71462 [#65] Allow no sign requests
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-11 14:52:03 +03:00
Roman Khimov
12b92a31c6 Merge pull request #74 from KirillovDenis/feature/73-drop_grpc_options
[#73] Dropped grpc keepalive options
2021-06-11 11:43:51 +03:00
Denis Kirillov
2e96ce6dcd [#73] Dropped grpc keepalive options
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-11 09:49:32 +03:00
Roman Khimov
e5abffd5de CHANGELOG: release 0.15.0
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-06-10 20:30:20 +03:00
Roman Khimov
1f6049ca71 Merge pull request #76 from roman-khimov/doc-update
Documentation update
2021-06-10 18:25:40 +03:00
Roman Khimov
f09f659941 README: add more sections based on http-gw, explain auth more
Fixes #42.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-06-10 18:01:34 +03:00
Roman Khimov
3cac112f5f s3-gw: expose TLS options in help
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-06-10 15:27:13 +03:00
Roman Khimov
6d07f888ad cert: drop it from the repository
Makes no sense storing it.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-06-09 19:16:26 +03:00
Roman Khimov
6278e654c5 Merge pull request #70 from masterSplinter01/misc/67-authmate-documentation
Add authmate docs  to readme.md
2021-06-08 13:43:35 +03:00
Angira Kekteeva
626b69ad3b [#67] readme: Add info about authmate
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-08 10:27:13 +03:00
Roman Khimov
f66354f602 Merge pull request #69 from masterSplinter01/feature/68-update-api-go-sdk-go-versions
Update api go and sdk go versions
2021-06-04 21:05:31 +03:00
Angira Kekteeva
b3b190adc0 [#68] *: Replace deprecated
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-04 16:01:42 +03:00
Angira Kekteeva
abfaa0bd48 [#68] go.mod: Update api-go and sdk-go versions
Updated version of api-go from 1.26.1 to 1.27.0.
Removed replace in go.mod.
Updated version of sdk-go.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-04 16:00:58 +03:00
Roman Khimov
6ac5dd52d5 Merge pull request #66 from masterSplinter01/feature/64-fix-authmate
[#64]  Fix access key id
2021-06-03 22:52:43 +03:00
Angira Kekteeva
1a818bac33 [#64] authmate, auth: Fix access key id
Replaced forbidden symbol '/' in access key id by '_'
SecretKeyAddress and SecretKeyID are different things now
Renamed param of authmate from secretAddressFlag to accessKeyIDFlag,
that is more correct, imo.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-03 22:24:02 +03:00
Angira Kekteeva
a118116ac0 Merge pull request #63 from roman-khimov/unneofs-sdk-go
*: drop creds/neofs
2021-05-31 21:28:09 +03:00
Roman Khimov
d15687f37c *: drop creds/neofs
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-28 23:48:39 +03:00
Angira Kekteeva
1e54e3703e Merge pull request #62 from roman-khimov/use-sdk-go
*: use sdk-go instead of http-gw
2021-05-28 14:45:46 +03:00
Roman Khimov
35ffc1fbc1 *: use sdk-go instead of http-gw
Now that the packages have moved there we can do it.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-28 14:05:46 +03:00
Angira Kekteeva
1e6d3ebea6 Merge pull request #60 from roman-khimov/drop-cdn-sdk
Drop old sdk
2021-05-27 21:42:59 +03:00
Roman Khimov
24e263df5c creds/s3: remove unused package
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-27 20:47:55 +03:00
Roman Khimov
1c277bd97b api: fix golint suggestion for proper context usage
api/user-auth.go:27:5  golint  should not use basic type string as key in context.WithValue

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-26 21:25:37 +03:00
Roman Khimov
184c26551a *: fix comments for golint
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-26 21:23:48 +03:00
Roman Khimov
d19ce03072 *: drop old sdk dependecies, bump neofs-api-go version
I'm not sure it works, but it's enough code-wise for now. We're reusing some
http-gw components here that are to be moved into sdk-go in future.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-26 21:01:46 +03:00
Roman Khimov
dbe65ae602 creds: move credential management into s3 gate
Mostly taken from old SDK (abe47687cd11266f946cad57f07572cc10c67226), but
error handling adapted to eliminate pkg/errors and internal packages.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-25 23:00:19 +03:00
Roman Khimov
ce7c8932d4 authmate: drop creds/s3 dependency
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-25 19:52:51 +03:00
Roman Khimov
69e3e22dbc cmd: drop grace package dependency
Note that signal.NotifyContext is a Go 1.16 feature.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-25 13:32:08 +03:00
Roman Khimov
787c6836aa Merge pull request #59 from masterSplinter01/feature/add-docker-to-workflows
*: Add docker to workflows
2021-05-24 16:28:38 +03:00