Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(coderd): ensure that user API keys are deleted when a user is#7270

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 1 commit intomainfromcj/invalidate_user_api_token
Apr 24, 2023

Conversation

@johnstcn
Copy link
Member

Fixes an issue where API tokens belonging to a deleted user were not invalidated:

  • Adds a trigger to delete rows from the api_key stable when the column deleted is set to true in the users table.
  • Adds a trigger to the api_keys table to ensure that new rows may not be added where user_id corresponds to a deleted user.
  • Adds a migration to delete all API keys from deleted users.
  • Adds tests + dbfake implementation for the above.

Fixes an issue where API tokens belonging to a deleted user werenot invalidated:- Adds a trigger to delete rows from the api_key stable when the  column deleted is set to true in the users table.- Adds a trigger to the api_keys table to ensure that new rows  may not be added where user_id corresponds to a deleted user.- Adds a migration to delete all API keys from deleted users.- Adds tests + dbfake implementation for the above.
@johnstcnjohnstcn merged commit8fc8559 intomainApr 24, 2023
@johnstcnjohnstcn deleted the cj/invalidate_user_api_token branchApril 24, 2023 20:48
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 24, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@spikecurtisspikecurtisAwaiting requested review from spikecurtis

@EmyrkEmyrkAwaiting requested review from Emyrk

@kylecarbskylecarbsAwaiting requested review from kylecarbs

1 more reviewer

@coadlercoadlercoadler approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@johnstcnjohnstcn

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@johnstcn@coadler

[8]ページ先頭

©2009-2025 Movatter.jp