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

Stop showing a dialog prompting the user to enter an old recovery key #29143

Merged
merged 4 commits into from
Jan 30, 2025

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 30, 2025

Currently, if we need a secret that is stored in 4S under an old recovery key, we put up a modal prompting the user to enter that old key, but don't actually tell them which key it is we are after.

Our design doesn't really support having more than one recovery key at a time -- we tell our users that there is only one recovery key.

So, it's better to treat such secrets as non-existent, rather than bothering the user for access.

Fixes: #29130.

Suggest review commit-by-commit.

@richvdh richvdh requested review from a team as code owners January 30, 2025 00:47
Copy link
Member

@MidhunSureshR MidhunSureshR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are failing ...

We don't really support the concept of having multiple 4S keys active, so
prompting the user to enter a non-default 4S key without even telling them
which one we want is rather silly.
We seem to already have about 5 copies of this code, so before I add another,
let's factor it out.
This should be fixed by the previous commit, so let's check it stays that way.
@richvdh
Copy link
Member Author

richvdh commented Jan 30, 2025

oops, my bad. Now fixed.

@richvdh richvdh requested a review from MidhunSureshR January 30, 2025 11:08
@andybalaam andybalaam requested review from andybalaam and removed request for BillCarsonFr January 30, 2025 15:45
Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix.

@richvdh richvdh added this pull request to the merge queue Jan 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2025
@richvdh richvdh added this pull request to the merge queue Jan 30, 2025
Merged via the queue into develop with commit 099c307 Jan 30, 2025
35 checks passed
@richvdh richvdh deleted the rav/dehydrated_no_reprompt_security_key branch January 30, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants