Skip to content

Validate the user still exists during account reset#35676

Merged
rosstimothy merged 1 commit intomasterfrom
tross/reset_validate_user
Jan 4, 2024
Merged

Validate the user still exists during account reset#35676
rosstimothy merged 1 commit intomasterfrom
tross/reset_validate_user

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Prior to this, any reset links created before a user was deleted would still be valid and when used would recreate the deleted user. With this change, the user is validated to still exist prior to honoring the reset request and if the user no longer exists any remaining reset tokens are deleted.

Changelog: Prevent deleted users from using account reset links created prior to the user being deleted

@rosstimothy rosstimothy requested a review from zmb3 December 13, 2023 21:01
@jentfoo
Copy link
Copy Markdown
Contributor

jentfoo commented Dec 22, 2023

@zmb3 Can you help us review and merge this fix? I would like to make sure this fix is incorporated with the next release if possible

@jentfoo
Copy link
Copy Markdown
Contributor

jentfoo commented Dec 22, 2023

@rosstimothy, the test failure looks potentially relevant, let me know if you need help looking into it

@rosstimothy rosstimothy force-pushed the tross/reset_validate_user branch from a69d3c7 to f419ab6 Compare January 3, 2024 22:05
@rosstimothy
Copy link
Copy Markdown
Contributor Author

PTAL @fheinecke @zmb3

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from fheinecke January 3, 2024 23:50
Prior to this, any reset links created before a user was deleted
would still be valid and when used would recreate the deleted user.
With this change, the user is validated to still exist prior to
honoring the reset request and if the user no longer exists any
remaining reset tokens are deleted.
@rosstimothy rosstimothy force-pushed the tross/reset_validate_user branch from f419ab6 to 26e4587 Compare January 3, 2024 23:51
@rosstimothy rosstimothy enabled auto-merge January 3, 2024 23:51
@rosstimothy rosstimothy added this pull request to the merge queue Jan 4, 2024
Merged via the queue into master with commit bae77fc Jan 4, 2024
@rosstimothy rosstimothy deleted the tross/reset_validate_user branch January 4, 2024 00:46
@public-teleport-github-review-bot
Copy link
Copy Markdown

@rosstimothy See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Failed
branch/v14 Create PR

rosstimothy added a commit that referenced this pull request Jan 4, 2024
Prior to this, any reset links created before a user was deleted
would still be valid and when used would recreate the deleted user.
With this change, the user is validated to still exist prior to
honoring the reset request and if the user no longer exists any
remaining reset tokens are deleted.
Envek added a commit to Envek/teleport that referenced this pull request Jan 4, 2024
…se-anon-key

* origin/master: (344 commits)
  Undelete CreateHostUserMode_HOST_USER_MODE_DROP (gravitational#36273)
  allow cwd to be changed in difftest (gravitational#35946)
  Auth device list component (gravitational#36235)
  make unified resources responsive (gravitational#35961)
  Support running Teleport in a "hot reload" mode (gravitational#35040)
  Prevent deleting enum values, allow deleting enum reservations in types.proto (gravitational#36248)
  Remove support for legacy (Amazon Linux 2) AMIs (gravitational#36153)
  Bump version(s) used for teleport-lab and teleport-quickstart (gravitational#36167)
  Allow Reconciler update handler to examine old value during update (gravitational#36171)
  Validate the user still exists during account reset (gravitational#35676)
  ButtonTextWithAddIcon shared component (gravitational#36103)
  Refactor hostname resolution for SSH connections via the WebUI (gravitational#35773)
  add structuredClone to jest JSDOMEnvironment (gravitational#36213)
  fix flaky `lib/auth` cache-enabled tests (gravitational#36216)
  Report resource usage counts by handling heartbeat events (gravitational#35968)
  Reviewer bot should use the stable version of Go (gravitational#36242)
  RFD 0153 Resource Guidelines (gravitational#34103)
  Use cmp and cmpots properly in operator tests (gravitational#36215)
  Relax Kubernetes CRD discovery when building cache (gravitational#36214)
  Add Access List messages to TAG protobuf (gravitational#36176)
  ...
rosstimothy added a commit that referenced this pull request Jan 4, 2024
Prior to this, any reset links created before a user was deleted
would still be valid and when used would recreate the deleted user.
With this change, the user is validated to still exist prior to
honoring the reset request and if the user no longer exists any
remaining reset tokens are deleted.
github-merge-queue Bot pushed a commit that referenced this pull request Jan 5, 2024
Prior to this, any reset links created before a user was deleted
would still be valid and when used would recreate the deleted user.
With this change, the user is validated to still exist prior to
honoring the reset request and if the user no longer exists any
remaining reset tokens are deleted.
github-merge-queue Bot pushed a commit that referenced this pull request Jan 5, 2024
Prior to this, any reset links created before a user was deleted
would still be valid and when used would recreate the deleted user.
With this change, the user is validated to still exist prior to
honoring the reset request and if the user no longer exists any
remaining reset tokens are deleted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants