@dxos/credentials 2.19.2-dev.fdfdb775 → 2.19.3-dev.34005b39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "packages/halo/credentials/README.md": "b6859b1e271596aa5934d07b6d4320721c43b035",
4
- "packages/halo/credentials/package.json": "6fb9b122c931e74e93826b040af5bc20376c038c",
4
+ "packages/halo/credentials/package.json": "ed5637ac7bcf1f6d1646482ffd7cdea6607b9aa5",
5
5
  "packages/halo/credentials/src/auth/auth-message.ts": "c90d8b73215d20b59f922f97b52973dec69c0f40",
6
6
  "packages/halo/credentials/src/auth/auth-plugin.test.ts": "8137ba367cb7c957b0a807e073f9135cb43cb7a5",
7
7
  "packages/halo/credentials/src/auth/auth-plugin.ts": "bd396849819fafc210bc093f0c6afa07e9fe782b",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "packages/halo/credentials/README.md": "b6859b1e271596aa5934d07b6d4320721c43b035",
4
- "packages/halo/credentials/package.json": "6fb9b122c931e74e93826b040af5bc20376c038c",
4
+ "packages/halo/credentials/package.json": "ed5637ac7bcf1f6d1646482ffd7cdea6607b9aa5",
5
5
  "packages/halo/credentials/src/auth/auth-message.ts": "c90d8b73215d20b59f922f97b52973dec69c0f40",
6
6
  "packages/halo/credentials/src/auth/auth-plugin.test.ts": "8137ba367cb7c957b0a807e073f9135cb43cb7a5",
7
7
  "packages/halo/credentials/src/auth/auth-plugin.ts": "bd396849819fafc210bc093f0c6afa07e9fe782b",
@@ -0,0 +1,102 @@
1
+ Invoking: toolchain build:test
2
+
3
+
4
+ protobuf
5
+ Compiling protobuf definitions
6
+
7
+ Proto file(s): /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/defs/auth.proto
8
+ /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/defs/greet.proto
9
+ /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/defs/identity.proto
10
+ /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/defs/party.proto
11
+ Substitution file: /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/substitutions.ts
12
+ Output directory: /home/github/_work/protocols/protocols/packages/halo/credentials/src/proto/gen
13
+
14
+ Loaded 3 substitutions:
15
+
16
+ google.protobuf.Any -> any
17
+ dxos.halo.keys.PubKey -> import("/home/github/_work/protocols/protocols/packages/common/crypto/dist/src/public-key").PublicKey
18
+ dxos.halo.keys.PrivKey -> Buffer
19
+
20
+ OK in 2793 ms
21
+
22
+ typescript
23
+ OK in 1826 ms
24
+
25
+ eslint
26
+
27
+ /home/github/_work/protocols/protocols/packages/halo/credentials/src/auth/auth-plugin.test.ts
28
+ 158:1 warning Test has no assertions jest/expect-expect
29
+
30
+ ✖ 1 problem (0 errors, 1 warning)
31
+
32
+ OK in 7484 ms
33
+
34
+ mocha
35
+
36
+
37
+ ✓ Auth Plugin (GOOD) (141ms)
38
+ ✓ Auth & Repl (GOOD) (252ms)
39
+ ✓ Chain of Keys (53ms)
40
+ ✓ PartyAuthenticator - good direct
41
+ ✓ PartyAuthenticator - good chain
42
+ ✓ PartyAuthenticator - bad chain
43
+ ✓ PartyAuthenticator - wrong key
44
+ ✓ PartyAuthenticator - wrong party
45
+ ✓ PartyAuthenticator - missing deviceKey
46
+ ✓ PartyAuthenticator - tampered message
47
+ ✓ PartyAuthenticator - tampered signature
48
+ ✓ PartyAuthenticator - signature too old
49
+ ✓ PartyAuthenticator - signature too far in future
50
+ ✓ PartyAuthenticator - signature date invalid
51
+ ✓ Greeting Flow using GreetingCommandPlugin (66ms)
52
+ ✓ Good invitation
53
+ ✓ Bad invitation secret
54
+ ✓ Attempt to re-use invitation
55
+ ✓ Wrong partyKey
56
+ ✓ Create Invitation message
57
+ ✓ WellKnownType params - BytesValue
58
+ ✓ Create cold identity key and recover
59
+ ✓ Basic filter
60
+ ✓ Basic AND filter
61
+ ✓ Generate keys
62
+ ✓ Update a key
63
+ ✓ Bad key attributes
64
+ ✓ Add/retrieve single keyRecord from an external source
65
+ ✓ Try to add/retrieve a publicKey from an external source (with secret present)
66
+ ✓ Add/retrieve a publicKey from an external source (without secret present)
67
+ ✓ Retrieve a non-existent key
68
+ ✓ Sign and verify a message with a single key
69
+ ✓ Sign and verify a message with multiple keys
70
+ ✓ Sign and verify a message using a key chain
71
+ ✓ Attempt to sign a message with a publicKey
72
+ ✓ Attempt to add a badly formatted key
73
+ ✓ Attempt to add a keyRecord missing its secretKey
74
+ ✓ Attempt to add a keyRecord missing its publicKey
75
+ ✓ Attempt to add keyRecord with reversed publicKey/secretKey
76
+ ✓ Attempt to add secretKey as a publicKey
77
+ ✓ Tamper with the contents of a signed message
78
+ ✓ Tamper with the signature of a signed message
79
+ ✓ Tamper with the signature key of a signed message
80
+ ✓ To/from JSON
81
+ ✓ Raw sign
82
+ ✓ To/from Protobuf
83
+ ✓ Authenticate flow for Kube/Keyhole authentication
84
+ ✓ Basic store operations
85
+ ✓ reloading
86
+ ✓ PartyInvitation messages
87
+ ✓ Process basic message types (41ms)
88
+ ✓ GreetingCommandPlugin envelopes
89
+ ✓ Reject message from unknown source
90
+ ✓ Message signed by known and unknown key should not admit unknown key
91
+ ✓ Reject Genesis not signed by Party key
92
+ ✓ Reject admit key message with wrong Party
93
+ ✓ Reject admit feed message with wrong Party
94
+ ✓ Reject tampered Genesis message
95
+ ✓ Reject tampered admit feed message
96
+ ✓ Reject tampered admit key message
97
+
98
+ 60 passing (1s)
99
+
100
+ OK in 6091 ms
101
+
102
+ CHECK COMPLETE in 18214 ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/credentials",
3
- "version": "2.19.2-dev.fdfdb775",
3
+ "version": "2.19.3-dev.34005b39",
4
4
  "description": "DXOS Credentials",
