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

feat(deploy-web): add localstorage auto-import from cloudmos #196

Merged
merged 1 commit into from
May 15, 2024

Conversation

Redm4x
Copy link
Contributor

@Redm4x Redm4x commented May 14, 2024

Automatic localstorage migration from Cloudmos to Console

This PR add the ability to auto-import localstorage data from Cloudmos into Console. An iframe loads the export page of cloudmos and then listen for a message event containing the data.

Matching PR for Cloudmos side: #195

The imported data include:

  • Settings
  • Certificates
  • Deployment Names & SDLs
  • Provider Favorites

Security Concerns ⚠️

Any websites can use postMessage to send us messages. In order to prevent injection of localstorage data from untrusted sources, the origin of messages are checked to only accept messages from https://deploy.cloudmos.io.

@Redm4x Redm4x requested a review from baktun14 May 14, 2024 20:25
@Redm4x Redm4x marked this pull request as ready for review May 14, 2024 20:29
@Redm4x Redm4x merged commit 517ed5c into main May 15, 2024
6 checks passed
@Redm4x Redm4x deleted the features/add-localstorage-autoimport branch May 15, 2024 15:05
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