Skip to content

Gremlin Server with a non-default channelizer keeps leaking engine error text after arcadedb.server.mode is switched to production at runtime #9749

Closed

Description

@robfrank

Summary

Follow-up of #9639. The fix for #9639 refuses to START the Gremlin Server in production mode with a channelizer that cannot conceal engine error text (anything other than the default WebSocketChannelizer, which is swapped for ConcealingWebSocketChannelizer). The check runs once, in GremlinServerPlugin.startService().

arcadedb.server.mode is however a runtime-changeable setting: ServerControlPlane.setServerSetting() (HTTP set server setting, gRPC, the MCP set_server_setting tool) stores production into the live configuration, and every other surface reads ArcadeDBServer.isProductionMode() per request, so it starts concealing immediately. ConcealingWebSocketChannelizer does the same per message.

A Gremlin Server started in development mode with WsAndHttpChannelizer, HttpChannelizer or UnifiedChannelizer keeps answering with Throwable.getMessage() (stored duplicated-key values included) after the mode is switched to production at runtime. Nothing warns.

Where

  • gremlin/src/main/java/com/arcadedb/server/gremlin/GremlinServerPlugin.java resolveChannelizer(...) - startup-only decision
  • server/src/main/java/com/arcadedb/server/ServerControlPlane.java setServerSetting(...) - accepts arcadedb.server.mode at runtime

Options

  1. Refuse a runtime switch to production while a non-concealing channelizer is active (needs a hook from the plugin to the control plane).
  2. Conceal the HTTP endpoint too (an outbound handler rewriting the FullHttpResponse that HttpHandlerUtil.sendError writes for 5xx), and install it for WsAndHttp/Http/Unified, so every shipped channelizer conceals per request like the default one. This would also lift the startup refusal from A Gremlin Server configured with any channelizer other than the default answers with the engine's error text in production mode #9639.
  3. Make arcadedb.server.mode startup-only.

Out of scope for #9639, which is about the startup path the issue reproduces.

Activity

  1. added this to the 26.11.1 milestone on Oct 11, 2026
  2. added
    severity:minor
    on Oct 11, 2026
  3. added
    server
    on Oct 11, 2026
  4. self-assigned this
    on Oct 11, 2026
  5. added
    in progress
    on Oct 11, 2026
  6. added a commit that references this issue on Oct 12, 2026
  7. added a commit that references this issue on Oct 21, 2026
  8. robfrank commented on Oct 22, 2026

    @robfrank
    CollaboratorAuthor

    Fixed by #9759. A server started in development mode with a Gremlin channelizer that cannot conceal engine error text (WsAndHttpChannelizer, HttpChannelizer, UnifiedChannelizer or a custom class) could be switched to arcadedb.server.mode=production at runtime, and it then reported production mode while its Gremlin port kept returning raw error messages. That switch is now refused while such a channelizer is running, on every runtime path (HTTP set server setting answers 400, gRPC SetServerSetting answers INVALID_ARGUMENT, and the MCP set_server_setting tool returns an error), and the message names the channelizer and the default one to use instead. A refused change is not stored, and the development-mode startup warning now says the switch will be refused.

    Still open: nothing, the fix is complete. Option 2 from this issue (concealing errors on the HTTP channelizers so they could run in production) was not taken, since the refusal is still needed for custom channelizers.


    ❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.

  9. removed
    in progress
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggremlinsecurityserverseverity:minor

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions