feat(deploy-web): add localstorage export page #195
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Automatic localstorage migration from Cloudmos to Console
Added a page under
/standalone/localstorage-export
that will be used to automatically import the localstorage data from Cloudmos into Console. The page will be opened on Console in an iframe and the data will be transferred using thewindow.postMessage
method.Matching PR for Console side: #196
The exported data include:
Security Concerns⚠️
The exported data contains sensitive information so we must make sure it is handled securely.
To make sure the data does not end up on the wrong domain we pass the
targetOrigin
property topostMessage
. The browser will make sure the message is only dispatched if the parent window has the correct originhttps://console.akash.network
.postMessage
documentationOnce the majority of users have migrated to Console, we could remove this page to mitigate any future security risk. We could also change it be opened as a popup instead and require user approval before sending the data.