Code Monkey home page Code Monkey logo

ironnode's People

Contributors

bobwall23 avatar cjyar avatar coltfred avatar dependabot[bot] avatar ernieturner avatar giarc3 avatar leeroy-travis avatar skeet70 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ironnode's Issues

Detect Cloudflare rate limiting error and return with specific error code

When someone hits our rate limit within Cloudflare, we should respond with a specific error code telling the user that they're being rate limited. Then consumers of the SDK can decision of this. When we hit the CF ratelimit they'll return us an HTTP error code of 429 which we should use to decision off of.

Implement support for v2 document header

Add code to support version 2 of our document header which embeds the document ID and internal segment ID to the front of the document. The implementation will be as follows:

Byte 1: Version number, set to 2.
Byte 2,3: Encoded number which represents the size of the following header bytes, N
Bytes 4-N+3: utf-8 encoded JSON header which contains document ID (_did_) and internal segment ID (_sid_). fields
Bytes N+4-End: Encrypted document which includes AES IV and encrypted data.

Since we need to know what the document ID is at the time we do the encryption, we can also no longer rely on ironcore-id to generate document IDs for us if the caller doesn't provide one. So in addition to this we'll also generate the random document IDs on the client before we pass them to the server.

When we get a document that is version 1, we'll continue to do what we do today and just pull off the first byte. No changes will be made to the SDK to remove the need for providing a document ID as part of the various operations.

Upgrade handlebars, js-yaml

Known high severity security vulnerability detected in handlebars < 4.0.14 defined in yarn.lock.

yarn.lock update suggested: handlebars ~> 4.0.14.

Known high severity security vulnerability detected in js-yaml < 3.13.1 defined in yarn.lock.

yarn.lock update suggested: js-yaml ~> 3.13.1.

Support ability to lookup user public keys

One nice features to add is the ability to lookup users public keys by ID. This allows users to lookup to see if another user has setup their IronCore keys yet or not. Likely expose this as a SDK.user.getPublicKey method or similar.

Expose group update and delete methods

group.update(options)

Options will be an object where currently the only supported field is name: string | null.

group.delete(groupID)

Delete the provided group given it's ID.

Add apple silicon (arm64) support?

Looks like arm64 is not a supported platform, would it be possible to add support for Apple silicon?
The readme says to open an issue to potentially get support added.
Would this be possible?

Here's an image for context:
Screen Shot 2022-01-13 at 5 16 35 PM

Please let me know if there's some more you need from me.
Thanks

Add document create option to not encrypt document to author

Add a new boolean flag (default true) on document.create which controls whether the author of the document will have the document be encrypted to them. The document.create call must share with at least one user/group, so if this option is false, the grantList must have at least one entry.

Also need to consume changes to how the document list, document get response structures can change if the author is requesting a document that they cannot decrypt.

Implement standard device key format

We are going to standardize the DeviceContext/DeviceKeys JSON format across all SDKs. The proposed format (in Typescript) is:

{
    deviceId: number;
    accountId: string;
    segmentId: number;
    devicePrivateKey: Base64String;
    // “expanded private key” (both pub/priv)
    signingPrivateKey: Base64String; 
}

see: IronCoreLabs/ironoxide#25

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.