feat(sync): paginate Android sync with change tokens
This commit is contained in:
1 parent
0ff94f9b10
commit
97c237be80
76 files changed
+3401
-851
No files matched your search
@@ -1,31 +1,60 @@
|
||||
{
|
||||
"description": "Fixtures that the Go, Node and Python auth helpers must agree on. Each runtime's test suite loads this file and checks its own column; a value that differs between runtimes is a known divergence (Q-008) and is written down here rather than hidden. Change a value only together with the code that changes the behaviour.",
|
||||
"description": "Fixtures that the Go, Node and Python auth helpers must agree on. Each runtime's test suite loads this file and checks its own column. Change a value only together with the code that changes the behavior.",
|
||||
"password": {
|
||||
"plaintext": "correct horse battery staple",
|
||||
"wrongPassword": "not the right password",
|
||||
"hashes": [
|
||||
{
|
||||
"name": "Node, current pbkdf2-sha256 scheme",
|
||||
"name": "Legacy PBKDF2 scheme with recorded iteration count",
|
||||
"hash": "pbkdf2-sha256$600000$76add00c36dafceac62928d01f706c20$f50eec2591755f169bd151369e41a4e6918c6a2816d19516cc38763bfa63c0ca",
|
||||
"verifies": {
|
||||
"go": false,
|
||||
"go": true,
|
||||
"node": true,
|
||||
"python": false
|
||||
"python": true
|
||||
},
|
||||
"needsUpgrade": {
|
||||
"node": false
|
||||
"go": true,
|
||||
"node": true,
|
||||
"python": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Node, legacy salt:hex at 100000 iterations",
|
||||
"name": "Legacy salt:hex PBKDF2 at 100000 iterations",
|
||||
"hash": "0123456789abcdef0123456789abcdef:69a26fc4b1624cd29ecc2b2444aa876251575c65deb4af9effbd9eadbd4195c6",
|
||||
"verifies": {
|
||||
"go": false,
|
||||
"go": true,
|
||||
"node": true,
|
||||
"python": false
|
||||
"python": true
|
||||
},
|
||||
"needsUpgrade": {
|
||||
"node": true
|
||||
"go": true,
|
||||
"node": true,
|
||||
"python": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Legacy PBKDF2 password over bcrypt's input limit",
|
||||
"hash": "0123456789abcdef0123456789abcdef:a8a80395df31b48bfb1dc4fabb6457dc61a50aae0c8d469f618303f0cea367b2",
|
||||
"password": "legacy:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"wrongPassword": "legacy:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxy",
|
||||
"verifies": {
|
||||
"go": true,
|
||||
"node": true,
|
||||
"python": true
|
||||
},
|
||||
"needsUpgrade": {
|
||||
"go": true,
|
||||
"node": true,
|
||||
"python": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Current bcrypt scheme with cost 12",
|
||||
"hash": "bcrypt$$2b$12$NExB1DALH97MOTr6ZSUjYOb4gc.2g/uWCqbUX1d/c450damk1A9r2",
|
||||
"verifies": {
|
||||
"go": true,
|
||||
"node": true,
|
||||
"python": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -33,11 +62,12 @@
|
||||
"hash": "bcrypt$$2b$04$swZK.9qxywaA8ezhm5aomuRTjsKm844M.p2KuaXqqp1jaK9.bnaa2",
|
||||
"verifies": {
|
||||
"go": true,
|
||||
"node": false,
|
||||
"node": true,
|
||||
"python": true
|
||||
},
|
||||
"needsUpgrade": {
|
||||
"go": true,
|
||||
"node": true,
|
||||
"python": true
|
||||
}
|
||||
},
|
||||
@@ -46,11 +76,12 @@
|
||||
"hash": "$2b$04$swZK.9qxywaA8ezhm5aomuRTjsKm844M.p2KuaXqqp1jaK9.bnaa2",
|
||||
"verifies": {
|
||||
"go": true,
|
||||
"node": false,
|
||||
"node": true,
|
||||
"python": true
|
||||
},
|
||||
"needsUpgrade": {
|
||||
"go": true,
|
||||
"node": true,
|
||||
"python": true
|
||||
}
|
||||
},
|
||||
@@ -86,10 +117,10 @@
|
||||
"bytes": 73,
|
||||
"accepted": {
|
||||
"go": false,
|
||||
"node": true,
|
||||
"node": false,
|
||||
"python": false
|
||||
},
|
||||
"note": "bcrypt reads only the first 72 bytes, so Go and Python refuse a longer password; PBKDF2 has no such limit."
|
||||
"note": "New passwords over 72 bytes are refused. Existing longer PBKDF2 passwords still verify and migrate to the marked bcrypt-sha256 scheme without truncation."
|
||||
}
|
||||
},
|
||||
"totp": {
|
||||
@@ -129,12 +160,14 @@
|
||||
"name": "the next step still accepts the previous code",
|
||||
"unix": 1111111139,
|
||||
"code": "081804",
|
||||
"matchedStep": 37037036,
|
||||
"valid": true
|
||||
},
|
||||
{
|
||||
"name": "the previous step accepts the next code",
|
||||
"unix": 1111111079,
|
||||
"code": "081804",
|
||||
"matchedStep": 37037036,
|
||||
"valid": true
|
||||
},
|
||||
{
|
||||
@@ -321,5 +354,75 @@
|
||||
"want": "2001:db8::9"
|
||||
}
|
||||
]
|
||||
},
|
||||
"internalSecret": {
|
||||
"note": "The SECRET that gates a service's internal routes (X-Internal-Auth). Length counts characters (code points), not bytes. Every runtime reads minLength and placeholders from here.",
|
||||
"minLength": 16,
|
||||
"placeholders": [
|
||||
"SECRET",
|
||||
"change-me-to-a-long-random-value"
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"name": "unset secret never matches",
|
||||
"secret": "",
|
||||
"provided": "",
|
||||
"matches": false
|
||||
},
|
||||
{
|
||||
"name": "missing header never matches",
|
||||
"secret": "0123456789abcdef",
|
||||
"provided": "",
|
||||
"matches": false
|
||||
},
|
||||
{
|
||||
"name": "secret one character under the minimum never matches",
|
||||
"secret": "0123456789abcde",
|
||||
"provided": "0123456789abcde",
|
||||
"matches": false
|
||||
},
|
||||
{
|
||||
"name": "secret at the minimum matches itself",
|
||||
"secret": "0123456789abcdef",
|
||||
"provided": "0123456789abcdef",
|
||||
"matches": true
|
||||
},
|
||||
{
|
||||
"name": "a prefix of the secret does not match",
|
||||
"secret": "0123456789abcdef",
|
||||
"provided": "0123456789abcde",
|
||||
"matches": false
|
||||
},
|
||||
{
|
||||
"name": "comparison is exact",
|
||||
"secret": "0123456789abcdef",
|
||||
"provided": "0123456789abcdeF",
|
||||
"matches": false
|
||||
},
|
||||
{
|
||||
"name": "length counts characters, not bytes",
|
||||
"secret": "éééééééééééééééé",
|
||||
"provided": "éééééééééééééééé",
|
||||
"matches": true
|
||||
},
|
||||
{
|
||||
"name": "fifteen multibyte characters are too short",
|
||||
"secret": "ééééééééééééééé",
|
||||
"provided": "ééééééééééééééé",
|
||||
"matches": false
|
||||
},
|
||||
{
|
||||
"name": "the example placeholder never matches",
|
||||
"secret": "change-me-to-a-long-random-value",
|
||||
"provided": "change-me-to-a-long-random-value",
|
||||
"matches": false
|
||||
},
|
||||
{
|
||||
"name": "the bare variable name never matches",
|
||||
"secret": "SECRET",
|
||||
"provided": "SECRET",
|
||||
"matches": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user