xoebus / cryptdo Goto Github PK
View Code? Open in Web Editor NEWa simple wrapper for commands which access sensitive files
License: BSD 3-Clause "New" or "Revised" License
a simple wrapper for commands which access sensitive files
License: BSD 3-Clause "New" or "Revised" License
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:
[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
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.
A brew formula would be pretty great handy :)
--passphrase
protobuf
encode other encryption parameters
I think a feature that let's you put a file with passphrases (or commands to fetch passphrases) in the home directory might get around the no TTY issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.