Commit graph

977 commits

Author SHA1 Message Date
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
Roman Khimov
e622f1987b Makefile: deduplicate binaries
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-20 16:26:20 +03:00
Roman Khimov
4e8412b86c Merge pull request #54 from masterSplinter01/53-drop-pkg-errors-dependency
[#53] *: Remove external pkg/errors dependency
2021-05-20 15:50:52 +03:00
Angira Kekteeva
9d496d70a7 [#53] *: Remove external pkg/errors dependency
Replaced functions from pkg/errors by functions from errors, fixed not fully correct comment

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-20 15:50:14 +03:00
Roman Khimov
b595f04ce0 Merge pull request #52 from masterSplinter01/46-move-authmate-to-neofs-s3-gw
Move authmate to neofs-s3-gw
2021-05-19 20:00:56 +03:00
Angira Kekteeva
1302c7ae78 [#46] *: Add comments, fix typos
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-19 19:27:02 +03:00
Angira Kekteeva
d46578ce0b [#46] authmate: Remove excessive definitions of capacities from slice creations
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-19 19:25:06 +03:00
Angira Kekteeva
036d4c9cea [#46] authmate: Rename s3.go to authmate.go
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-19 15:29:32 +03:00
Angira Kekteeva
5b275bad18 [#46] *: Reorganize variables and rename binary file in Makefile
Fix variables for docker, sorted variables' blocks
Rename binary from authmate to neofs-authmate

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-19 15:29:32 +03:00
Angira Kekteeva
3c61c69f44 [#46] authmate: Rename s3 package to authmate
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-19 12:35:48 +03:00
Angira Kekteeva
acc84a6464 [#46] authmate: Add authmate'dependencies to go.mod
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-19 12:27:41 +03:00
Angira Kekteeva
2847447813 [#46] Add buiding of authmate's binaries to makefile
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-19 12:18:20 +03:00
Angira Kekteeva
50e4eb3b43 [#46] authmate: Copy files from cdn-authmate repository to neofs-s3-gw
Copy authmate main file and s3 agent

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-18 21:49:09 +03:00
Roman Khimov
1d9f97374e Merge pull request #50 from masterSplinter01/replace_s3-gate-by-s3-gw
Replace s3-gate by s3-gw
2021-05-18 15:14:51 +03:00
Angira Kekteeva
a399590204 Replace s3-gate by s3-gw
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-18 14:12:24 +03:00
Roman Khimov
2b967db7c0 Merge pull request #45 from roman-khimov/build-fixes
Build fixes
2021-05-14 10:25:26 +03:00
Roman Khimov
8e67a374d2 golangci: add configuration
The same one as used by HTTP gate.
2021-05-13 23:26:05 +03:00