Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
-
Description
The current implementation of HsftpFileSystem suffers from the following issues:
- It initializes the SSLContext incorrectly. It blindly trusts all server certificates which creates a security hole.
- It tries to cancel delegation token through http, not https, which leads to
HDFS-5295. - It overrides the default socket factory for HttpsConnection. Given the fact that it trusts all server-side certificate, it accidentally disables all checks on server certificates for all https connections.
This jira tracks the effort to fix the above issues.
Attachments
Attachments
Issue Links
- depends upon
-
HDFS-5440 Extract the logic of handling delegation tokens in HftpFileSystem to the TokenAspect class
- Closed
-
HDFS-5487 Introduce unit test for TokenAspect
- Closed
-
HDFS-5506 Use URLConnectionFactory in DelegationTokenFetcher
- Closed
- duplicates
-
HDFS-5392 Unify the initialization of the hsftp and swebhdfs clients
- Resolved
-
HDFS-5295 hsftp throws an exception in the end on secure cluster with https enabled
- Resolved
- supercedes
-
HDFS-594 Add support for byte-ranges to hsftp
- Resolved