storj/satellite
Cameron 84b522bc06 satellite/console: create account management api keys service
We are in the process of creating an api to allow users to manage their
accounts programmatically. We would like to use api keys for
authorization. We were originally going to create an entirely new table
for these api keys, but seeing as we already have 2 other tables for
keys/tokens, api_keys and oauth_tokens, we thought it might be better to
use one of these. We're using oauth_tokens.

We create a new oidc.OAuthTokenKind for account management api keys:
KindAccountManagementTokenV0. We made the key versioned because we
likely want to improve the implementation in the future, but we want to
get something functional out the door ASAP because the account management
api feature is highly desired.

Add a new method to oidc.OAuthTokens interface for revoking v0 account
management api keys, RevokeAccountManagementTokenV0. Add update method
to dbx implementation to allow updating the expiration. We will revoke
these keys by setting the expiration to 0 so they are expired.

Change-Id: Ideb8ae04b23aa55d5825b064b5e43e32eadc1fba
2022-03-23 17:02:20 +00:00
..
accounting apigen: new endpoint to get project's single bucket rollup 2022-03-04 17:33:38 +00:00
admin satellite/admin/ui: Add missing step for building it 2022-03-23 13:40:41 +01:00
analytics satellite/analytics: Add client-side analytics events 2022-03-03 17:55:35 +00:00
attribution satellite/attribution: update value attribution report query 2022-02-18 14:25:19 +00:00
audit satellite/repairer: handle excluded countries 2022-03-14 10:59:36 -04:00
buckets satellite/metainfo: propagate geofencing between buckets and stream id 2021-11-24 08:05:05 +00:00
compensation satellite/compensation: add wallet features to invoice csv 2021-02-08 22:13:48 +02:00
console satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
contact satellite/contact: fix connection leak in PingMe endpoint 2022-01-20 14:20:24 +00:00
gc satellite/metabase: don't delete pieces when deleting ancestor object 2022-03-21 09:32:26 +00:00
geoip satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
gracefulexit satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00
inspector satellite/metabase: drop GetObjectLatestVersion method 2022-02-02 09:40:53 +00:00
internalpb all: fix linting issues 2022-03-21 15:26:42 +00:00
mailservice satellite/{console,satellitedb}: Forbid creating users with used email 2021-12-15 17:24:35 +00:00
metabase satellite: adjust to latest CRDB version 2022-03-23 07:16:38 +00:00
metainfo satellite/metainfo: use metabase package instead storj 2022-03-23 15:47:54 +00:00
metrics satellite/metrics: speed up tests 2022-02-14 17:24:16 +00:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeselection/uploadselection satellite/repairer: handle excluded countries 2022-03-14 10:59:36 -04:00
nodestats satellite/nodestats: use overlay node for reputation status 2022-01-11 16:38:27 +00:00
oidc satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
orders satellite/repairer: handle excluded countries 2022-03-14 10:59:36 -04:00
overlay satellite/repairer: handle excluded countries 2022-03-14 10:59:36 -04:00
payments satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
repair satellite/repair: add test that confirms that repairer is ignoring copied segments 2022-03-16 09:00:34 +00:00
reputation satellite/satellitedb: remove suspension column from nodes and reputations 2022-03-21 16:56:12 +00:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
rewards satellite/rewards: adding SeaweedFS to partners list (#4230) 2021-10-19 21:30:31 +02:00
satellitedb satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
snopayouts all: fix error naming 2021-04-29 15:38:21 +03:00
admin.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
api.go satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
configlock_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
core.go satellite/payments: chore to migrate big.Float values out of db 2022-02-16 23:48:30 +00:00
gc.go satellite/metabase/segmentloop: don't shutdown satellite on loop error 2021-07-30 06:49:10 +00:00
peer.go satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
repairer.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00