Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track API key creation and last usage #537

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

nscuro
Copy link
Collaborator

@nscuro nscuro commented Jan 11, 2024

In order to avoid introducing additional latency to requests, API key usage is buffered in-memory and asynchronously flushed to the database in intervals of 30s.

An API key counts as "used" if authentication with it succeeds.

Also, add support for an optional comment for API keys, as requested in #536.

Closes #362
Closes #430
Closes #536

In order to avoid introducing additional latency to requests, API key usage is buffered in-memory and asynchronously flushed to the database in intervals of 30s.

An API key counts as "used" if authentication with it succeeds.

Also, add support for an optional comment for API keys, as requested in stevespringett#430 and stevespringett#536.

Closes stevespringett#362
Closes stevespringett#430
Closes stevespringett#536

Signed-off-by: nscuro <[email protected]>
@stevespringett stevespringett merged commit fe5de79 into stevespringett:master Jan 12, 2024
2 checks passed
@nscuro nscuro deleted the issue-362 branch January 12, 2024 23:21
nscuro added a commit to nscuro/dependency-track that referenced this pull request Jan 28, 2024
Introduces:

* Ability to assign default groups to OIDC users (stevespringett/Alpine#535)
* Tracking of `created` and `lastUsed` timestamps for API keys (stevespringett/Alpine#537)
* Addition of `comment` field to API keys (stevespringett/Alpine#537)

Closes DependencyTrack#1068
Fixes DependencyTrack#1556
Closes DependencyTrack#3349

Signed-off-by: nscuro <[email protected]>
mikael-carneholm-2-wcar pushed a commit to mikael-carneholm-2-wcar/dependency-track that referenced this pull request Mar 15, 2024
Introduces:

* Ability to assign default groups to OIDC users (stevespringett/Alpine#535)
* Tracking of `created` and `lastUsed` timestamps for API keys (stevespringett/Alpine#537)
* Addition of `comment` field to API keys (stevespringett/Alpine#537)

Closes DependencyTrack#1068
Fixes DependencyTrack#1556
Closes DependencyTrack#3349

Signed-off-by: nscuro <[email protected]>
Signed-off-by: Mikael Carneholm <[email protected]>
nscuro added a commit to DependencyTrack/hyades-apiserver that referenced this pull request Mar 20, 2024
As introduced in stevespringett/Alpine#537

Signed-off-by: nscuro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants