Commit graph

458 commits

Author SHA1 Message Date
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
Roman Khimov
5eb863dc22 *: fix golint warnings about comments to exported things. 2021-05-13 23:25:31 +03:00
Roman Khimov
70a70bfa2c *: fix all godot errors 2021-05-13 22:25:32 +03:00
Roman Khimov
a0ecb8ff52 handler: suppress exhaustive linter 2021-05-13 22:15:21 +03:00
Roman Khimov
b851889934 *: fix whitespace errors 2021-05-13 22:13:09 +03:00
Roman Khimov
7ce5b3392f cmd/gate: fix gosimple suggestion
cmd/gate/app-settings.go:108:36  gosimple    S1019: should use make(map[string]float64) instead
2021-05-13 22:11:55 +03:00
Roman Khimov
e15159443b Dockerfile: reuse make, drop upx
upx is nice, but not necessary for this and duplicating Makefile is just not
good.

Note that in absence of vendoring building this can be problematic at the
moment because of private repository dependency, it'll be solved in future.
2021-05-13 22:08:33 +03:00
Roman Khimov
4577077981 gitignore: more ignores 2021-05-13 22:08:20 +03:00
Roman Khimov
8af01b89a1 Makefile: rework based on neofs-http-gate
Non-Docker builds by default, no vendoring, more useful targets.
2021-05-13 22:07:07 +03:00
Evgeniy Kulikov
859b4d5814 Merge pull request #44 from nspcc-dev/update-dependencies
Update dependencies
2021-02-12 15:19:26 +03:00
Evgeniy Kulikov
26636235d6 Update dependencies
- update dependencies
  - github.com/aws/aws-sdk-go v1.37.9
  - github.com/nspcc-dev/cdn-sdk v0.3.4
  - github.com/nspcc-dev/neofs-api-go v1.23.0

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2021-02-12 12:27:22 +03:00
Evgeniy Kulikov
df68f350a0 Merge pull request #43 from nspcc-dev/refactoring-makefile
Refactoring Makefile
2021-02-08 12:46:43 +03:00
Evgeniy Kulikov
cdc21422ff Refactoring Makefile
- add `help.mk`
- add target to build and publish image
- update README

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2021-02-08 12:45:18 +03:00
Evgeniy Kulikov
0861d7bb9b Merge pull request #41 from nspcc-dev/fix-readme-and-settings
Fix README and settings
2021-02-02 13:53:56 +03:00
Evgeniy Kulikov
3e124a87c9 Merge pull request #40 from nspcc-dev/migrate-to-sdk-0.3.3-and-fix-39
Update dependencies and fixes
2021-02-02 12:56:01 +03:00
Evgeniy Kulikov
50ef46f63c Fix README and settings
- remove `generated`, not used anymore
- update `README` section about configuration

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2021-02-02 12:23:28 +03:00
Evgeniy Kulikov
8467a07c9b Update dependencies and fixes
- Closes #39
- Cleanup code
- Make code more readable
- Update dependencies
	- github.com/aws/aws-sdk-go v1.37.1
	- github.com/google/uuid v1.2.0
	- github.com/nspcc-dev/cdn-sdk v0.3.3
	- github.com/nspcc-dev/neofs-api-go v1.22.2

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2021-02-01 19:59:42 +03:00
Evgeniy Kulikov
c26045007b Release v0.14.1 with CDN SDK v0.3.1 and NeoFS API Go v1.22.1
- github.com/aws/aws-sdk-go v1.36.26 => v1.36.28
- github.com/google/uuid v1.1.4 => v1.1.5
- github.com/nspcc-dev/cdn-sdk v0.3.0 => v0.3.1
- github.com/nspcc-dev/neofs-api-go v1.22.0 => v1.22.1

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2021-01-18 11:04:54 +03:00
Evgeniy Kulikov
5962dbf3f7 run deps before image build
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2021-01-15 00:18:40 +03:00
Evgeniy Kulikov
d3b299c84d Merge pull request #38 from nspcc-dev/update-sdk-and-fixes
Migrate to SDK 0.3.0 and fixes
2021-01-15 00:14:07 +03:00