Go to file
Ivan Fraixedes fb31761bad satellite/admin/back-office: Add auth middleware
Create an API generator middleware for being able to hook the new
satellite admin authorization in the endpoints.

The commit fixes a bug found in the API generator that caused that
fields of types of the same package of the generated code where wrongly
added. Concretely:

- The package matching was missing in the function middlewareFields,
  hence it was generating code that referenced types with the package
  name.
- middlewareFields function was not adding the pointer symbol (*) when
  the type was from the same package where the generated code is
  written.

There is also an accidental enhancement in the API generator because I
thought that the bug commented above corresponded to it, rather than
removing it, I though that was worthwhile to keep it because it was
already implemented. This enhancement allows to use fields in the
middleware with packages whose last path part contains `-` or `.`, using
a package rename in the import statement.

Change-Id: Ie98b303226a8e8845e494f25054867f95a283aa0
2023-12-01 00:29:49 +00:00
.github storj: remove instances of DCS and OSP 2023-11-10 18:29:48 +00:00
certificate private/kvstore: move storage package 2023-04-06 17:26:29 +03:00
cmd cmd/uplink: don't show throughput during copy, since it's wrong 2023-11-30 21:20:50 +00:00
crashcollect crashcollect: removed redundant structure 2021-04-28 00:35:39 +03:00
docs docs/testplan: add object versioning testplan (#6444) 2023-11-16 11:46:25 +01:00
installer/windows storj/storj: more domain changes 2021-04-15 20:51:43 +00:00
multinode satellite/satellitedb,multinode/multinodedb: update to latest dbx 2023-09-11 17:21:02 +00:00
private satellite/admin/back-office: Add auth middleware 2023-12-01 00:29:49 +00:00
resources cmd: add ca-certificates to Docker images (#3986) 2020-12-08 01:38:33 +01:00
satellite satellite/admin/back-office: Add auth middleware 2023-12-01 00:29:49 +00:00
scripts satellite/{web,console}: remove upload modal flag 2023-11-30 19:43:24 +00:00
storagenode go.mod: make bump-dependencies (uplink, common, ...) 2023-11-29 16:55:41 +00:00
testsuite go.mod: bump storj.io/{common,uplink} 2023-11-30 11:24:19 -05:00
versioncontrol versioncontrol: implement partial version rollout automation 2023-06-02 16:01:33 +00:00
web satellite/{web,console}: remove upload modal flag 2023-11-30 19:43:24 +00:00
.dockerignore Forward-port release-alpha8 build script issues (#1726) 2019-04-09 23:01:10 -06:00
.earthlyignore build: provides earthfile for nightly build 2022-10-27 09:25:17 +00:00
.gitattributes web/: add check for change to eslint import 2021-12-21 15:59:23 +00:00
.gitignore gitignore: add go workspace files 2022-12-13 10:15:53 -07:00
.gitreview add config file for git review usage 2021-10-14 18:01:30 +00:00
CODE_OF_CONDUCT.md Adding CODE_OF_CONDUCT to storj/storj repo (#779) 2018-12-07 15:10:02 -05:00
CODEOWNERS update CODEOWNERS 2023-02-02 10:01:50 +00:00
CONTRIBUTING.md go.mod: update to minimum supported go version (#4239) 2021-10-22 21:12:13 +02:00
DEVELOPING.md Makefile: run lint locally in docker 2022-05-25 12:30:15 -05:00
docker-compose.tests.yaml Makefile: disable postgres fsync in the test container 2022-12-01 22:03:31 +00:00
Earthfile Earthfile: Use same NodeJS version as Makefile 2023-10-16 08:04:21 +00:00
go.mod cmd/uplink: don't show throughput during copy, since it's wrong 2023-11-30 21:20:50 +00:00
go.sum go.mod: bump storj.io/{common,uplink} 2023-11-30 11:24:19 -05:00
Jenkinsfile build: move Run Versions test to a separated job 2023-11-21 15:21:19 +00:00
Jenkinsfile.premerge Jenkinsfile.premerge: style check satellite admin back office files 2023-10-27 09:39:26 -05:00
Jenkinsfile.public private/kvstore: move storage package 2023-04-06 17:26:29 +03:00
Jenkinsfile.verify satellite/console/consoleweb/consoleapi: fix defer in loop 2023-10-05 12:55:36 +03:00
Jenkinsfile.versions build: move Run Versions test to a separated job 2023-11-21 15:21:19 +00:00
LICENSE license code with agplv3 (#126) 2018-07-05 10:24:26 -04:00
MAINTAINERS.md mainteiners.md: update release process description (#6430) 2023-11-22 17:01:04 +01:00
Makefile {Jenkinsfile, Makefile}: update Go to 1.21.3 2023-10-11 10:47:04 +02:00
monkit.lock satellite/repair: unify repair logic 2023-09-25 09:42:08 -05:00
proto.lock certificate/certificatepb: add definitions for migration 2023-01-25 10:28:36 +02:00
README.md Update logo in README.md (#6354) 2023-09-28 19:44:11 +02:00

Storj V3 Network

Go Report Card Go Doc Coverage Status

Storj logo

Storj is building a distributed cloud storage network. Check out our white paper for more info!


Storj is an S3-compatible platform and suite of distributed applications that allows you to store data in a secure and distributed manner. Your files are encrypted, broken into little pieces and stored in a global distributed network of computers. Luckily, we also support allowing you (and only you) to retrieve those files!

Table of Contents

Contributing to Storj

All of our code for Storj v3 is open source. If anything feels off, or if you feel that some functionality is missing, please check out the contributing page. There you will find instructions for sharing your feedback, building the tool locally, and submitting pull requests to the project.

A Note about Versioning

While we are practicing semantic versioning for our client libraries such as uplink, we are not practicing semantic versioning in this repo, as we do not intend for it to be used via Go modules. We may have backwards-incompatible changes between minor and patch releases in this repo.

Start using Storj

Our wiki has documentation and tutorials. Check out these three tutorials:

License

This repository is currently licensed with the AGPLv3 license.

For code released under the AGPLv3, we request that contributors sign our Contributor License Agreement (CLA) so that we can relicense the code under Apache v2, or other licenses in the future.

Support

If you have any questions or suggestions please reach out to us on our community forum or file a ticket at https://support.storj.io/.