5
5
  "homepage": "https://github.com/dxos/halo/tree/master/packages/credentials#readme",
6
6
  "bugs": {
@@ -23,14 +23,14 @@
23
23
  "> 5%"
24
24
  ],
25
25
  "dependencies": {
26
- "@dxos/async": "2.19.2-dev.fdfdb775",
27
- "@dxos/codec-protobuf": "2.19.2-dev.fdfdb775",
28
- "@dxos/crypto": "2.19.2-dev.fdfdb775",
29
- "@dxos/debug": "2.19.2-dev.fdfdb775",
30
- "@dxos/feed-store": "2.19.2-dev.fdfdb775",
31
- "@dxos/proto": "2.19.2-dev.fdfdb775",
32
- "@dxos/protocol": "2.19.2-dev.fdfdb775",
33
- "@dxos/util": "2.19.2-dev.fdfdb775",
26
+ "@dxos/async": "2.19.3-dev.34005b39",
27
+ "@dxos/codec-protobuf": "2.19.3-dev.34005b39",
28
+ "@dxos/crypto": "2.19.3-dev.34005b39",
29
+ "@dxos/debug": "2.19.3-dev.34005b39",
30
+ "@dxos/feed-store": "2.19.3-dev.34005b39",
31
+ "@dxos/proto": "2.19.3-dev.34005b39",
32
+ "@dxos/protocol": "2.19.3-dev.34005b39",
33
+ "@dxos/util": "2.19.3-dev.34005b39",
34
34
  "@types/debug": "^4.1.7",
35
35
  "@types/end-of-stream": "^1.4.0",
36
36
  "@types/pify": "^3.0.2",
@@ -50,9 +50,9 @@
50
50
  "stream-to-array": "^2.3.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@dxos/protocol-plugin-replicator": "2.19.2-dev.fdfdb775",
54
- "@dxos/random-access-multi-storage": "2.19.2-dev.fdfdb775",
55
- "@dxos/toolchain-node-library": "2.19.1",
53
+ "@dxos/protocol-plugin-replicator": "2.19.3-dev.34005b39",
54
+ "@dxos/random-access-multi-storage": "2.19.3-dev.34005b39",
55
+ "@dxos/toolchain-node-library": "2.19.2",
56
56
  "@types/encoding-down": "^5.0.0",
57
57
  "@types/expect": "~24.3.0",
58
58
  "@types/jest": "^26.0.7",