summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-08-30[bug] don't remove combined_bundle file on destructorTulio Casagrande
After PR #116, it's possible to inject an existing combined_ca_bundle to the keymanager initialisation. However, it won't work for multiple users because the file is removed when the keymanager is destroyed. Considering there's no sensitive data on the file and it's created as a temp file, we don't need to handle its deletion.
2016-08-25[feat] allowing for optional injection of the combined_ca_bundle filenameNavaL
For the multi-tenancy case, the combined_ca_bundle could be done once to avoid unnecessary disk IO for each user. The default case is still valid, and will not cause issues anywhere.
2016-07-29[feature] keymanager - background update keysZara Gebru
- refresh random key in random time - add get key by fingerprint - refactor nicknym methods to own file - tests - note this do not include a check for revoked key, since that need some changes in gnupg - Related: #6089
2016-07-28[pkg] remove simplejson depdrebs
2016-07-12[test] move tests to root of repodrebs
2016-07-05[feat] make ValidationLevels iterableRuben Pollan
Needed by bytmask cli. - Related: #7965
2016-06-20[feat] check key document versions and fail if it's unknownRuben Pollan
- Closes: #8165
2016-06-17[feat] improve duplicated active documents fixupRuben Pollan
Mostly for private keys we want to keep the latest one in the keyring. It would be desirable to check with one is set in nicknym, but this will need a big refactor that I'm not sure if it's worth it just for that. - Related: #6658, #8059
2016-06-10[bug] Add KeyNotFound importZara Gebru
Two tests where failing, because - Related: #7987
2016-06-01[test] test key generation (skipped)Ruben Pollan
2016-06-01fixup! [feat] remove the keytype supportRuben Pollan
2016-06-01[feat] remove request dependencyRuben Pollan
2016-06-01[feat] make get_all_keys aware of active addressesRuben Pollan
- Resolves: #8068
2016-06-01[refactor] move soledad document definitions to it's own fileRuben Pollan
2016-06-01[feat] remove keytype from build_key_from_dictRuben Pollan
2016-06-01[feat] remove the keytype supportRuben Pollan
- Resolves: #8031
2016-06-01[refactor] remove EncryptionKeyRuben Pollan
2016-06-01[refactor] move TempGPGWrapper to it's own fileRuben Pollan
2016-06-01[refactor] remove EncryptionSchemeRuben Pollan
2016-05-30[bug] fix invalid json warning when key fetch failsZara Gebru
Raise KeyNotFound error, when nicknym throws response 404, as it fails to find a key and add tests. - Resolves: #7987
2016-05-25Merge remote-tracking branch 'pixelated/6200_add_support_for_binary_key' ↵Ruben Pollan
into develop - Resolves: #6200
2016-05-24Issue #287: add tests for binary key and refactorZara Gebru
2016-04-27[feat] creat an iterator to build dictsRuben Pollan
Need pizza!!!!!!
2016-04-19[bug] encryption keys can now be serialized to json using key.get_dict()elijah
2016-04-11[feat] reduce log level for encrypt/decrypt errorsRuben Pollan
* Related: #8022
2016-04-11[bug] delete versioneer duplicated blockKali Kaneko (leap communications)
2016-04-11[style] Removed duplicated importBruno Wagner
There was a duplicate import for get_versions, that was not at the top of the file, that caused a pep warning and was fixed in this commit
2016-04-01[pkg] update to versioneer 0.16Kali Kaneko
2016-03-20[bug] Return KeyNotFound Failure if not valid key is given to put_raw_keyRuben Pollan
- Resolves: #7974
2016-02-25[test] refactor key deletion testsRuben Pollan
2016-02-25[feat] update usage only if neededRuben Pollan
During encryption we where updating 'enc_used' in the key without checking if it was already set.
2016-02-25[feat] Make EncryptionKey aware of the active addressRuben Pollan
2016-02-25[test] add updater testsRuben Pollan
2016-02-25[feat] Use fingerprints instead of key idsRuben Pollan
- Resolves: #7500
2016-02-25[feat] Migrate soledad documents by adding versioning fieldRuben Pollan
- Resolves: #7713
2016-02-25[feat] move validation, usage and audited date to the active documentRuben Pollan
- Resolves: #7485
2016-02-23[feat] defer decrypt, gen_key and encryptVictor Shyba
This commit put those gnupg operations to be run on external threads limited by the amount of cores present on user machine. Some gnupg calls spawn processes and communicating to them is a synchronous operation, so running outside of a reactor should improve response time by avoiding reactor locking.
2016-02-09[style] fix pep8Ruben Pollan
2016-02-04[docs] add docstrings and fixes pep8Victor Shyba
Some methods were missing docstrings and some code was exceeding the 80 column limit. Also some asserts arent needed anymore.
2016-01-29[feat] use HTTPClient instead of requestsVictor Shyba
This commit adapts code to use HTTPClient instead of requests. requests library receives a certificate as parameter during requests while HTTPClient recelives a cert only on constructor. In order to have both types (leap cert and commercial certs) working together we introduced two clients on constructor.
2016-01-27[refactor] isolate requestsVictor Shyba
Isolate requests lib related code and update docstrings.
2016-01-27[feat] defer blocking requests calls to threadVictor Shyba
That's a temporary fix for #6506 This commit adapts code to deal with deferreds coming from calling requests from Twisted. Next step is just to change requests for twisted http client present in leap.common. Unfortunately, this last step will be a bit longer and would be better to have integrations tests to ensure current HTTP behaviour.
2015-10-01[feat] self-repair the keyring if keys get duplicatedRuben Pollan
In some cases in the past keys got stored twice in different documents. Hopefully this issue is solved now, this tries to self-repair the keyring if encounters that. This is not really solving the problem, if it keeps happening we need to investigate the source. - Resolves: #7498
2015-09-28[bug] fix verify keys usageRuben Pollan
The latests refactor missed one line.
2015-09-25[refactor] improve readabilityKali Kaneko
Improve readability of operations on generic keys, by assigning the class matching the type of key (_wrapper_map[ktype]) at the beginning of each block. in the future, we could pass the type of key (only PGP keys being used at the moment) on initialization of the Keymanager, so we don't have to pass the ktype on each method call.
2015-09-24[refactor] refactor key parsingKali Kaneko
so that it can be tested without needing to instantiate the whole OpenPGPScheme object, that receives a soledad instance.
2015-09-24[style] more pep8 fixesKali Kaneko
2015-09-24[style] fix pep8 warningsFolker Bernitt
2015-09-24[bug] keep combined file longer in scopeFolker Bernitt
In previous commit 9546348c, the combined bundle ca was not long enough in scope and was therefore deleted when it actually was used. Adopted test to check whether file is deleted.
2015-09-24[tests] Add regression tests for sign_usedFolker Bernitt
Fails if wrong address is passed to the put_key method, or wrong key is marked as sign_used. - Related: #7420