summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2018-01-31 04:44:25 -0800
committerazul <azul@riseup.net>2018-01-31 04:44:25 -0800
commit8e4a41291aa68b36a3ddff0af8ffec8191d72952 (patch)
tree0aaee43e23f9758dd254f643452f8d8e48c8d3ed /puppet/modules
parent97cabbfb947fc0cb9795ac07bcc73a0da0583032 (diff)
parent842b7d14bfcbb1022f1e24baf76be7835ec189f1 (diff)
Merge branch 'webapp/design-docs-for-katzenpost' into 'master'
webapp: update identity design doc for katzenpost See merge request leap/platform!145
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_couchdb/files/designs/identities/Identity.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/puppet/modules/site_couchdb/files/designs/identities/Identity.json b/puppet/modules/site_couchdb/files/designs/identities/Identity.json
index c099ae4a..e35d756b 100644
--- a/puppet/modules/site_couchdb/files/designs/identities/Identity.json
+++ b/puppet/modules/site_couchdb/files/designs/identities/Identity.json
@@ -18,6 +18,9 @@
"cert_fingerprints_by_expiry": {
"map": "function(doc) {\n if (doc.type != 'Identity') {\n return;\n }\n if (typeof doc.cert_fingerprints === \"object\") {\n for (fp in doc.cert_fingerprints) {\n if (doc.cert_fingerprints.hasOwnProperty(fp)) {\n emit(doc.cert_fingerprints[fp], fp);\n }\n }\n }\n}\n"
},
+ "keys_by_email": {
+ "map": "function(doc) {\n if (doc.type != 'Identity') {\n return;\n }\n if (typeof doc.keys === \"object\") {\n emit(doc.address, doc.keys);\n }\n}\n"
+ },
"pgp_key_by_email": {
"map": "function(doc) {\n if (doc.type != 'Identity') {\n return;\n }\n if (typeof doc.keys === \"object\") {\n emit(doc.address, doc.keys[\"pgp\"]);\n }\n}\n"
},
@@ -30,5 +33,5 @@
"reduce": "_sum"
}
},
- "couchrest-hash": "4a774c3f56122b655a314670403b27e2"
+ "couchrest-hash": "fbc2bd6950424cf7f3fa44ff899615a1"
} \ No newline at end of file