Skip to content

Support Multitenant Services Without Requiring MTX Sidecar Setup #218

@vlovini

Description

@vlovini

Is your feature request related to a problem? Please describe.

Yes. The current architecture of the @cap-js/attachments plug-in requires a CAP mtx/sidecar setup to manage tenant subscription and model provisioning in multitenant scenarios. However, this requirement is not technically necessary for Node.js-based services, as the runtime already aligns with what the @sap/cds-mtxs library expects.


Describe the solution you'd like

We’d like the plug-in to support multitenant services without requiring an MTX sidecar. Specifically:

  • Allow the plug-in to register its handlers in the main service runtime, not just in the sidecar.
  • Introduce a configuration flag (e.g., in .cdsrc.json) to enable this compatibility explicitly.

This would simplify the architecture and make the plug-in more flexible and compatible with modern deployment strategies.


Describe alternatives you've considered

  • Using the MTX sidecar as required today, but this introduces complexity
  • Attempting to patch the plug-in to bypass the sidecar check (e.g.,
    if (profile === 'mtx-sidecar') {
    ), but this is not maintainable long-term.

Additional context


Have you already checked existing issues before creating a feature request?

Yes.


Customer Info

Company: SAP

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions