storj/private
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
..
api satellite/console: integrate sessions into satellite UI 2022-06-13 08:02:02 +00:00
apigen satellite/admin/back-office: Add auth middleware 2023-12-01 00:29:49 +00:00
blockchain private/blockchain: address checksum hex 2022-11-08 18:19:07 +00:00
compensation multinode/console: storage usage and total storage usage 2021-06-10 16:01:41 +00:00
crashreportpb all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
cui all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
currency private/currency: add strictcsv support to microunit 2020-03-31 14:57:04 -06:00
date Fix monthly earning estimation (#4282) 2021-11-17 18:26:21 -05:00
debugging all: fix dots 2020-07-16 14:58:28 +00:00
kvstore private/kvstore: move storage package 2023-04-06 17:26:29 +03:00
lifecycle satellite: more detailed goroutine labels 2022-05-11 17:50:55 +00:00
migrate go.mod: bump to pgx/v5 2023-06-14 18:32:54 +03:00
multinodeauth {storagenode,multinode/nodes}: use multinodeauth.Secret instead of []byte for APISecret 2022-08-23 11:04:04 +00:00
multinodepb web/multinode: fix wrong free disk space in allocation on dashboard 2023-07-05 11:24:24 +00:00
nodeoperator all: fix error naming 2021-04-29 15:38:21 +03:00
post satellite/email: Add support for unauthenticated, cleartext SMTP connections 2023-10-04 16:55:55 +00:00
prompt private/prompt: remove dependency to go-prompt 2020-02-25 13:09:41 +02:00
revocation private/kvstore: move storage package 2023-04-06 17:26:29 +03:00
server go.mod: bump common (and maybe fix quic) 2023-11-01 14:42:15 +02:00
testmonkit all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
testplanet go.mod: make bump-dependencies (uplink, common, ...) 2023-11-29 16:55:41 +00:00
testredis satellite/accounting/live: replace address parsing with redis util 2023-04-05 13:20:11 +00:00
testrevocation private/kvstore: move storage package 2023-04-06 17:26:29 +03:00
teststorj all: fix dots 2020-07-16 14:58:28 +00:00
testuplink all: don't depend on infectious library directly 2023-10-31 16:00:47 +02:00
version private/version: use minimum key in new sem version 2023-11-08 21:08:01 +00:00
web satellite/{console,web}: update error handling 2023-07-27 21:01:01 +00:00