Skip to content

Duress login fixes #650

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

Merged
merged 8 commits into from
May 8, 2025
Merged

Duress login fixes #650

merged 8 commits into from
May 8, 2025

Conversation

samholmes
Copy link
Contributor

@samholmes samholmes commented May 6, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@samholmes samholmes force-pushed the sam/duress-login branch from 389b43a to e744119 Compare May 8, 2025 00:08
Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

This will work! I have some small cleanup suggestions.

Comment on lines +195 to +199
const duressSessionKey = decryptChildKey(
stash,
sessionKey,
duressStash.loginId
)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is needed - the root sessionKey will be fine. On the whiteboard diagram, the core knows how to handle the green arrow (the session key) being on a lower node than the orange arrow (the appId). It just does decryptChildKey as-needed to handle the difference.

However, the way you are doing it does protect the root account from modifications, since we don't have a root decryption key. If that's the goal, then carry on! That's fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Less changes now, means less tests now. I'll save face for this reason and the one you mentioned.

@swansontec swansontec mentioned this pull request May 8, 2025
2 tasks
@samholmes samholmes force-pushed the sam/duress-login branch from f6ad17d to 49d6e32 Compare May 8, 2025 21:33
@samholmes samholmes enabled auto-merge May 8, 2025 21:34
@samholmes samholmes merged commit d5c7bd8 into master May 8, 2025
2 checks passed
@samholmes samholmes deleted the sam/duress-login branch May 8, 2025 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants