Commit 31423264 by Jun Matsushita

Merge branch '2016-06-27-leif' into 'master'

Update pseudonymity.md



See merge request !1
parents ad610ef5 190cf1f6
Pipeline #867 failed with stages
in 26 seconds
......@@ -11,7 +11,7 @@ build-json-schema:
script: bash -l "mson-to-json-schema.sh"
artifacts:
paths:
- entries/
- technology/
commit-json-schema:
tags:
......
# Metadata
- id (required)
- submitter
- author (string)
- datetime (string)
#!/bin/bash
set -euv
find entries
find technology || true
cd $CI_PROJECT_DIR
# bail out if this script made last commit
......@@ -27,26 +27,13 @@ export GIT_SSH=$SSH_WRAPPER
git config --global user.email mson-bot
git config --global user.name mson-bot
git remote add github git@github.com:joelanders/OII-schema.git || true
mkdir ~/.ssh || true
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
git fetch github
#git reset github/gh-pages
#touch .nojekyll
git add entries/*.json
git commit -m "building JSON from MSON" --allow-empty
git push github HEAD:master --force
cd $CI_PROJECT_DIR/_site
git init
# Push to gitlab dist branch
# Push to gitlab
git remote add gitlab git@lab.openintegrity.org:metrics/measurements.git || true
ssh-keyscan -H lab.openintegrity.org >> ~/.ssh/known_hosts
git fetch gitlab
git reset gitlab/schema
touch .
git add -A .
git reset gitlab/$CI_BUILD_REF_NAME
git add technology/*.json
git commit -a -m "Build $CI_BUILD_ID from GitLab-CI" --allow-empty
git push gitlab HEAD:schema
git push gitlab HEAD:$CI_BUILD_REF_NAME
......@@ -2,6 +2,13 @@
set -eu
cd $CI_PROJECT_DIR
# bail out if this script made last commit
author=$(git log -1 |grep "^Author: ")
if [[ $author =~ "mson" ]]; then
exit 0
fi
path-to-obj-name() {
file=$(basename $1) # strips the path part
name=${file%.*} # strips the extension
......@@ -11,11 +18,10 @@ path-to-obj-name() {
print_header() { cat <<-EOF
# GET /
+ Response 200 (application/json)
+ Attributes (dummy)
+ Attributes (Identity requirement measurement)
# Data Structures
# dummy
EOF
}
......@@ -30,7 +36,7 @@ print_footer() {
mson-to-json-schema() {
( print_header $(path-to-obj-name $1) && cat $1 && print_footer ) \
| hercule \
| drafter --format json \
| drafter --format json -u \
| refract-filter -j --content_type="application/schema+json";
}
......
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"Pseudonymity"
]
},
"project": {
"type": "string",
"description": "Project identifier"
},
"evidence": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"comment": {
"type": "string"
}
}
},
"metadata": {
"type": "object",
"properties": {
"author": {
"type": "string"
},
"datetime": {
"type": "string"
}
}
},
"identity": {
"type": "string",
"enum": [
"no identity",
"no email",
"email",
"email from provider",
"phone number",
"facebook",
"twitter",
"google",
"legal id"
]
}
}
}
Cost of creating a new identity
- No login required
- New account without an email (like many jabber server and reddit does)
- New account with email
- New account with email from specific provider
- New account with phone number
- New account with facebook
- New account with legal id
\ No newline at end of file
# Identity requirement measurement (Measurement)
The possibility to let the user control the disclosure of their identity.
Samples below reflect that:
- Many Jabber servers don't require an email to create an account
- Reddit account creation has email as an optional field
NOTE: This validates with Drafter 2.3.0 but doesn't properly deal with the `One Of` declaration yet (fixed in 2.3.1)
This should probably have a frontmatter with
practices:
- design#14
- technology#1
## Sample
- Identity requirement (Measurement)
- category: Pseudonymity (Category)
- project: Jabber (Project)
- identity: Account no email (Identity requirement)
- evidence (Evidence)
- url: https://www.jabber.de/register/
- comment: Email is not required.
- metadata (Metadata)
- author: Leif
- datetime: 20160627
## Sample
- Identity requirement (Measurement)
- category: Pseudonymity (Category)
- project: Reddit (Project)
- identity: Account no email (Identity requirement)
- evidence (Evidence)
- url: https://reddit.com
- comment: Try to signup without entering an email address and it works
- metadata (Metadata)
- author: Leif
## Properties
- identity (Identity requirement)
# Identity requirement (enum)
- no identity - No sign up required
- no email - New account without an email (like many jabber server and reddit does)
- email - New account with email
- email from provider - New account with email from specific provider
- phone number - New account with phone number
- facebook - New account with Facebook
- twitter - New account with Twitter
- google - New account with Google
- legal id - New account with legal id
# Measurement
- category (Category)
- project (string) - Project identifier
- evidence (Evidence)
- One of
- evidence (Evidence)
- evidencemedium (Evidence Medium)
- evidencestrong (Evidence Strong)
- metadata (Metadata)
# Category (enum)
- Pseudonymity
# Project
- name (string)
# Evidence
- url (string)
- comment (string)
# Evidence Medium
- url (string)
- comment (string)
- screenshot (Attachment)
# Evidence Strong
- url (string)
- url_2 (string)
- url_3 (string)
- comment (string)
- screenshot (Attachment)
# Attachment
- URI (string)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment