Accept 16-character subscription secrets for gateway presence
All checks were successful
Build and Deploy Gateway / build-and-push (push) Successful in 12s
Build and Deploy Gateway / deploy (push) Successful in 1s

This commit is contained in:
2026-07-11 15:18:22 +03:00
parent 0ab912c64c
commit a58fb26e4f
2 changed files with 8 additions and 1 deletions

View File

@@ -52,6 +52,13 @@ test('Gateway presence is authenticated by the shared subscription secret', asyn
nonce,
}).available, false);
assert.equal(buildGatewayPresence({
appMode: 'gateway',
subscriptionUrl: 'https://subscription.example/0123456789abcdef',
gatewayId: 'gateway-1',
nonce,
}).available, true);
const sharedPublicValue = 'https://public.example/sing-box-configuration-v1';
const firstUrl = `${subscriptionUrl}?redirect=${encodeURIComponent(sharedPublicValue)}`;
const secondUrl = `https://subscription.example/fedcba9876543210fedcba9876543210?redirect=${encodeURIComponent(sharedPublicValue)}`;