Closed
Bug 973259
Opened 11 years ago
Closed 11 years ago
Remove NODE_TLS_REJECT_UNAUTHORIZED override for s3
Categories
(Marketplace Graveyard :: Integration, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ozten, Assigned: ozten)
References
Details
(Whiteboard: [A4A])
During development with awssum-amazon-s3, I'm occasionally seeing:
Code: 'AwsSum-Request',
Message: 'Something went wrong during the request',
OriginalError: [Error: Hostname/IP doesn't match certificate's altnames]
The workaround in the code is to currently use
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;
but this is bad, because we won't reject invalid server certificates.
Updated•11 years ago
|
Flags: needinfo?(rforbes)
Priority: -- → P3
Comment 1•11 years ago
|
||
since we're not checking TLS certs here I think we need to bump priority
Priority: P3 → P1
Updated•11 years ago
|
Assignee: nobody → ozten.bugs
Updated•11 years ago
|
Whiteboard: [A4A]
Assignee | ||
Comment 2•11 years ago
|
||
I believe this is because we have periods '.' in our bucket names.
Example: mozilla.stuff.public
Changing to dashes fixes this bug
Example: mozilla-stuff-public
If this is true, why wouldn't the python code also be having cert hostname issues?
Comment 3•11 years ago
|
||
This doesn't sound like the root of the problem. Bucket names follow DNS name conventions so dots are no problem: http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
Do you have any more details about how you're connecting and what the exact error is?
I had some SSL cert problems with subdomains. I was getting invalid cert errors with https://the.bucket.s3.amazonaws.com/ but when I switched it a directory, like https://s3.amazonaws.com/the.bucket , the cert was valid. I don't know if you were having the same kind of problem though.
Seems really weird that it started working with a dash-named bucket!
Assignee | ||
Comment 4•11 years ago
|
||
The S3 library we're using is nice for a few reasons. However it doesn't support path based access.
I'll look at switching to another library.
Assignee | ||
Comment 5•11 years ago
|
||
A version that uses knox instead.
https://github.com/mozilla/apk-factory-service/pull/50
Assignee | ||
Comment 6•11 years ago
|
||
We switched to knox.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Flags: needinfo?(rforbes)
You need to log in
before you can comment on or make changes to this bug.
Description
•