Skip to content

fix(gateway): prevent default built-in plugins from being disabled by explicit allowlists#737

Merged
su8su merged 1 commit intomainfrom
fix_build_in_plugin
Apr 1, 2026
Merged

fix(gateway): prevent default built-in plugins from being disabled by explicit allowlists#737
su8su merged 1 commit intomainfrom
fix_build_in_plugin

Conversation

@su8su
Copy link
Copy Markdown
Contributor

@su8su su8su commented Apr 1, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 753dfc892a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +1631 to +1633
const externalPluginIds = allowArr2.filter(
(pluginId) => !BUILTIN_CHANNEL_IDS.has(pluginId) && !bundled.all.has(pluginId),
);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep user-allowlisted bundled plugins in allowlist

Filtering plugins.allow through !bundled.all.has(pluginId) removes every bundled plugin ID from externalPluginIds, and only enabledByDefault IDs are re-added later, so bundled-but-opt-in plugins (for example, any bundled plugin a user intentionally allowlisted) are silently dropped on sanitize. In configs that also need a non-empty allowlist (e.g., because of third-party plugins), this makes those explicitly enabled bundled plugins impossible to keep enabled across restarts.

Useful? React with 👍 / 👎.

@su8su su8su merged commit ca92d7f into main Apr 1, 2026
6 checks passed
@su8su su8su deleted the fix_build_in_plugin branch April 1, 2026 09:33
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