Giter VIP home page Giter VIP logo

biscuit's People

Contributors

justinaiken avatar nevinera avatar perryism avatar suan avatar zmariscal-ut avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

biscuit's Issues

Lack of integrity verification of downloaded external dependencies

Hey,

My name is Maciej Mensfeld and I run a research security project called WhiteSource Diffend.io.

I've noticed, that this library downloads some external resources and uses them. While it's a totally common pattern, what is lacking here is integrity verification.

You could verify the integrity of the downloaded file before using it by comparing the file hash to a hardcoded, expected file hash.

This is essentially what package managers do to verify the integrity of downloaded packages.

Doing this would prevent attack scenarios in which biscuit is manipulated.

Have a great day :)

ref: https://my.diffend.io/gems/biscuit/0.0.1/page/1#d2h-485802

Upstream biscuit *is* YAML. Kind of. Sort of.

The change

64c3543 switch from YAML parsing to splitting on newlines then chopping up based on :...

But...

The biscuit binary supports multilines...

For example

$ touch somefile
$ echo "foo\nbar" >> somefile
$ biscuit put -f secret_file.yml FOO -i somefile
$ biscuit export -f secret_file.yml | grep FOO -A2
FOO: |
  foo
  bar

And for our use case...

  • We have some keys that need multilines.. my attempts to encode it in biscuit with the newlines removed, then replace them after loading is a bit too clunky. Think we'd better keep support for multiline values

How should we fix?

  • Revert most of #4 (but keeping the specs for non values)
  • Some hybrid of YAML loading the keys and manually parsing the values
  • Regex golf on |\n ?

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.