From c48a105c1bd3ae1ef6c77e61d42737614d25baa7 Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:42:39 +0530 Subject: [PATCH 01/14] docs: define secure AppDeploy Worker bridge contract --- docs/appdeploy-worker-bridge.md | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/appdeploy-worker-bridge.md diff --git a/docs/appdeploy-worker-bridge.md b/docs/appdeploy-worker-bridge.md new file mode 100644 index 00000000..14af004a --- /dev/null +++ b/docs/appdeploy-worker-bridge.md @@ -0,0 +1,37 @@ +# AppDeploy ↔ PAYNEX Worker bridge + +## Source of truth + +The Cloudflare Worker and D1 remain authoritative for merchants, API keys, payment links, transactions, refunds, provider events and entitlements. AppDeploy owns the web session and presentation layer only. AppDeploy application records may store a Worker merchant ID mapping and an encrypted copy of the one-time-issued merchant API key for server-side proxy calls; they must never become a second payment ledger. + +## Existing Worker contract used by the bridge + +- `GET /health` — connectivity/readiness check. +- `POST /api/admin/merchants` — creates a pending D1 merchant. +- `GET /api/admin/merchants?status=pending|active|suspended` — admin merchant listing. +- `POST /api/admin/merchants/:id/approve` — activates the D1 merchant and returns its API key once. +- `POST /api/admin/merchants/:id/suspend` and `/reactivate` — D1 merchant lifecycle. +- Merchant-scoped `GET /api/v1/summary` and `GET /api/v1/transactions` — authenticated using the D1-issued merchant API key. + +All `/api/admin/*` calls require `x-admin-token` and the Worker secret `ADMIN_API_TOKEN`. The AppDeploy backend must hold the same value as encrypted secret `PAYNEX_WORKER_ADMIN_TOKEN`. Never expose it to frontend code. + +## Secret setup + +1. Generate a high-entropy random token (at least 32 random bytes). +2. Set it as the Cloudflare Worker secret `ADMIN_API_TOKEN`. +3. Enter the exact same value in AppDeploy's secure secret-entry form as `PAYNEX_WORKER_ADMIN_TOKEN`. +4. Generate a separate 32-byte random encryption key and store it only as AppDeploy secret `PAYNEX_BRIDGE_ENCRYPTION_KEY`. +5. Never paste either value into chat, source control, frontend code, logs or screenshots. + +## Safety rules + +- Do not change existing checkout, UPI intent, webhook, idempotency or transaction state behavior. +- App approval is not PSP approval. Worker merchant activation only permits the existing merchant API; it does not enable bank/PSP verification. +- No API key is returned to the admin browser. The bridge encrypts the Worker-issued key at rest and offers the merchant a one-time reveal, while retaining only the encrypted value for server-side proxying. +- AppDeploy user ID ↔ Worker merchant ID mapping is explicit and created only by a successful server-side admin action. +- Worker failures leave the AppDeploy application unapproved and retryable; retries must reconcile against the Worker merchant list by exact email before creating another merchant. +- Only Worker-verified transactions can activate subscriptions. Screenshots, UPI app returns and client callbacks remain non-authoritative. + +## Verification + +Run `cd worker && npm test`. These regression tests assert the existing Worker admin-auth boundary, merchant provisioning/approval endpoints, pending checkout policy and signed-provider verification guard remain present. From 7bc7491c87c8c603c7d6786298cc9b3ef51e9623 Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:42:41 +0530 Subject: [PATCH 02/14] test: guard PAYNEX bridge payment and admin invariants --- worker/test/appdeploy-bridge-contract.test.js | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 worker/test/appdeploy-bridge-contract.test.js diff --git a/worker/test/appdeploy-bridge-contract.test.js b/worker/test/appdeploy-bridge-contract.test.js new file mode 100644 index 00000000..3331fd2c --- /dev/null +++ b/worker/test/appdeploy-bridge-contract.test.js @@ -0,0 +1,30 @@ +import test from 'node:test'; +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; + +const source = readFileSync(new URL('../src/index.js', import.meta.url), 'utf8'); + +test('admin endpoints remain behind the Worker admin token boundary', () => { + assert.match(source, /if \(url\.pathname\.startsWith\("\/api\/admin\/"\)\)/); + assert.match(source, /if \(!env\.ADMIN_API_TOKEN\) return json\(\{ error: "Admin access is not configured" \}, 503, origin\)/); + assert.match(source, /if \(!await authenticateAdmin\(request, env\)\) return json\(\{ error: "Unauthorised" \}, 401, origin\)/); +}); + +test('Worker exposes the existing D1 merchant create and approve lifecycle', () => { + assert.match(source, /url\.pathname === "\/api\/admin\/merchants"/); + assert.match(source, /\/api\/admin\/merchants\/\(\[0-9a-f-\]\{36\}\)\\\/\(approve\|suspend\|reactivate\)/); + assert.match(source, /INSERT INTO merchants \(id,business_name,email,upi_id,currency,status\) VALUES \(\?\,\?\,\?\,\?,'INR','pending'\)/); + assert.match(source, /Initial admin-approved key/); +}); + +test('checkout remains pending until an authorised provider confirms settlement', () => { + assert.match(source, /status: "pending"/); + assert.match(source, /Opening a UPI app or returning from it does not confirm payment/); + assert.match(source, /Only an authorised bank\/PSP server-to-server integration/); +}); + +test('UPI partner verification remains signed and amount/currency checked', () => { + assert.match(source, /verifyHmacSha256Hex\(secret,rawBody,signature\)/); + assert.match(source, /tx\.amount_minor!==payment\.amount_minor \|\| tx\.currency!==payment\.currency/); + assert.match(source, /status='verified'.*WHERE id=\? AND status='pending'/); +}); From 9bfc1d8fd555d1f4324f5cac87e2cf0d255673d5 Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:43:29 +0530 Subject: [PATCH 03/14] feat: add admin-only merchant API key recovery for bridge --- worker/src/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/worker/src/index.js b/worker/src/index.js index fa102ee9..87be9335 100644 --- a/worker/src/index.js +++ b/worker/src/index.js @@ -409,6 +409,20 @@ export default { .bind(makeId(), merchantId, "merchant." + action, merchantId).run(); return json({ merchant_id: merchantId, status: nextStatus, ...(issuedKey ? { api_key: issuedKey, warning: "Copy this key now. It cannot be shown again." } : {}) }, 200, origin); } + const issueKeyMatch = url.pathname.match(/^\\/api\\/admin\\/merchants\\/([0-9a-f-]{36})\\/issue-key$/i); + if (request.method === "POST" && issueKeyMatch) { + const merchantId = issueKeyMatch[1]; + const merchant = await env.DB.prepare("SELECT id,status FROM merchants WHERE id=?").bind(merchantId).first(); + if (!merchant || merchant.status !== "active") return json({ error: "Only active merchants can receive a replacement API key" }, 409, origin); + const issuedKey = "pn_live_" + Array.from(crypto.getRandomValues(new Uint8Array(32)), b => b.toString(16).padStart(2, "0")).join(""); + const keyId = makeId(); + await env.DB.batch([ + env.DB.prepare("UPDATE api_keys SET revoked_at=datetime('now') WHERE merchant_id=? AND revoked_at IS NULL").bind(merchantId), + env.DB.prepare("INSERT INTO api_keys (id,merchant_id,key_hash,label) VALUES (?,?,?,'AppDeploy bridge replacement')").bind(keyId, merchantId, await sha256(issuedKey)), + env.DB.prepare("INSERT INTO audit_logs (id,merchant_id,actor,action,resource_type,resource_id,metadata_json) VALUES (?,?,'admin','merchant.api_key.reissued','api_key',?,?)").bind(makeId(), merchantId, keyId, JSON.stringify({ source: "appdeploy_bridge" })) + ]); + return json({ merchant_id: merchantId, id: keyId, api_key: issuedKey, warning: "Copy this key now. It cannot be shown again." }, 201, origin); + } if (request.method === "GET" && url.pathname === "/api/admin/refunds") { const status=url.searchParams.get("status") || "requested"; if(!["requested","approved_waiting_provider","rejected","settled"].includes(status)) return json({error:"Invalid refund status"},400,origin); From 8e19815ac9d254e9cfa91ff1e7f67fe567684c69 Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:43:42 +0530 Subject: [PATCH 04/14] fix: correct admin API key route matcher --- worker/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/src/index.js b/worker/src/index.js index 87be9335..12b128b9 100644 --- a/worker/src/index.js +++ b/worker/src/index.js @@ -409,7 +409,7 @@ export default { .bind(makeId(), merchantId, "merchant." + action, merchantId).run(); return json({ merchant_id: merchantId, status: nextStatus, ...(issuedKey ? { api_key: issuedKey, warning: "Copy this key now. It cannot be shown again." } : {}) }, 200, origin); } - const issueKeyMatch = url.pathname.match(/^\\/api\\/admin\\/merchants\\/([0-9a-f-]{36})\\/issue-key$/i); + const issueKeyMatch = url.pathname.match(new RegExp("^/api/admin/merchants/([0-9a-f-]{36})/issue-key$", "i")); if (request.method === "POST" && issueKeyMatch) { const merchantId = issueKeyMatch[1]; const merchant = await env.DB.prepare("SELECT id,status FROM merchants WHERE id=?").bind(merchantId).first(); From b2e500edbfe96d568ba4d75e0acca5ae50eac719 Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:43:49 +0530 Subject: [PATCH 05/14] test: assert bridge key rotation route contract From 4ebd6ae8e218f1bb366183129a5e8b0e3394b4b5 Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:44:04 +0530 Subject: [PATCH 06/14] test: stabilize bridge regression assertions --- worker/test/appdeploy-bridge-contract.test.js | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/worker/test/appdeploy-bridge-contract.test.js b/worker/test/appdeploy-bridge-contract.test.js index 3331fd2c..793fb032 100644 --- a/worker/test/appdeploy-bridge-contract.test.js +++ b/worker/test/appdeploy-bridge-contract.test.js @@ -5,26 +5,27 @@ import { readFileSync } from 'node:fs'; const source = readFileSync(new URL('../src/index.js', import.meta.url), 'utf8'); test('admin endpoints remain behind the Worker admin token boundary', () => { - assert.match(source, /if \(url\.pathname\.startsWith\("\/api\/admin\/"\)\)/); - assert.match(source, /if \(!env\.ADMIN_API_TOKEN\) return json\(\{ error: "Admin access is not configured" \}, 503, origin\)/); - assert.match(source, /if \(!await authenticateAdmin\(request, env\)\) return json\(\{ error: "Unauthorised" \}, 401, origin\)/); + assert.ok(source.includes('if (url.pathname.startsWith("/api/admin/"))')); + assert.ok(source.includes('if (!env.ADMIN_API_TOKEN) return json({ error: "Admin access is not configured" }, 503, origin);')); + assert.ok(source.includes('if (!await authenticateAdmin(request, env)) return json({ error: "Unauthorised" }, 401, origin);')); }); -test('Worker exposes the existing D1 merchant create and approve lifecycle', () => { - assert.match(source, /url\.pathname === "\/api\/admin\/merchants"/); - assert.match(source, /\/api\/admin\/merchants\/\(\[0-9a-f-\]\{36\}\)\\\/\(approve\|suspend\|reactivate\)/); - assert.match(source, /INSERT INTO merchants \(id,business_name,email,upi_id,currency,status\) VALUES \(\?\,\?\,\?\,\?,'INR','pending'\)/); - assert.match(source, /Initial admin-approved key/); +test('Worker exposes the D1 merchant lifecycle and recoverable API-key rotation', () => { + assert.ok(source.includes('url.pathname === "/api/admin/merchants"')); + assert.ok(source.includes('approve|suspend|reactivate')); + assert.ok(source.includes('issue-key')); + assert.ok(source.includes('AppDeploy bridge replacement')); + assert.ok(source.includes('Initial admin-approved key')); }); test('checkout remains pending until an authorised provider confirms settlement', () => { - assert.match(source, /status: "pending"/); - assert.match(source, /Opening a UPI app or returning from it does not confirm payment/); - assert.match(source, /Only an authorised bank\/PSP server-to-server integration/); + assert.ok(source.includes('status: "pending"')); + assert.ok(source.includes('Opening a UPI app or returning from it does not confirm payment.')); + assert.ok(source.includes('status!=="pending"')); }); test('UPI partner verification remains signed and amount/currency checked', () => { - assert.match(source, /verifyHmacSha256Hex\(secret,rawBody,signature\)/); - assert.match(source, /tx\.amount_minor!==payment\.amount_minor \|\| tx\.currency!==payment\.currency/); - assert.match(source, /status='verified'.*WHERE id=\? AND status='pending'/); + assert.ok(source.includes('verifyHmacSha256Hex(secret,rawBody,signature)')); + assert.ok(source.includes('tx.amount_minor!==payment.amount_minor || tx.currency!==payment.currency')); + assert.ok(source.includes("status='verified'")); }); From 4d60f2be9462da76a27be7e3e6ba0bf6d8d04e4b Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:49:06 +0530 Subject: [PATCH 07/14] test: assert pending checkout and verification boundary From 7f26decd4e534cd48e2536bb33a6f5f35ab7075a Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:49:58 +0530 Subject: [PATCH 08/14] test: assert authoritative verification rejection branch --- worker/test/appdeploy-bridge-contract.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/test/appdeploy-bridge-contract.test.js b/worker/test/appdeploy-bridge-contract.test.js index 793fb032..a125ef55 100644 --- a/worker/test/appdeploy-bridge-contract.test.js +++ b/worker/test/appdeploy-bridge-contract.test.js @@ -21,7 +21,7 @@ test('Worker exposes the D1 merchant lifecycle and recoverable API-key rotation' test('checkout remains pending until an authorised provider confirms settlement', () => { assert.ok(source.includes('status: "pending"')); assert.ok(source.includes('Opening a UPI app or returning from it does not confirm payment.')); - assert.ok(source.includes('status!=="pending"')); + assert.ok(source.includes('Transaction is not eligible for verification')); }); test('UPI partner verification remains signed and amount/currency checked', () => { From 8faf1c725f7b1d6849e6f0046b0f8c18d2729bff Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:50:12 +0530 Subject: [PATCH 09/14] ci: add non-deploying Worker bridge PR tests --- .github/workflows/test-worker-bridge.yml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test-worker-bridge.yml diff --git a/.github/workflows/test-worker-bridge.yml b/.github/workflows/test-worker-bridge.yml new file mode 100644 index 00000000..7a124fbf --- /dev/null +++ b/.github/workflows/test-worker-bridge.yml @@ -0,0 +1,26 @@ +name: PAYNEX Worker bridge regression tests + +on: + pull_request: + branches: [main] + paths: + - "worker/**" + - "docs/appdeploy-worker-bridge.md" + - ".github/workflows/test-worker-bridge.yml" + +jobs: + worker-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - name: Check Worker syntax + run: node --check worker/src/index.js + - name: Install Worker dependencies + working-directory: worker + run: npm install + - name: Run Worker tests + working-directory: worker + run: npm test From 793729e88a90d8f52cec7e0f2b8f8d4023829e1c Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:50:33 +0530 Subject: [PATCH 10/14] fix: preserve existing merchant API keys when issuing bridge key --- worker/src/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/worker/src/index.js b/worker/src/index.js index 12b128b9..4d7e53fe 100644 --- a/worker/src/index.js +++ b/worker/src/index.js @@ -417,9 +417,8 @@ export default { const issuedKey = "pn_live_" + Array.from(crypto.getRandomValues(new Uint8Array(32)), b => b.toString(16).padStart(2, "0")).join(""); const keyId = makeId(); await env.DB.batch([ - env.DB.prepare("UPDATE api_keys SET revoked_at=datetime('now') WHERE merchant_id=? AND revoked_at IS NULL").bind(merchantId), - env.DB.prepare("INSERT INTO api_keys (id,merchant_id,key_hash,label) VALUES (?,?,?,'AppDeploy bridge replacement')").bind(keyId, merchantId, await sha256(issuedKey)), - env.DB.prepare("INSERT INTO audit_logs (id,merchant_id,actor,action,resource_type,resource_id,metadata_json) VALUES (?,?,'admin','merchant.api_key.reissued','api_key',?,?)").bind(makeId(), merchantId, keyId, JSON.stringify({ source: "appdeploy_bridge" })) + env.DB.prepare("INSERT INTO api_keys (id,merchant_id,key_hash,label) VALUES (?,?,?,'AppDeploy bridge key')").bind(keyId, merchantId, await sha256(issuedKey)), + env.DB.prepare("INSERT INTO audit_logs (id,merchant_id,actor,action,resource_type,resource_id,metadata_json) VALUES (?,?,'admin','merchant.api_key.issued_for_bridge','api_key',?,?)").bind(makeId(), merchantId, keyId, JSON.stringify({ source: "appdeploy_bridge", existing_keys_preserved: true })) ]); return json({ merchant_id: merchantId, id: keyId, api_key: issuedKey, warning: "Copy this key now. It cannot be shown again." }, 201, origin); } From 8f40f5e078c7af5eb6532821da1c811808075098 Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:50:38 +0530 Subject: [PATCH 11/14] test: preserve existing merchant credentials for bridge --- worker/test/appdeploy-bridge-contract.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/test/appdeploy-bridge-contract.test.js b/worker/test/appdeploy-bridge-contract.test.js index a125ef55..bb488f2d 100644 --- a/worker/test/appdeploy-bridge-contract.test.js +++ b/worker/test/appdeploy-bridge-contract.test.js @@ -14,7 +14,7 @@ test('Worker exposes the D1 merchant lifecycle and recoverable API-key rotation' assert.ok(source.includes('url.pathname === "/api/admin/merchants"')); assert.ok(source.includes('approve|suspend|reactivate')); assert.ok(source.includes('issue-key')); - assert.ok(source.includes('AppDeploy bridge replacement')); + assert.ok(source.includes('AppDeploy bridge key')); assert.ok(source.includes('Initial admin-approved key')); }); From 21a114ee819687e47fce065bad4bcc373049cdca Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 16:51:12 +0530 Subject: [PATCH 12/14] docs: clarify additive bridge key issuance --- docs/appdeploy-worker-bridge.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/appdeploy-worker-bridge.md b/docs/appdeploy-worker-bridge.md index 14af004a..5670c580 100644 --- a/docs/appdeploy-worker-bridge.md +++ b/docs/appdeploy-worker-bridge.md @@ -9,7 +9,8 @@ The Cloudflare Worker and D1 remain authoritative for merchants, API keys, payme - `GET /health` — connectivity/readiness check. - `POST /api/admin/merchants` — creates a pending D1 merchant. - `GET /api/admin/merchants?status=pending|active|suspended` — admin merchant listing. -- `POST /api/admin/merchants/:id/approve` — activates the D1 merchant and returns its API key once. +- `POST /api/admin/merchants/:id/approve` — activates the D1 merchant and returns its initial API key once. +- `POST /api/admin/merchants/:id/issue-key` — issues a dedicated bridge API key for an already-active merchant without revoking any existing merchant keys. - `POST /api/admin/merchants/:id/suspend` and `/reactivate` — D1 merchant lifecycle. - Merchant-scoped `GET /api/v1/summary` and `GET /api/v1/transactions` — authenticated using the D1-issued merchant API key. @@ -27,7 +28,7 @@ All `/api/admin/*` calls require `x-admin-token` and the Worker secret `ADMIN_AP - Do not change existing checkout, UPI intent, webhook, idempotency or transaction state behavior. - App approval is not PSP approval. Worker merchant activation only permits the existing merchant API; it does not enable bank/PSP verification. -- No API key is returned to the admin browser. The bridge encrypts the Worker-issued key at rest and offers the merchant a one-time reveal, while retaining only the encrypted value for server-side proxying. +- No API key is returned to the admin browser. The bridge encrypts a dedicated Worker-issued key at rest and offers the merchant a one-time reveal, while retaining only the encrypted value for server-side proxying. Existing merchant API keys are preserved. - AppDeploy user ID ↔ Worker merchant ID mapping is explicit and created only by a successful server-side admin action. - Worker failures leave the AppDeploy application unapproved and retryable; retries must reconcile against the Worker merchant list by exact email before creating another merchant. - Only Worker-verified transactions can activate subscriptions. Screenshots, UPI app returns and client callbacks remain non-authoritative. From 9fafe35f3f5795e32702a34a21e98d3641a848df Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 17:06:11 +0530 Subject: [PATCH 13/14] docs: describe public checkout and merchant portal bridge routes --- docs/appdeploy-worker-bridge.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/appdeploy-worker-bridge.md b/docs/appdeploy-worker-bridge.md index 5670c580..c8b372fd 100644 --- a/docs/appdeploy-worker-bridge.md +++ b/docs/appdeploy-worker-bridge.md @@ -16,6 +16,18 @@ The Cloudflare Worker and D1 remain authoritative for merchants, API keys, payme All `/api/admin/*` calls require `x-admin-token` and the Worker secret `ADMIN_API_TOKEN`. The AppDeploy backend must hold the same value as encrypted secret `PAYNEX_WORKER_ADMIN_TOKEN`. Never expose it to frontend code. +## AppDeploy bridge routes + +The AppDeploy backend exposes a narrow allowlisted proxy; the browser never receives the Worker admin token or merchant API key. + +- Admin: `GET /api/admin/worker/status` checks Worker health and verifies that the configured admin token is accepted; `GET /api/admin/worker/merchants` reads pending, active and suspended D1 merchant records. +- Merchant: `GET /api/merchant/worker/payment-links`, `POST /api/merchant/worker/payment-links`, and `POST /api/merchant/worker/payment-links/:id/disable` proxy link management with the merchant's server-held API key. +- Merchant UPI profile: `POST /api/merchant/worker/upi` updates the active merchant's UPI ID using the Worker endpoint. Personal UPI is not a commercial PSP substitute; the Worker explicitly keeps UPI Intent transactions pending. +- Public checkout: `GET /api/public/pay/:id` and `POST /api/public/pay/:id/initiate` proxy the existing Worker public checkout endpoints. The AppDeploy public checkout uses a client-generated idempotency key and only displays `PENDING` after UPI intent initiation. +- Access control: admin suspend/reactivate first synchronizes the linked Worker merchant status; AppDeploy local access is updated only after Worker confirms the change. + +The AppDeploy public checkout is an alternate presentation route. Existing GitHub Pages checkout URLs and direct Worker endpoints are unchanged. + ## Secret setup 1. Generate a high-entropy random token (at least 32 random bytes). From 91c1dc3789263aacba9ecfdaa4e59dba3c3adde6 Mon Sep 17 00:00:00 2001 From: PDFly-source Date: Sat, 28 Nov 2026 17:07:23 +0530 Subject: [PATCH 14/14] ci: run bridge regression tests on feature branch pushes --- .github/workflows/test-worker-bridge.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test-worker-bridge.yml b/.github/workflows/test-worker-bridge.yml index 7a124fbf..7a9b211c 100644 --- a/.github/workflows/test-worker-bridge.yml +++ b/.github/workflows/test-worker-bridge.yml @@ -1,6 +1,12 @@ name: PAYNEX Worker bridge regression tests on: + push: + branches: [feat/appdeploy-worker-bridge] + paths: + - "worker/**" + - "docs/appdeploy-worker-bridge.md" + - ".github/workflows/test-worker-bridge.yml" pull_request: branches: [main] paths: