From ddeff8d347c0fcbef910618eb627dc01e6780f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Barfleur?= <39409397+kevinbarfleur@users.noreply.github.com> Date: Thu, 12 Mar 2026 14:36:04 +0100 Subject: [PATCH 1/6] fix(WW-4788): use privateApiKey (service_role) for OpenAPI spec fetch Supabase is blocking access to the /rest/v1/ OpenAPI spec endpoint with anon keys starting April 8, 2026. Switch fetchDoc() to use the privateApiKey (service_role) which remains authorized. --- src/wwPlugin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wwPlugin.js b/src/wwPlugin.js index 61f86d3..b192df2 100644 --- a/src/wwPlugin.js +++ b/src/wwPlugin.js @@ -370,19 +370,19 @@ export default { baseProjectRef: config.baseProjectRef, branch: config.branch, branchSlug: config.branchSlug, - hasApiKey: !!config.publicApiKey, - apiKeyPreview: maskForLog(config.publicApiKey), + hasPrivateApiKey: !!config.privateApiKey, + apiKeyPreview: maskForLog(config.privateApiKey), }; - if (!runtimeProjectUrl || !config.publicApiKey) { + if (!runtimeProjectUrl || !config.privateApiKey) { console.warn('[Supabase plugin] fetchDoc skipped', { - reason: 'Missing projectUrl or publicApiKey', + reason: 'Missing projectUrl or privateApiKey', ...logContext, }); return; } try { - const doc = await getDoc(runtimeProjectUrl, config.publicApiKey, { + const doc = await getDoc(runtimeProjectUrl, config.privateApiKey, { branchSlug: config.branchSlug, }); this.doc = doc; From d2b7f345dc02dfec0ca70b6179b1c1f31feeb378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Barfleur?= <39409397+kevinbarfleur@users.noreply.github.com> Date: Thu, 12 Mar 2026 16:46:55 +0100 Subject: [PATCH 2/6] Add required --- src/components/Configuration/SettingsEdit.vue | 156 +++++++++++++----- .../Configuration/SettingsEditMultiEnv.vue | 4 +- 2 files changed, 117 insertions(+), 43 deletions(-) diff --git a/src/components/Configuration/SettingsEdit.vue b/src/components/Configuration/SettingsEdit.vue index a8b55d5..79fbf75 100644 --- a/src/components/Configuration/SettingsEdit.vue +++ b/src/components/Configuration/SettingsEdit.vue @@ -1,59 +1,110 @@