Skip to content

Panic at Startup if All Providers are Disabled #54

@root-ali

Description

@root-ali

Description:

The application should panic during startup if every provider is disabled. This will prevent silent misconfiguration and ensure that at least one provider is enabled for proper system operations.

Acceptance Criteria:

  • During project startup, check if all providers are disabled (either by configuration or code).
  • Immediately panic with a clear error message if this condition is met: e.g., "Startup failed: all providers are disabled. Please enable at least one provider."
  • Add test cases to confirm this behavior.
  • Document this in the startup and configuration documentation.

Context / Motivation:
Silent startup when no providers are enabled can lead to confusion and undetected issues in deployment pipelines.

Additional Notes:

  • "Providers" refers to all implementations that the project supports, such as storage providers, authentication providers, etc.
  • Double-check if disabling all providers is already prevented in current config.
  • If yes, ensure a panic occurs as early as possible.

Feel free to rename "providers" if a more specific term is used within the codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions