You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Whitelist for modules allowed to expose endpoints #3999
area: modulesIssues related to modules creation, configuration and registration.enhancementNew feature or requeststake: cloudIssues that are prioritized for Serverpod Cloud.
Currently, all modules may expose their endpoints by default. Sometimes, it is desirable to have more control over which modules are available to external users, depending on the needs of the project.
Proposal
Add a configuration option (such as a whitelist in a config file) to specify which modules should be allowed to expose their endpoints. Only modules listed in the whitelist would be available externally. This would provide a simple and flexible way to manage API exposure at the module level.
The modules should be configured in the generator.yaml file.
Use Case
For projects with several modules, teams may want only certain modules to be visible to users. For example, public modules can expose endpoints for general use, while internal modules remain hidden for project-specific operations.
Alternatives
N/A
Additional context
Adding a whitelist for modules will help keep APIs organized and make it easier to manage which modules are available to users. This approach is especially useful in larger projects where different modules have different roles. It supports best practices for managing API exposure.
area: modulesIssues related to modules creation, configuration and registration.enhancementNew feature or requeststake: cloudIssues that are prioritized for Serverpod Cloud.
Activity