sc-site-sync/test/compatVectors.json
2026-10-19 01:25:16 -05:00

85 lines
4 KiB
JSON

{
"comment": "Compatibility vectors recorded (by the 2026-10-15 consolidation's genVectors.js) from the plugin code BEFORE its at-rest/peer code was reorganized, with a FAKE session secret. Never regenerate: they prove values sealed or signed by earlier versions still work.",
"sessionSecret": "pluginCommon-FAKE-test-vector-session-secret-v1",
"keys": {
"siteSyncPeerKek": {
"salt": "site-sync:peer-secrets:aes-gcm-key:v1",
"info": "site-sync:peer-secrets:aes-gcm-key:v1",
"bytes": 32,
"keyHex": "2235e85431fc6b45766a8b7df3aa2d498b3de3fac3edba13770ae854d07283f1"
}
},
"sealed": {
"siteSyncPeerSecret": {
"plaintextHex": "ffeeddccbbaa99887766554433221100ffeeddccbbaa99887766554433221100",
"sealed": {
"ciphertext": "c30d83e6bcc55ef2accbcda6692b08a419b4970cbf55e0cf3dc204d2d9bd8ffb",
"iv": "0981a8ee93756a26d3fe2da6",
"tag": "dd8ee153b98ef8014ab3afa0c110cb0f"
}
}
},
"hmac": {
"secretHex": "a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5",
"siteSync": {
"requests": [
{
"timestamp": "1760000000000",
"nonce": "0123456789abcdef0123456789abcdef",
"method": "post",
"path": "/dev-deploy/api/ingest",
"targetHost": "Receiver.Test:443",
"body": "{\"ops\":[{\"op_id\":\"x\",\"name\":\"caf\u00e9\"}]}",
"normalizedHost": "receiver.test",
"canonical": "1760000000000\n0123456789abcdef0123456789abcdef\nPOST\n/dev-deploy/api/ingest\nreceiver.test\n19561c759eb8fe34a7488d923c6efeafe391c851142520a605f66112e90d0014",
"signature": "0e8130aa79c634edcd2f73d899d7ade75f90e202ab1d74e752de4d3762e19f5d"
},
{
"timestamp": "1760000000001",
"nonce": "fedcba9876543210fedcba9876543210",
"method": "GET",
"path": "/site-sync/api/state?x=1",
"targetHost": " t1.Example.COM:3001 ",
"body": "",
"normalizedHost": "t1.example.com:3001",
"canonical": "1760000000001\nfedcba9876543210fedcba9876543210\nGET\n/site-sync/api/state?x=1\nt1.example.com:3001\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"signature": "e501b8584736fdc26e4e46b55d4135c7cc9e8e8c5f9a628b4f39547152f48815"
},
{
"timestamp": "1760000000002",
"nonce": "00000000000000000000000000000000",
"method": "GET",
"path": "/dev-deploy/api/health",
"targetHost": "host.example:80",
"body": "",
"normalizedHost": "host.example",
"canonical": "1760000000002\n00000000000000000000000000000000\nGET\n/dev-deploy/api/health\nhost.example\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"signature": "41b910cad5748d358f3010c8cb432064e82a062f0836ef05bf3f2cf58782e52d"
}
],
"responses": [
{
"nonce": "0123456789abcdef0123456789abcdef",
"status": 200,
"bodyHex": "7b22656e765f6964223a2265222c226f6b223a747275657d",
"canonical": "resp\n0123456789abcdef0123456789abcdef\n200\nfbe91e6256eb1cb9578f8aeef012d376965f058d86992c0b46537ac36ff9cac5",
"signature": "3ff12daa9570064b5a5cca116ece8ed68945d486c38dee22da7d51dc9c533400"
},
{
"nonce": "fedcba9876543210fedcba9876543210",
"status": 401,
"bodyHex": "",
"canonical": "resp\nfedcba9876543210fedcba9876543210\n401\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"signature": "5bb09193b258f65a509b093b3dc7223896e71d64a8083630785fd0247fd70554"
},
{
"nonce": "00000000000000000000000000000000",
"status": 200,
"bodyHex": "00fffe807fc328",
"canonical": "resp\n00000000000000000000000000000000\n200\n1296c9aa23d20a7a3ee8b87e556a404ea4b5092156257835f784b831d75eb25f",
"signature": "075978d453c1a4d94fb9c109676eb1c2f758037ba1b418c1f1bbc3258cb40910"
}
]
}
}
}