Skip to content

API key can be created for a nonexistent user #3366

Open
@m4dcoder

Description

An API key can be created for a user that doesn't exists (i.e. st2 apikey create -u foobar where foobar is a nonexistent user). The API key created for this nonexistent user foobar can be used to execute an action and the execution is listed under foobar in context.user. The API key should not have been created in the first place if the user does not exist. Also, since API key doesn't have expiration, there should be another validation during runtime to make sure the user still exists before the API key is verified for other StackStorm operations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions