Skip to content

Whitelist for modules allowed to expose endpoints #3999

Open

Description

@SandPod

Problem to Solve

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.

How experienced are you with this library?

No response

Are you interested in working on a PR for this?

  • I want to work on this

Activity

  1. added
    enhancement
    on Sep 22, 2025
  2. added
    area: endpoints
    area: configuration
    area: modules
    on Sep 25, 2025
  3. moved this from Inbox 📫 to Backlog 🗂️ in Serverpod Frameworkson Sep 25, 2025
  4. moved this from Backlog 🗂️ to Planned 🔭 in Serverpod Frameworkson Sep 30, 2025
  5. added
    stake: cloud
    and removed
    area: endpoints
    area: configuration
    on Sep 30, 2025
  6. moved this from Planned 🔭 to Backlog 🗂️ in Serverpod Frameworkson Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: modulesenhancementstake: cloud

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions