Commit graph

570 commits

Author SHA1 Message Date
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
Evgeniy Kulikov
2a93a216f8 Migrate to SDK 0.3.0 and fixes
- fix displaying list objects
- simplify `ListObjects`
- simplify `GetObjectHandler`
- simplify `HeadObjectHandler`
- add method for `GetBucketVersioningHandler`
- add method for `ListMultipartUploadsHandler`
- improvements for `HeadObjectHandler`, to display folders meta
- update dependencies
  - github.com/aws/aws-sdk-go v1.36.26
  - github.com/google/uuid v1.1.4
  - github.com/gorilla/mux v1.8.0
  - github.com/nspcc-dev/cdn-sdk v0.3.0
  - github.com/nspcc-dev/neofs-api-go v1.22.0
  - github.com/prometheus/client_golang v1.9.0
  - github.com/stretchr/testify v1.7.0
  - google.golang.org/grpc v1.35.0

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2021-01-14 20:39:48 +03:00
Evgeniy Kulikov
ef7b480493 Merge pull request #36 from nspcc-dev/migrate-to-cdn-sdk
Migrate to CDN SDK
2020-12-11 10:25:59 +03:00
Evgeniy Kulikov
8ff289ea4f Simplify OffsetWriter
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-12-10 18:15:43 +03:00
Evgeniy Kulikov
8168181658 Remove bufio writer and double creation of OffsetWriter
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-12-10 18:15:18 +03:00
Evgeniy Kulikov
776eed76fb Add writer detector
WriterDetector allows to fetch ContentType and write status response, when streaming content

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-12-10 18:14:32 +03:00
Evgeniy Kulikov
ef0e179b33 Fixes over bucket router
should work over {bucket}.{domain} and /{bucket}

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-12-10 18:13:28 +03:00
Evgeniy Kulikov
793925497a Add listen-domains
- add listen-domains config key
- add method to fetch domains list to listen

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-12-10 18:11:45 +03:00
Evgeniy Kulikov
4cf1a207ef Fix doc link 2020-12-02 12:49:57 +03:00
Evgeniy Kulikov
709d9f37e8 Prepare to release
- set output for flag set
- change env prefix for all environments
- migrate to CDN SDK release v0.1.0
- update README

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-12-02 12:46:51 +03:00
Evgeniy Kulikov
d7a36f2fb4 Migrate to CDN SDK release
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-12-02 12:36:18 +03:00
Evgeniy Kulikov
580da7373b Change ENV prefix
TODO should be replaced with S3_GW before release

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-12-01 10:56:02 +03:00
Evgeniy Kulikov
f5fb850c3f Change ENV prefix
TODO should be replaced with S3_GW before release

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-12-01 10:02:26 +03:00
Evgeniy Kulikov
5752f2f89f Add method to fetch SecretAccessKey from BearerToken
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-27 16:33:56 +03:00
Evgeniy Kulikov
67f2239e6b Migrate to NeoFS API Go v1.20.3
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-27 15:37:25 +03:00
Evgeniy Kulikov
f4263d50a7 Refactoring api/layer
- don't require token.BearerToken
- simplify method layer.objectPut
- add method to check that object exists
- add method to fetch Owner (from context or sdk client)

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-27 15:36:15 +03:00
Evgeniy Kulikov
31d3e55489 Add content detector
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-27 15:33:31 +03:00
Evgeniy Kulikov
1868034723 Refactoring api/handler
- don't require token.BearerToken
- don't call `GetObjectInfo`

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-27 15:32:52 +03:00
Evgeniy Kulikov
58b877b97c Refactoring auth.Center
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-27 15:31:39 +03:00
Evgeniy Kulikov
697d318a6b WriteHeader should be called once
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-27 15:28:27 +03:00
Evgeniy Kulikov
1cd636a24b Refactoring api/auth package
Migrate to cred/bearer instead of CredentialsClient

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 19:31:57 +03:00
Evgeniy Kulikov
0284bf136b Migrate to Credentials client
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 12:17:36 +03:00
Evgeniy Kulikov
c1c8d56de5 Migrate cmd/gate to new components
- remove unused methods
- refactoring app.Worker
- migrate to new pool, client, auth and credentials

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 10:09:58 +03:00
Evgeniy Kulikov
3bf6a847a2 Remove unused types
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 10:07:14 +03:00
Evgeniy Kulikov
de77d7838e Add logger constructor and replace graceful context
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 10:06:39 +03:00
Evgeniy Kulikov
8a3d2ba909 Remove unused components
- remove graceful context
- remove logger component

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 10:05:53 +03:00
Evgeniy Kulikov
29cb755d49 Fixes of usage auth package
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 10:02:10 +03:00
Evgeniy Kulikov
0ee3a5f9ba Migrate api/layer to SDK
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 10:01:38 +03:00
Evgeniy Kulikov
e3b1e8f369 Fixes of usage auth package
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 10:00:49 +03:00
Evgeniy Kulikov
1fecf6a7ac Remove pool package
It will be replaced with sdk/pool

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 09:59:32 +03:00
Evgeniy Kulikov
b9972042fc Refactoring auth package and move into API
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 09:59:01 +03:00
Evgeniy Kulikov
d8d6dc7593 Upgrade dependencies
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-24 09:57:40 +03:00
Evgeniy Kulikov
208c45a713 Merge pull request #35 from nspcc-dev/fix-api-response
Fix NPE when response isn't http.Flusher
2020-11-23 12:45:48 +03:00
Evgeniy Kulikov
54414c2bfb Fix NPE when response isn't http.Flusher
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-19 16:01:52 +03:00
Evgeniy Kulikov
54a03d3689 Merge pull request #34 from nspcc-dev/prepare-to-build
Prepare go modules to build
2020-11-11 12:32:47 +03:00
Evgeniy Kulikov
258993551c Prepare go modules to build
Need `GOPRIVATE=github.com/nspcc-dev` while repos in private:
- github.com/nspcc-dev/neofs-api-go
- github.com/nspcc-dev/neofs-authmate

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-11-09 15:28:42 +03:00
Evgeniy Kulikov
8f9382d145 Merge pull request #31 from nspcc-dev/migrate-to-v2-api
Migrate to NeoFS API v2
2020-11-02 18:50:22 +03:00
Evgeniy Kulikov
256850b8fe [#25] Refactoring and make fixes
closes #25
closes #33

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-10-24 16:09:22 +03:00
Evgeniy Kulikov
4d605d1113 [#25] Refactoring and make fixes
closes #25
closes #32

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-10-23 03:21:14 +03:00