support for multiple admin API token #982

Merged
lx merged 12 commits from multi-admin-token into next-v2 2025-03-12 09:30:20 +00:00
Owner

Fix #944

  • Model for admin API token
  • Use model to check API access
  • Add configuration options to require tokens from the api token table without specifying a global token in the config
  • Admin API calls to manage api tokens
  • CLI to manage api tokens
  • openapi spec
  • Proof-reading
  • Testing
Fix #944 - [x] Model for admin API token - [x] Use model to check API access - [x] Add configuration options to require tokens from the api token table without specifying a global token in the config - [x] Admin API calls to manage api tokens - [x] CLI to manage api tokens - [x] openapi spec - [x] Proof-reading - [x] Testing
lx added 2 commits 2025-03-11 12:10:25 +00:00
add model for admin key table
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
6e19c6b446
lx force-pushed multi-admin-token from 6e19c6b446 to 56f2cd180d 2025-03-11 12:11:24 +00:00 Compare
lx force-pushed multi-admin-token from 56f2cd180d to 64cebc63d7 2025-03-11 12:40:44 +00:00 Compare
lx added this to the v2.0 milestone 2025-03-11 12:40:54 +00:00
lx changed title from WIP: support for multiple admin API tokens to WIP: support for multiple admin API keys 2025-03-11 12:43:13 +00:00
lx changed title from WIP: support for multiple admin API keys to WIP: support for multiple admin API token 2025-03-11 12:43:49 +00:00
lx force-pushed multi-admin-token from 64cebc63d7 to 18461d3567 2025-03-11 12:50:09 +00:00 Compare
lx force-pushed multi-admin-token from 18461d3567 to 004eb94e14 2025-03-11 12:51:24 +00:00 Compare
lx added 1 commit 2025-03-11 13:15:26 +00:00
admin api: add metrics_require_token config option and update doc
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
e1fe77997a
lx force-pushed multi-admin-token from e1fe77997a to ea93d56c96 2025-03-11 13:16:27 +00:00 Compare
lx force-pushed multi-admin-token from ea93d56c96 to ff6ec62d54 2025-03-11 13:17:26 +00:00 Compare
lx added 1 commit 2025-03-11 14:17:41 +00:00
admin api: add functions to manage admin api tokens
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
d067a40b3f
lx added 1 commit 2025-03-11 14:38:58 +00:00
admin api: add openapi spec for admin token management functions
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
9511b20153
lx added 1 commit 2025-03-11 14:57:44 +00:00
admin api: mention admin_token and metrics_token in ListAdminTokensResponse
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
ci/woodpecker/push/debug Pipeline was successful
ec0da3b644
lx added 1 commit 2025-03-11 17:09:36 +00:00
cli: add functions to manage admin api tokens
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
ci/woodpecker/push/debug Pipeline was successful
1bd7689301
lx added 1 commit 2025-03-11 17:21:09 +00:00
admin api: specify date-time format in openapi spec
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
ae9a9727f1
lx force-pushed multi-admin-token from ae9a9727f1 to 22c0420607 2025-03-11 17:25:57 +00:00 Compare
lx added 1 commit 2025-03-12 08:22:07 +00:00
move bucket search logic from helper to admin api
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
eb40475f1e
lx added 1 commit 2025-03-12 08:30:43 +00:00
admin_token_table: implement is_tombstone()
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
325f79012c
lx added 1 commit 2025-03-12 08:52:48 +00:00
add creation date to admin api tokens
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
3df75eadd2
lx force-pushed multi-admin-token from 3df75eadd2 to 88b4623bf1 2025-03-12 08:57:39 +00:00 Compare
lx added 1 commit 2025-03-12 09:15:35 +00:00
cli: add and remove scopes using --scope=+Scope or --scope=-Scope
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
ci/woodpecker/pr/debug Pipeline was successful
ccaff8c250
lx force-pushed multi-admin-token from ccaff8c250 to d2a064bb1b 2025-03-12 09:20:18 +00:00 Compare
lx changed title from WIP: support for multiple admin API token to support for multiple admin API token 2025-03-12 09:30:14 +00:00
lx merged commit fd2472d488 into next-v2 2025-03-12 09:30:20 +00:00
lx deleted branch multi-admin-token 2025-03-12 09:30:21 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#982
No description provided.