Coder Social home page Coder Social logo

foxtrot-backend's People

Contributors

reznik99 avatar dependabot[bot] avatar

Watchers

 avatar

foxtrot-backend's Issues

JWT Expiry isn't checked and JWT's aren't renewed

JWT token is issued to the user on login
This token is never renewed.

There should be an endpoint for

  • Validating the current JWT
  • Renewing the JWT in some secure way without making the user re-authenticate

Enstablish Websocket connection to device

Enstablish Websocket connection to device

This is to send messges to the device in real time without having the user preform a refresh (drag down in main app page)

This doesn't solve notifications, but could be used for Audio calls and maybe Video calls (Might have to use WebRTC for that)

Messages aren't encrypted

Messages should:

  • Initially be encrypted directly with the user's RSA Keys.
  • Encrypted using session/rolling symmetric keys to be shared using the user's RSA Keys
    • Symmetric session keys should be generated PER conversation

Improve security of JWT Secret

JWT-Secret is stored as environment variable. This secret is an ASCII secret/password.

The jsonwebtoken library uses this value as a raw AES Key for HMAC auth0/node-jsonwebtoken#620

To improve security, the JWT-Secret should be put through a KDF function like Argon2ID, scrypt, bcrypt or PBKDF2 on start-up before any JWTs are signed.

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.