Introduction
This article covers the available approaches for accessing enterprise file share storage, such as a Server Message Block (SMB) file share, from a Mendix application deployed on Private Cloud in Hybrid connected mode. Direct Persistent Volume Claim (PVC) mounting is not supported in Mendix Private Cloud currently.
Environment
Applications hosted in Mendix on Kubernetes
Instructions/Procedure
To access enterprise file share storage from a Private Cloud application, follow one of these approaches:
-
Use community-supported Marketplace module:
FileShareConnectorNote: This module is community-supported and is not maintained by Mendix Support. It does not natively enforce the use of Service Accounts (SA), which presents a security concern in environments that require controlled credential management.
Implement a custom Java action that enforces SA usage. Refer to the community forum approach: Getting file from SMB share
Create a REST API wrapper
Mount SMB share in cluster namespace
Use SA from secret
Expose REST API to read or write to the files
Call REST API from within the Mendix application to perform required tasks
Outcome
Upon completion of one of these approaches, the Private Cloud application is able to access enterprise file share storage without directly mounting a PVC.
Internal information related
269593
Additional information
Marketplace Module: FileShareConnector
0 Comments