Skip to content

Allow creation of API keys on behalf of other users #48716

Closed
@peterschretlen

Description

@peterschretlen

The manage_own_api_key role allows creating a point-in-time snapshot of an authenticated user's permissions, that does not expire. This is ideal for Kibana alerting which runs scheduled background alert checks where permissions need to be enforced but the authenticated user isn't around.

However most users won't have the manage_own_api_key role. Generally this should be an explicitly granted privilege.

Would it be possible to allow a user (like the kibana system user) to create API keys on behalf of other users (similar to the token api )?

The user of a service like alerting would then require no special privileges. They would not need access to (or even awareness of) the API keys created on their behalf. The system user could be restricted to creating keys for users whose credentials they have ( like a user submitting a request to create an alert, for example ).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions