Skip to content

Commit

Permalink
support for schema_type field that might have leaked into vaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ceberly committed Jun 2, 2023
1 parent 67863b6 commit 0220e92
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
6 changes: 6 additions & 0 deletions schemas/7/vault.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
"type": "string",
"format": "uuid"
},
"schema_type": { "type": "string" },
"title": { "type": "string" },
"notes": { "type": "string" }
},
Expand All @@ -168,6 +169,7 @@
"type": "string",
"format": "uuid"
},
"schema_type": { "type": "string" },
"line1": { "type": "string" },
"line2": { "type": "string" },
"city": { "type": "string" },
Expand All @@ -185,6 +187,7 @@
"type": "string",
"format": "uuid"
},
"schema_type": { "type": "string" },
"type": { "type": "string" },
"name": { "type": "string" },
"holder": { "type": "string" },
Expand Down Expand Up @@ -231,6 +234,7 @@
},
"notes": { "type": "string" },
"url": { "type": "string" },
"schema_type": { "type": "string" },
"id": {
"type": "string",
"format": "uuid"
Expand Down Expand Up @@ -264,6 +268,7 @@
"type": "string",
"format": "uuid"
},
"schema_type": { "type": "string" },
"name": { "type": "string" },
"username": { "type": "string" },
"password": { "type": "string" },
Expand Down Expand Up @@ -294,6 +299,7 @@
"type": "string",
"format": "uuid"
},
"schema_type": { "type": "string" },
"matching_hosts": { "type": "array", "items": { "type": "string" } },
"name": { "type": "string" },
"url": { "type": "string" },
Expand Down
72 changes: 72 additions & 0 deletions test/with_schema_types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"idCardValue": "SBr95SOWftis4FL8p1Y2eZZo3+5V9XWh+3ipsU8J0xY=",
"vaultSchemaMinor": 0,
"vaultSchemaMajor": 7,
"uuid": "e7d0e72f-4aee-4abd-92b6-a14934792776",
"email": "[email protected]",
"vault": [],
"manualItems": [
{
"name": "asdasd",
"url": "gngmememhijbokakblbhgfhagjdjcfjo",
"username": "asdasd",
"password": "asdasdsd",
"notes": "",
"id": "59d7753b-cda7-4086-b144-2d4b98f718a8",
"relatedItems": [],
"ssoProvider": [],
"matching_hosts": [
"gngmememhijbokakblbhgfhagjdjcfjo"
]
}
],
"contacts": [],
"confidants": [],
"oldPasswords": [],
"privateKeys": [
{
"key": "key",
"password": "password",
"walletAddresses": [
"01231231"
],
"name": "title2",
"notes": "12313123123123",
"url": "13123123",
"id": "a3a1af31-bbfa-46ec-b124-f2cd57116b6a",
"schema_type": "private_key"
}
],
"notes": [
{
"title": "asdasdas",
"notes": "asdasdasd",
"id": "9a7737af-9732-41ed-96e8-412b19d7def1",
"schema_type": "secure_note"
}
],
"creditCards": [
{
"type": "unknown",
"name": "123123312123asdasd",
"holder": "asdads",
"number": "1234123441231231",
"expiration": "0930",
"cvv": "111",
"id": "fd77749f-ec6f-456e-bdcf-2eaedeeeccff",
"schema_type": "credit_card"
}
],
"addresses": [
{
"line1": "123",
"line2": "asdads",
"city": "adsads",
"state": "PA",
"zip": "10001",
"country": "US",
"id": "efb3c1b9-f79b-4b07-a5cd-00c6ed80f638",
"schema_type": "address"
}
]
}

0 comments on commit 0220e92

Please sign in to comment.