Commit Graph

26 Commits

Author SHA1 Message Date
J Delaney
018b541e20 Add test for validateName function 2015-10-09 10:11:08 -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
Kyle Isom
209df8d9a6 Add purge command to clear delegations. Closes #48. 2015-07-21 00:03:22 -07:00
Giulio Iotti
6e4957554c Implement purge action to remove all delegates, closes #48 2015-07-20 23:48:16 -07:00
Kyle Isom
9ae97534ff Don't discard result of errors.New. 2015-07-20 15:52:24 -07:00
Kyle Isom
e0e6b260a0 Note the component that a log entry originates from.
Instead of just 'init', use 'core.init' for core commands. Likewise,
in the HTTP server, note log entries originate from the server.
2015-07-20 09:54:51 -07:00
Kyle Isom
e37be3a12a Consistent and more thorough logging.
This PR makes log entries consistent in their format, and ensures
that all the core functions are logged.
2015-07-20 09:54:04 -07:00
Nick Sullivan
27477addba Merge pull request #66 from cloudflare/kyle/export
Add export endpoint, permitting backing up the vault.
2015-07-10 14:13:33 -07:00
Kyle Isom
6c2bc7c773 Improve logging for various actions in the core package. 2015-07-09 15:27:43 -07:00
Kyle Isom
ead76f2c30 Add export endpoint, permitting backing up the vault. 2015-07-09 13:28:18 -07:00
Kyle Isom
f8fd086af1 User summary fix and IP logging. 2015-07-09 11:37:29 -07:00
Alessandro Ghedini
4183569465 Add support for listing required delegations for an encrypted secret
This patch adds the /owners API endpoint that returns the list of users
that "own" the given secret. These are the users that can delegate their
passwords for decrypting the secret.

It also adds the "Get Owners" form in the web UI that uses the new API.

Fixes #62
2015-06-17 11:07:26 +02:00
Kyle Isom
923804458d goimports and go vet cleanups. 2015-05-07 15:35:07 -07:00
Brendan Mc
935b929dd5 Return to idiomatic style & Backwards compatible left&right owners 2015-05-04 19:05:19 -07:00
Brendan Mc
7e08548caf Patched HMAC vulnerability. 2015-05-01 16:46:57 -07:00
Brendan Mc
9f0c4e9e28 Fixed empty list bug & lowered disk thrashing in core_test 2015-05-01 16:11:33 -07:00
Brendan Mc
e61103147c Minimized global state and made user type an option. 2015-05-01 16:10:55 -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
Nick Sullivan
5deefb26c5 Let encrypt and decrypt be called by non-admins. 2015-04-13 12:51:02 -07:00
Nick Sullivan
8e910c2035 Changes to delegation model
- decryption can happen by non-admins
- encrypted files can be given labels
- delegation can limit decryption to specific users and labels
2015-04-09 17:15:44 -07:00
Nick Sullivan
8c21db7ba4 Add support for left/right groups
LeftOwners and RightOwners can now be used as either disjoint
or overlapping sets of users for encrypting a message. Default
behavior is to set them to Owners given a non-empty Owners set.

One member from each group are required to decrypt the message.
2015-02-09 18:51:33 -08:00
Kyle Isom
91cd67f267 Decrypt returns the list of users used for delegation
When decrypting a chunk of data, red october will now report the users
whose keys were used in the decryption.
2014-09-14 19:13:37 -07:00
Kyle
46b93b7fba Update core_test to check for DefaultRecordType.
In the passvault, the default type of public key cryptography is
selected via a variable. The core test has been changed where it relies
on RSA specifically to check for the default record type.
2014-01-09 19:23:44 -07:00
Nick Sullivan
669d7279c2 Make testcode play nice with go vet 2013-11-26 12:15:37 -08:00
Nick Sullivan
f5789348de Add basic checking to username and password. 2013-11-25 11:10:51 -08:00
Albert Strasheim
9c5d08f665 Make repository work with go get 2013-11-21 12:01:25 -08:00