Open soofstad opened 2 weeks ago
You referred to this page as a source for the claim that "WebWorker is the only technology that can offer XSS safe storage of secrets". While that might be true, I don't think it can work for our use-case, since the secret is only safe as long as it never escapes the WebWorker. In the case of this library, we want/need to expose the secret in some way to the developer (in React), and as such it is actually no longer safe. If the developer can reach it (which they must to use it in their application), then an attacker may also reach it.
So I think the article describes a process of moving all API-interfacing logic into the WebWorker environment, which I'm sure is a very efficient and super-secure solution, but I don't think we can assume that all library users will be doing that.
And it would for sure be the most breaking'est change we'll ever have if we transition to this 😅 .
Agree, think you're right. This is my feeling as well that WebWorker is not a good fit for what we are trying to do. Still, would like to get more familiar with the technology, and figure out what it can, and cannot provide :slightly_smiling_face:
Summary
WebWorker is the only technology that can offer XSS safe storage of secrets and offer some token data information to the client. We should investigate/test if it's possible to migrate this library to use that.
Basic Example
Drawbacks
Possible that some current features will not be supported.
Unresolved questions
No response
Implementation PR
No response
Reference Issues
No response