storj/scripts
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
..
testdata satellite/console: create account management api keys service 2022-03-23 17:02:20 +00:00
tests scripts/tests: write old uplink config yaml directly 2022-02-22 15:26:06 -05:00
waitlist Waitlist script (#573) 2018-11-06 18:43:20 +01:00
build-wasm.sh build: added brotli compression for wasm bits 2020-12-17 19:23:53 +00:00
cert-gating.sh Delete Bootstrap and Kademlia (#2974) 2019-10-04 16:48:41 -04:00
check-package-lock.sh web/: add check for change to eslint import 2021-12-21 15:59:23 +00:00
deploy-storagenode.sh scripts/deploy-storagenode.sh: adding multinode image to deployment 2022-02-21 14:37:04 +01:00
deploy-watchtower.sh Script for deploying the Docker manifest for watchtower (#3015) 2019-09-12 17:38:48 +03:00
draft-release.sh scripts/draft-release: add sleep to avoid race condition on uploading the binaries (#4647) 2022-03-21 15:24:20 +01:00
gerrit-cla.py gerrit: add cla 2019-06-19 18:28:53 +00:00
install-awscli.sh Travis with go1.11 and modules (#479) 2018-10-16 20:02:00 +03:00
pg-to-crdb.go all: fix linting issues 2022-03-21 15:26:42 +00:00
postgres-dev.sh satellite/testing: Change testing to use PG 12.3 (#3913) 2020-06-25 20:17:39 +03:00
redis-server.sh scripts: Do not use Docker for test-sim Redis test 2021-03-22 08:43:53 +00:00
release.sh scripts/release.sh: making clear if builing a production or development version (#4304) 2021-12-09 12:38:23 +01:00
tag-release.sh private/version: minimal fix for tag-release.sh 2020-04-01 13:46:45 +00:00
test-backwards.sh cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
test-billing.sh tests: fix calculation of previous month for billing integration test 2021-03-29 10:38:59 +02:00
test-certificates.sh fix certificates auth export command (#3110) 2019-09-24 10:38:18 -06:00
test-network-stalls.go all: fix linting issues 2022-03-21 15:26:42 +00:00
test-sim-backwards-dev.sh metainfo-migration: basic pointerdb->metabase migrator 2021-01-12 12:59:53 +00:00
test-sim-backwards.sh ci: switch back to pulling gateway@main 2021-09-28 15:01:04 +00:00
test-sim-dev.sh scripts: use postgres script with all tests (#3404) 2019-10-31 07:03:54 -07:00
test-sim-redis-up-and-down-dev.sh scripts: Do not use Docker for test-sim Redis test 2021-03-22 08:43:53 +00:00
test-sim-redis-up-and-down.sh scripts: Do not use Docker for test-sim Redis test 2021-03-22 08:43:53 +00:00
test-sim.sh cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
test-uplink-redis-up-and-down.sh cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
test-uplink-rs-download.sh cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
test-uplink-rs-upload.sh cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
test-uplink-share.sh cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
test-uplink.sh cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
test-wasm-size.sh satellite/console/wasm: add test to confirm wasm size isnt growing 2021-01-21 15:48:49 +00:00
update-access.go all: fix linting issues 2022-03-21 15:26:42 +00:00
utils.sh cmd/uplink: add ranged download to uplink cli 2021-10-25 13:13:33 +00:00