question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

URLs generated by s3Url result in certificate error on request -> breaks S3 autoUpdate

See original GitHub issue
  • Version: 15.4.2
  • Target: mac, win

In https://github.com/electron-userland/electron-builder/commit/7041b5d3e2b17983973d5cea41215b5c371609d7#diff-36ba9eb20bed1b6c45f54cf4faedfcabL81, the s3Url method behavior was changed from https://s3.amazonaws.com/${options.bucket} to https://${options.bucket}.s3.amazonaws.com.

Resulting Problem: If the bucket name contains any dots, requesting new URL will result in a SSL certificate warning (AWS S3 wildcard certificate is *.s3.amazonaws.com, s3.amazonaws.com -> doesn’t match). This is already mentioned here: https://github.com/electron-userland/electron-builder/commit/7041b5d3e2b17983973d5cea41215b5c371609d7#diff-b8b7b963245d02b44186a38315e09df6L85

format https://s3.amazonaws.com/bucket_name must be used

I guess this just got lost when committing.

Result: S3 auto-update checks don’t work as they get stuck in a SSL certificate warning.

Solution: Revert the s3Url method behavior.

I will create a pull request soon. Maybe I’m missing something, but was there a reason for this change?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
markusdoschcommented, Mar 15, 2017

Note: Instead of having to set a region manually in the options, we could identify the region programmatically (via bucket.get_location like described by https://github.com/boto/boto/issues/2836#issuecomment-250434915).

I will implement the option.region variant as it is is easier, but it would be a nice iteration for the future if anyone is fancy doing it.

(related discussion in the AWS Developer Forums: https://forums.aws.amazon.com/message.jspa?messageID=705909)

0reactions
develarcommented, Mar 17, 2017

@jonhester Thanks. 15.6.2 published.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSL Certificate Issue with bucket name containing dots ...
I created a bucket named with dots : my.super.bucket. After uploading pictures to that bucket with name 'my-key', I get the URL. It...
Read more >
Deep dive into CORS configs on Amazon S3 | AWS Media Blog
This function returns a presigned URL which can be used in a subsequent POST to upload a file to Amazon S3. Request to...
Read more >
Automatic updates in Electron using Amazon S3 - Brainio Blog
It works with the electron-builder package and uses Amazon S3 as an auto update server. The post also shows how to code sign...
Read more >
Amazon S3 — Cyberduck Help documentation
It is discouraged to enable this option to connect plaintext to Amazon S3. If you have an S3 installation without SSL configured, you...
Read more >
Implementing SSL on Amazon S3 Static Websites - Knight Lab
Since this post was written, Amazon has launched AWS Certificate ... away from Amazon for the service, pages using those URLs would break....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found