nordnet / cordova-hot-code-push

[DEPRECATED] - This plugin provides functionality to perform automatic updates of the web based content in your application.
https://github.com/nordnet/cordova-hot-code-push/issues/371
MIT License
978 stars 467 forks source link

Use amazon cloudfront URL instead of S3 bucket URL to deploy my code #106

Closed Htammam closed 6 years ago

Htammam commented 8 years ago

Hi, I have mobile app and I am interested to use your plugin to push my code .But i have an issue that my code remain public on S3 bucket and accessible to all , in order to solve this issue and make my code secure on amazon S3 bucket I have tried to use Amzon Cloudfront with secret key URL , I need to check the possibility to use the plugin with Cloudfront URL instead of S3 bucket URL and how I can send the secret key from the plugin or the JSON file (cordova-hcp) to Amazon Cloudfront .

hussfelt commented 8 years ago

@Htammam you should be able to do this by letting your CloudFront reflect your S3 bucket which you push to.

After you have done that setting (and whatever securty measures you want to take) you simply change the config value content_url found here: https://github.com/nordnet/cordova-hot-code-push#application-config

We're actually doing this in development to be able to push a test-build to multiple devices at the same time, and then we use JavaScript to change this config value: https://github.com/nordnet/cordova-hot-code-push#change-plugin-preferences-on-runtime

Htammam commented 8 years ago

@hussfelt thank you ,, can you help me if we can send secrete key appended to the Cloudfront URL.

hussfelt commented 8 years ago

You can send any URL you want, so a secret key appended should not be an issue.

If you need a new secret-key for every request, I guess you would need to prepare that through an API request before even checking for an update. You would need to build your own update-cycle and request a url with a key, then requesting a check for an update and execute the update.

nordnet-deprecation-bot commented 6 years ago

👋 Hi! Thank you for your interest in this repo.

đŸ˜ĸ We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹī¸ Please see #371 for more information.