JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-6288

SFTP Transport does not restrict access to known hosts only [Jsch StrictHostKeyChecking=yes] option.

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Patch submission Patch submission
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 3.2.1
  • Fix Version/s: None
  • Component/s: Transport: FTP / SFTP
  • Labels:
    None
  • Environment:

    Mule 3.2.1

  • User impact:
    Low
  • Effort points:
    0.5
  • Migration Impact:
    Hide
    None. the configuration only adds new attributes. No current attributes are affected.
    Code wise, JSch already supports this feature.
    Show
    None. the configuration only adds new attributes. No current attributes are affected. Code wise, JSch already supports this feature.
  • Similar Issues:
    None

Description

JSch supports concept of StrictHostKeyChecking which is one of ask,yes,no.
For mule, considering it is a non-interactive mode, atleast yes,no can be supported.
sftp connector configuration should support something like this:
<sftp:connector name="sftp-default" strictHostKeyChecking='yes' knownHostsFile='<path-of-known-hosts-file>'/>

note: other attributes deleted for clarity.

If strictHostKeyChecking='yes' and knownHostsFile is not set, drop hostChecking with a warning log.

If strictHostKeyChecking='yes' and knownHostsFile is set,
file is not accessible, throw IOException.

If strictHostKeyChecking='yes' and knownHostsFile is set,
file accessible, set the knownHostsFile to JSch's setHostNames(string fname) and use this during
SFtpClient.login(...) methods.

==
This can be a security concern.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    src.zip
    08/Jun/12 08:53 AM
    6 kB
    Kalyan vennelakanti
    1. File
      src/main/java/.../sftp/SftpClient.java.diff 3 kB
    2. File
      src/main/.../SftpConnectionFactory.java.diff 2 kB
    3. File
      src/main/.../sftp/SftpConnector.java.diff 2 kB
    4. File
      src/main/java/.../sftp/SftpUtil.java.diff 2 kB
    5. File
      src/main/.../META-INF/mule-sftp.xsd.diff 2 kB
    Download Zip
    Show
    Zip Archive
    src.zip
    08/Jun/12 08:53 AM
    6 kB
    Kalyan vennelakanti

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Kalyan vennelakanti made changes - 08/Jun/12 08:53 AM
Field Original Value New Value
Attachment src.zip [ 16747 ]
Pablo Kraan made changes - 12/Jun/12 01:04 PM
Issue Type Bug [ 1 ] Patch submission [ 5 ]
Alejandro Sequeira made changes - 12/Jun/12 01:05 PM
Priority To be reviewed [ 6 ] Major [ 3 ]

People

  • Assignee:
    Unassigned
    Reporter:
    Kalyan vennelakanti
Vote (0)
Watch (1)

Dates

  • Created:
    08/Jun/12 07:30 AM
    Updated:
    12/Jun/12 01:05 PM

Time Tracking

Estimated:
1d
Original Estimate - 1 day
Remaining:
1d
Remaining Estimate - 1 day
Logged:
Not Specified
Time Spent - Not Specified

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.