Skip to content

fix(plugin-algolia): stop reading the Algolia key in the browser - #4965

Open
lihuelg wants to merge 2 commits into
plugins-drop-disable-proxyfrom
algolia-plugin-no-browser-key
Open

lihuelg wants to merge 2 commits into
plugins-drop-disable-proxyfrom
algolia-plugin-no-browser-key

Conversation

@lihuelg

@lihuelg lihuelg commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #4964, so it targets that branch. Retarget to main after #4964 merges.

Problem

The Algolia plugin reads algoliaKey in the browser and puts it in the webhook URL query string and the one-time sync request body. Anyone who can read the space's webhooks or plugin settings can read the key.

Change

  • The webhook URL no longer includes algoliaKey.
  • The one-time sync body sends only algoliaAppId (a public identifier).
  • Builder resolves the key from the space's plugin settings on the server.

Release order

Do not release this before the Builder algolia-sync change that resolves credentials from plugin settings is deployed. Without it, algolia-sync receives no key and the Algolia calls fail.

Not included

  • Webhooks that already exist still carry algoliaKey in their URL until the webhook is re-created. Re-saving it replaces the old one by URL path. There is no bulk migration here.
  • The algoliaKey setting is still declared and still saved with the plugin settings. It just isn't read in the browser any more.

Testing

Not verified: no run against a live space, and the plugin was not built or type-checked in this change.

Generated with Claude Code

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 75feb59

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor

cursor Bot commented Nov 27, 2026

Copy link
Copy Markdown

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant