Commit Graph

44 Commits

Author SHA1 Message Date
Tankred Hase
77fc0fd195 Cleanup purge old keys 2017-08-25 16:11:35 +08:00
Tankred Hase
b738e1bc5c Allow update of an email address’ key with remove/verify flow in between 2017-08-25 14:32:39 +08:00
Tankred Hase
4c28da4eab Add uploaded attribute to documentation. 2017-08-24 12:48:48 +08:00
Tankred Hase
1e2c85621b Remove primaryEmail parameter from public-key service. 2017-08-24 12:48:48 +08:00
Tankred Hase
fe55578268 Remove legacy support since all documents now have an uploaded flag. 2017-08-22 15:26:15 +08:00
Tankred Hase
2af8310070 Purge old/unverified keys or keys without an uploaded attribute. 2017-08-22 12:13:15 +08:00
Tankred Hase
afacbf413f Add uploaded date attribute to PGP key document in MongoDB 2017-08-22 11:26:12 +08:00
Tankred Hase
35dbc08015 Use winston instead of npmlog 2017-08-18 18:01:34 +08:00
Tankred Hase
1557a5f925 Migrate public-key service to async/await 2017-08-16 17:55:32 +08:00
Tankred Hase
e9251d5203 Fix eslint errors 2017-08-15 16:03:06 +08:00
Tankred Hase
a47a0162a6 Use ES6 destructuring (not available in node v4) 2017-01-21 12:03:06 +00:00
Tankred Hase
516df397c2 Fix bug that prevented verification of multiple user ids 2016-06-17 19:56:33 +02:00
Tankred Hase
1ab934da31 Check for already verified user id on publicKey.verify() 2016-06-14 13:13:34 +02:00
Tankred Hase
e09454242d Purge key by keyID before persisting new key 2016-06-14 10:42:53 +02:00
Tankred Hase
8e89bc6959 Cleanup pgp.parseUserIds() 2016-06-12 22:17:02 +02:00
Tankred Hase
1b50081d47 Add comments in public-key.js 2016-06-10 19:58:26 +02:00
Tankred Hase
12b65e0ce2 Check valid email address earlier in pgp.parseUserIds 2016-06-10 18:43:09 +02:00
Tankred Hase
7e9a17266b Fix typo 2016-06-10 17:53:50 +02:00
Tankred Hase
68fba28dd9 Cleanup pgp key parsing 2016-06-10 17:47:05 +02:00
Tankred Hase
d5aba3257c Verifiy user id signatures 2016-06-10 14:37:39 +02:00
Tankred Hase
9be7feab04 Fix bug where keyId was undefined in verifyRemove link 2016-06-10 13:17:28 +02:00
Tankred Hase
d5bd65b4bc Cleanup url handling 2016-06-10 12:06:08 +02:00
Tankred Hase
405bb84ca6 Use random hex string instead of uuid for nonce 2016-06-10 10:44:26 +02:00
Tankred Hase
fe03ae213a Refactor public-key.js to use embedded user id documents 2016-06-09 17:07:51 +02:00
Tankred Hase
7bc4f8a9d9 Cleanup util 2016-06-09 12:58:11 +02:00
Tankred Hase
bdde8e44d5 Allow lookup only by key ids with at least 16 chars 2016-06-07 16:22:17 +02:00
Tankred Hase
2acbffa2f2 Simplify configuration for different environments 2016-06-07 15:04:34 +02:00
Tankred Hase
41cbd55d9e Fix HKP index, accept fingerprint for lookup 2016-06-02 22:55:32 +02:00
Tankred Hase
20145d3a11 Implement hkp index/mr 2016-06-02 20:43:58 +02:00
Tankred Hase
7179afaf6f Use nodemailer-openpgp plugin to encrypt verification emails 2016-06-02 16:19:54 +02:00
Tankred Hase
1a3e7f3942 Catch invalid pgp key 2016-06-01 16:17:36 +02:00
Tankred Hase
a27e833a8d Write public-key integration tests 2016-06-01 12:28:37 +02:00
Tankred Hase
0f4f6413d6 Implement public-key requestRemove and verifyRemove 2016-06-01 08:59:25 +02:00
Tankred Hase
33d3ad737e Implement and test key removal in user-id.js 2016-05-31 17:17:17 +02:00
Tankred Hase
c8db7388c3 Write unit tests for util.js 2016-05-31 13:52:32 +02:00
Tankred Hase
23ee139857 Implement and test user-id.flagForRemove 2016-05-31 12:16:46 +02:00
Tankred Hase
2abeb8ece2 Write used-id integration tests 2016-05-31 11:02:27 +02:00
Tankred Hase
f930ee38e9 Implement user-id.verify 2016-05-30 16:06:52 +02:00
Tankred Hase
e866cebc28 Rollback user ids if key persisting public key fails 2016-05-29 19:19:32 +02:00
Tankred Hase
e2695aecc7 Key upload and sending verification email works 2016-05-29 18:59:14 +02:00
Tankred Hase
d3cce89b06 Implement Email DAO for sending verification mails 2016-05-29 16:47:45 +02:00
Tankred Hase
c805371f0e Fix logging and error handling 2016-05-28 23:31:25 +02:00
Tankred Hase
0d2eba47ec Fix paths 2016-05-28 15:17:46 +02:00
Tankred Hase
2f789eeb42 Rename files 2016-05-28 15:11:28 +02:00