Giter Site home page Giter Site logo

Require explicit FTP over TLS about dploy HOT 8 CLOSED

radum avatar radum commented on May 29, 2024
Require explicit FTP over TLS

from dploy.

Comments (8)

lucasmotta avatar lucasmotta commented on May 29, 2024

I am using the node-ftp library and they claim to support FTPS by using the secure flag.
Since I can't reproduce this here (I don't have access to a server with FTPS), do you mind testing this option from node-ftp?
You can read the documentation here, it's pretty simple: https://github.com/mscdex/node-ftp

If it works for you, I can implement the secure flag in DPLOY as well.

from dploy.

radum avatar radum commented on May 29, 2024

Yes sure, I will get back to you ASAP with this.

from dploy.

radum avatar radum commented on May 29, 2024

Hi @lucasmotta so I've managed to test locally using node-ftp and it works.

All I did was to add these options to the connect method:

secure: true,
secureOptions: {
    rejectUnauthorized: false
}

Complete script here:

var Client = require('ftp');

  var c = new Client();
  c.on('ready', function() {
    console.log('done, I'm connected');
    c.end();
  });

  c.connect({
    host: 'my.server.com',
    port: 21,
    secure: true,
    secureOptions: {
      rejectUnauthorized: false
    },
    user: 'user',
    password: 'pass'
  });

So I guess you can implement the secure flag in DPLOY now, but the rejectUnauthorized is important as well, it won't work without it.

from dploy.

lucasmotta avatar lucasmotta commented on May 29, 2024

Nice one! I will implement the secure and secureOptions as well.
Thanks for testing this, but I will need your help to test again once it's implemented!

from dploy.

radum avatar radum commented on May 29, 2024

Sure, just let me know and I will do it.

Thanks for your support.

from dploy.

lucasmotta avatar lucasmotta commented on May 29, 2024

Hey @radum, I just released a new version of DPLOY (v1.1.0) with the secure and secureOptions settings.
Let me know if it works, then we can tick this issue as closed.

from dploy.

radum avatar radum commented on May 29, 2024

Hey @lucasmotta works like a charm 👍

I just tested now and works great, thanks for the update.

from dploy.

piotr-cz avatar piotr-cz commented on May 29, 2024

I'd appreciate if the rejectUnauthorized option would be specified in the README.md because it's not clear which secureOptions can be specified without finding this issue.

from dploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.