"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.",
"note":"New passwords over 72 bytes are refused. Existing longer PBKDF2 passwords still verify and migrate to the marked bcrypt-sha256 scheme without truncation."
"note":"Go and Python only. The address is the TCP peer unless the peer is in the trusted list; then X-Forwarded-For is read from the right and trusted hops are skipped (owner decision 5).",
"invalidTrustedProxyLists":[
"not-an-ip",
"10.0.0.0/33",
"10.0.0.1, bogus"
],
"cases":[
{
"name":"no trusted proxies ignores the header",
"trusted":"",
"peer":"203.0.113.7",
"forwarded":[
"198.51.100.1"
],
"want":"203.0.113.7"
},
{
"name":"an unknown peer's header is ignored",
"trusted":"10.0.0.0/8",
"peer":"203.0.113.7",
"forwarded":[
"198.51.100.1"
],
"want":"203.0.113.7"
},
{
"name":"single client behind a trusted peer",
"trusted":"10.0.0.0/8, 172.16.0.0/12",
"peer":"10.0.0.2",
"forwarded":[
"198.51.100.9"
],
"want":"198.51.100.9"
},
{
"name":"second trusted hop is skipped",
"trusted":"10.0.0.0/8, 172.16.0.0/12",
"peer":"10.0.0.2",
"forwarded":[
"198.51.100.9, 172.16.4.4"
],
"want":"198.51.100.9"
},
{
"name":"a spoofed left-most entry is skipped",
"trusted":"10.0.0.0/8, 172.16.0.0/12",
"peer":"10.0.0.2",
"forwarded":[
"6.6.6.6, 198.51.100.9, 172.16.4.4"
],
"want":"198.51.100.9"
},
{
"name":"entries across header lines",
"trusted":"10.0.0.0/8, 172.16.0.0/12",
"peer":"10.0.0.2",
"forwarded":[
"6.6.6.6",
"198.51.100.9"
],
"want":"198.51.100.9"
},
{
"name":"a malformed entry falls back to the peer",
"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",