Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

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

Closed
Htammam opened this issue Feb 23, 2016 · 4 comments
Closed

Comments

@Htammam
Copy link

Htammam commented Feb 23, 2016

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 .

@Htammam Htammam changed the title Use amazon cloudfront url instead of s3 bucket url to deploy my code Use amazon cloudfront URL instead of S3 bucket URL to deploy my code Feb 23, 2016
@hussfelt
Copy link

@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
Copy link
Author

Htammam commented Feb 24, 2016

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

@hussfelt
Copy link

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
Copy link
Contributor

👋 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.

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants