Coder Social home page Coder Social logo

cozy-clis's People

Contributors

bnjbvr avatar frankrousseau avatar ptbrowne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cozy-clis's Issues

Make the config reader more resilient

If I forget the last '/' in my Cozy's url, it doesn't work.

OK :

"url": "https://mycozy.domain.tld/"

NOT OK (but should be imho)

"url": "https://mycozy.domain.tld"

cozy-clis gives a TypeError

Hello, I just installed the CLI with:

sudo npm install cozy-clis -g

but I can't make it work:

 ✘  ~  cozy-clis  files list
Files stored in your Cozy Files
*******************************************************************************
/usr/lib/node_modules/cozy-clis/clis/files.js:19
        files = files.sort(function(file1, file2) {
                      ^

TypeError: files.sort is not a function
    at /usr/lib/node_modules/cozy-clis/clis/files.js:19:23
    at /usr/lib/node_modules/cozy-clis/clis/files.js:87:14
    at parseBody (/usr/lib/node_modules/cozy-clis/node_modules/request-json/main.js:26:12)
    at Request._callback (/usr/lib/node_modules/cozy-clis/node_modules/request-json/main.js:63:18)
    at Request.self.callback (/usr/lib/node_modules/cozy-clis/node_modules/request/index.js:148:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/usr/lib/node_modules/cozy-clis/node_modules/request/index.js:876:14)
    at emitOne (events.js:101:20)
    at Request.emit (events.js:188:7)
 ✘  ~  node --version
v6.9.4

Password is stored in clear text in the config file

This means that if you know that somebody uses cozy-clis, you can just cat ~/.cozy-config.json and get their password.

Possible solutions include:

  • using encryption in both ends
  • ask to store a hashed version (sha256) of the password and compare it distantly with the hashed version of the password.

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.