20 Commits

Author SHA1 Message Date
Mahrud Sayrafi
e6481c0513 Fixing rebase of andrewbuss/decrypt_sign
Also switched testdata/ssh_key with an ssh-ed25519 key
2018-03-12 12:39:32 -07:00
Andrew Buss
370d8c6d3b Ran goimports on the whole project. No functional changes 2018-03-12 12:39:32 -07:00
Andrew Buss
7fb0228c2a Addressed comments
Addressed comments
2018-03-12 12:39:32 -07:00
Andrew Buss
186092a44e Renamed DecryptSign -> SSHSignWith, added tests for SSHSignWith and Usages 2018-03-12 12:39:32 -07:00
Andrew Buss
9035eed8fd Add SSH wrapper to RO client
Add Usages field to EncryptedData to allow creation of a file which
can only be used to create signatures and cannot be directly decrypted
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
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
Daniel, Dao Quang Minh
ad1d045520 Switch to cloudflare/backoff library (#174) 2016-10-03 10:44:55 -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
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
a03c794895 add support to Owners request to server 2016-02-19 09:50:25 -08:00
Jacob H. Haven
48fd0baab9 Add order support to ro client 2016-01-14 14:08:25 -08:00
Joshua Kroll
5a748b9249 Add exponential backoff to the Red October client, following the pattern in the CFSSL transport package client. 2015-11-21 05:02:53 -08:00
J Delaney
9443fdbf7a Add dedicated API for creating users 2015-10-09 13:00:08 -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
Giulio Iotti
6e4957554c Implement purge action to remove all delegates, closes #48 2015-07-20 23:48:16 -07:00
Zi Lin
68e8f62107 client update. Trusted CAFile should be optional 2015-05-08 17:03:11 -07:00
Zi Lin
4702aab061 A simple client package for redoctober
- Generalize core.status to core.responseData
- Export core request types so the client can marshal/unmarshal
requests/responses
- Tested with a test script against a local redoctober server
2015-04-21 15:55:03 -07:00