Skip to content

[6/x] API Keys#33

Draft
JoshuaGabriel wants to merge 6 commits into
wip-whoamifrom
wip-api-keys-scope
Draft

[6/x] API Keys#33
JoshuaGabriel wants to merge 6 commits into
wip-whoamifrom
wip-api-keys-scope

Conversation

@JoshuaGabriel

Copy link
Copy Markdown
Collaborator

Add config-key backed API keys, including CLI creation support and inline scope definitions.

Scoped API keys can restrict access by resource

ceph-api auth api-key create \
  --scope config-opt:read \
  --scope config-opt:update

These API keys are stored in the monitor's DB

stacked ontop of #32

admin-only API keys persisted into mon's kv store.
machine clients can auth without resuing human oauth password

Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
Move Login/Logout/Check to /api/v1/auth/*
NewServer takes apiKeyStore directly

Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
auth api-key create to create an API key with all admin perms

Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
we call config-key get <api> to make sure this key doesn't exist yet
but this existence check is a bit noisy since it logs as an ERR

Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
scope format:
config-opt:read
config-opt:read/update

cli:
ceph-api auth api-key create --scope config-opt:read --scope config-opt:update

Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
Signed-off-by: Joshua Blanch <joshua.blanch@clyso.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant