22 Commits

Author SHA1 Message Date
Mahrud Sayrafi
c0b30b638a user/pass prompts from ro-ssh-agent are printed to stderr 2018-03-12 12:39:32 -07:00
Mahrud Sayrafi
998d924d79 ssh-add mode is introduced, ssh-agent mode is polished
See the last paragraph in README.md for an example.
2018-03-12 12:39:32 -07:00
Mahrud Sayrafi
3fc06e3b12 New functions (AddROSigner, etc.) and data structures for ROAgent.
Almost compatible with ssh-add now.
2018-03-12 12:39:32 -07:00
Mahrud Sayrafi
433afa9574 Replaced ssh subcommand with a working ssh-agent subcommand 2018-03-12 12:39:32 -07:00
Andrew Buss
a45f80f613 Working prototype using RO as a remote Signer for SSH authentication 2018-03-12 12:39:32 -07:00
Zi Lin
7d8077902b ro owner command should be robust with base64 encoded RedOctober encryption.
- We would avoid sending double base64 encoded request to server, triggering cryptic error message
2017-01-04 14:00:46 -08:00
Zi Lin
6b441d2e85 fix a casing in error message 2017-01-04 12:24:58 -08:00
Kyle Isom
7c4413ab4a Permit usernames with spaces. (#178)
+ We have an account with a space in it; the tool should accomodate
  this.

+ Additionally, support supplying only the username to the program.
2016-12-06 17:28:58 -08:00
Zi Lin
78e9720635 Zi/disable dead loop retry (#175)
* disable endless retry logic

- we should do the retry logic at application cmd/ro, cmd/ro will need to
  deal with keyboard interrupts as well

* update test self-signed certificate with a expiry of 100 years

* ro tool supports retries after getting delegation errors
2016-10-17 15:19:30 -07:00
Kyle Isom
9f39413adb Properly restore delegations.
This change addresses several points:

1. The integration tests didn't verify that delegations could be used
   for decryption following a restore. The integration tests now
   verify this.

2. There was no functionality for clearing persisted delegations if
   needed. The vault admin can now do this via the command line tool.

3. Restoring active delegations wasn't storing the key with the
   delegation. Keys are now serialised properly.

4. [Minor] The MSP package now reports the name of the offending user
   when it can't find a user name in the database.
2016-08-24 13:22:13 -07:00
Kyle Isom
4da501264a Add CLI support for restore endpoint.
+ Add the relevant parts to the command line tool and the client
  package.
+ Small improvements to cryptor's restore function:
  + Don't try to restore if the store is already active.
  + Flush the persistence key cache once the restoration occurs.
+ The redoctober program now explicitly mentions that a config file is
  invalid when that's the case.
2016-08-16 15:12:14 -07:00
jkroll-cf
7546ac3c76 Add a CreateUser function to the ro command line tool, to match the one in the client library. Previously, the ro tool mapped user creation onto /create, which is for creating the disk vault and admin user. (#161) 2016-08-04 12:53:09 -07:00
Kyle Isom
cb16b159f3 Add a status endpoint to the server.
This pull request adds a status endpoint to the Red October server; as
of this pull request, the status endpoint only returns the current
delegation persistence state. The HTTP UI has not been updated, as
this is scoped out for a future request; however, the CLI utility now
features a status command to fetch this information.
2016-07-13 10:20:06 -07:00
Zi Lin
1d61a4511b fix re-encrypt cli tool for new access structure requirement 2016-02-26 08:23:53 -08:00
Zi Lin
a03c794895 add support to Owners request to server 2016-02-19 09:50:25 -08:00
ejcx
6991a38586 Take a slice of users for orders
Don't assume that the creator of the order wants the delegations.
Instead it's much nicer with our current scheme to take in a big
slice of people who want delegations, so that each person who ne
eds a delegation doesn't need to make an order.
2016-01-29 15:51:38 -08:00
ejcx
63055fa438 Fix confusion of using a var named same as time package 2016-01-21 12:34:36 -08:00
Jacob H. Haven
48fd0baab9 Add order support to ro client 2016-01-14 14:08:25 -08:00
Zi Lin
fa395ea5b7 add a TODO for formatted summary output in ro cli 2015-09-28 15:33:22 -07:00
Zi Lin
d2246f5111 check response status before parse the response bytes 2015-09-28 15:31:13 -07:00
Zi Lin
b1ac8b4cc0 Add new operation: re-encrypt
're-encrypt' allows us to re-encrypt an RO encryption to a different set
of owners and labels. Currently two delegations are sufficient to carry
out this operation.
2015-08-11 16:43:28 -07:00
Zi Lin
4de443946c Add a CLI client
* vendored code.google.com/p/gopass as package cmd/ro/gopass
2015-07-30 13:02:56 -07:00