Code Monkey home page Code Monkey logo

cryptdo's People

Contributors

iredelmeier avatar jfmyers9 avatar xoebus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

cryptdo's Issues

Add version command

I have built a version of cryptdo, but I don't have any way of telling which version this binary is.

I don't really care what the versioning scheme is, but I'd like a --version command (or similar) which allows me to do two things:

  1. determine that two binaries are the same version (or different)
  2. determine that one binary is newer than another (i.e. a versioning scheme that is increasing over time in an intuitive, deterministic manner).

Fails to build on arch linux with bazel version 0.5.3

[jfmyers9@jfmyers9 cryptdo]$ bazel build //...
Extracting Bazel installation...
...........
WARNING: /home/jfmyers9/.cache/bazel/_bazel_jfmyers9/e98d2b9cb4b10236e6ed586e39086627/external/bazel_tools/tools/build_defs/pkg/pkg.bzl:196:9: pkg_tar: renaming non-dict `files` attribute to `srcs`.
ERROR: /home/jfmyers9/.cache/bazel/_bazel_jfmyers9/e98d2b9cb4b10236e6ed586e39086627/external/io_bazel_rules_go/go/tools/builders/BUILD:22:1: in go_tool_binary rule @io_bazel_rules_go//go/tools/builders:compile:
Traceback (most recent call last):
        File "/home/jfmyers9/.cache/bazel/_bazel_jfmyers9/e98d2b9cb4b10236e6ed586e39086627/external/io_bazel_rules_go/go/tools/builders/BUILD", line 22
                go_tool_binary(name = 'compile')
        File "/home/jfmyers9/.cache/bazel/_bazel_jfmyers9/e98d2b9cb4b10236e6ed586e39086627/external/io_bazel_rules_go/go/private/go_tool_binary.bzl", line 35, in _go_tool_binary_impl
                ctx.action(inputs = ((ctx.files.srcs + tool...), <4 more arguments>)
        File "/home/jfmyers9/.cache/bazel/_bazel_jfmyers9/e98d2b9cb4b10236e6ed586e39086627/external/io_bazel_rules_go/go/private/go_tool_binary.bzl", line 36, in ctx.action
                toolchain.tools
object of type 'Target' has no field 'tools'.
ERROR: Analysis of target '//cryptdopb:go_default_library' failed; build aborted.
INFO: Elapsed time: 98.510s
[jfmyers9@jfmyers9 cryptdo]$ bazel version
Build label: 0.5.3- (@non-git)
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Sat Aug 12 19:43:34 2017 (1502567014)
Build timestamp: 1502567014
Build timestamp as int: 1502567014
[jfmyers9@jfmyers9 cryptdo]$ uname -a
Linux jfmyers9 4.12.4-1-ARCH #1 SMP PREEMPT Fri Jul 28 18:54:18 UTC 2017 x86_64 GNU/Linux

Cryptdo Leaves around unencrypted files.

16:44:24 mission in ~/workspace/sec-red-meta/deployments/bbl
✓ master → git status
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working tree clean

16:44:32 mission in ~/workspace/sec-red-meta/deployments/bbl
✓ master → source <(cryptdo -p REDACTED bbl print-env)

16:44:41 mission in ~/workspace/sec-red-meta/deployments/bbl
✗ master → git status
On branch master
Your branch is up-to-date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        *.sec-blue.red.cf-app.com.key
        bbl-account.key.json
        bbl-state.json
        cf-deployment-vars.yml
        id_rsa_bosh
        sec-blue.key

nothing added to commit but untracked files present (use "git add" to track)

I find this behavior surprising.

It makes it incredibly easy to check in the files unencrypted as git add -p does not work on binary files, so users often result to using git add . in this scenario.

Make 1.0 Release

  • Add crypto generation versioning field to protocol and document what that implies.
  • Add test to verify that future versions can still open v1.0 encrypted blobs
  • Publish my public key on my website
  • Add instructions on how to install and verify that you have a good binary
  • Make release and publish

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.