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
Is your feature request related to a problem? Please describe.
Yes. The current architecture of the
@cap-js/attachmentsplug-in requires a CAPmtx/sidecarsetup 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-mtxslibrary expects.Describe the solution you'd like
We’d like the plug-in to support multitenant services without requiring an MTX sidecar. Specifically:
.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
attachments/lib/mtx/server.js
Line 222 in 4a1ec2d
Additional context
[cds-mtxs] Support Batch Multi-Tenant Operations in CAP MTX Endpoints.https://pages.github.tools.sap/deploy-with-confidence/solar-system/how-to-guides/application-development/development/nodejs_cap#cds-database-setup=multitenancy--using-euporie-for-onboarding-offboarding-and-upgrading-tenants-databases
Have you already checked existing issues before creating a feature request?
Yes.
Customer Info
Company: SAP