Commit graph

393 commits

Author SHA1 Message Date
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
Angira Kekteeva
05acf25251 *: Add docker to workflows
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-24 16:11:46 +03:00
Roman Khimov
69e6f206dc Merge pull request #58 from masterSplinter01/feature/57-fix-docker-builds
[#57] Fix docker builds
2021-05-24 16:04:35 +03:00
Angira Kekteeva
d87a5a89d6 [#57] *: Fix docker builds
Added dep dependency before image target, made `run make` without dep
in dockerfile.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-24 15:07:08 +03:00
Roman Khimov
a565c4fd50 Merge pull request #56 from masterSplinter01/feature/51-add-workflow
Add workflow
2021-05-24 12:31:55 +03:00
Angira Kekteeva
088cd76bc2 [#51] *: Temporarily disable some jobs of workflow
Because building and publishing of docker images are not working now.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-21 18:50:14 +03:00
Angira Kekteeva
6e12493623 [#51] *: Add github workflows
File have been taken from neofs-http-gw.
Commit 9604f9f4b16bbe211cf967c6d270ecb412fb0a208.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-21 18:49:49 +03:00
Roman Khimov
43864fdd86 Merge pull request #55 from roman-khimov/deduplicate-bin-build
Deduplicate binary builds
2021-05-20 22:11:22 +03:00
Roman Khimov
92c8cce933 misc: move to internal/version, use for all binaries
No libmisc, please.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-20 16:26:41 +03:00
Roman Khimov
ef8684c11d s3-gw: drop build time setting
It's not properly set anyway and it's a bad practice for build
reproducibility.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-20 16:26:20 +03:00