Skip to content

Add public health check endpoint #2583

Open

Description

@mehradn7

Hi !
It would be great if SSP exposed a public endpoint returning HTTP 200 so that external systems can make sure the app is up and running. For example, in a cloud context, when deploying SSP in Azure App Service, we need to provide such a health check endpoint (see https://learn.microsoft.com/en-us/azure/app-service/monitor-instances-health-check?tabs=dotnet).

A similar feature request was created back in 2015 (#216), however the answer to that (the sanitycheck module) was merged into the admin module, which requires authentication, so unfortunately it won't fulfill the initial purpose as health check systems expect HTTP 20x responses.

Thanks!

Activity

  1. tvdijen commented on Jan 8, 2026

    @tvdijen
    Member

    Hi @mehradn7 !

    Perhaps you can use https://github.com/tvdijen/simplesamlphp-module-monitor
    I must admit the module may have some sharp edges and it was designed a bit for my own purposes, but at least it does a bit more than just sending back a HTTP/200 and tests if, for example, ldap-connections are healty.

  2. tvdijen commented on Jan 8, 2026

    @tvdijen
    Member

    It might be interesting to add a health-endpoint anyway that uses a hook/event.. If then the monitor-module is installed it can output that, but if no module is installed it can just return HTTP/200 OK

  3. mehradn7 commented on Jan 19, 2026

    @mehradn7
    Author

    Hi @tvdijen, thanks for the answer!
    I just gave the 'monitor' module a try, it indeed does several verifications as you described.

    It would indeed be great if we could have an endpoint just returning HTTP 200 (or more if configured to do so). Do you think this could become an acceptable feature request?
    Thanks!

  4. tvdijen commented on Jan 19, 2026

    @tvdijen
    Member

    Absolutely! Let's keep this issue open and I'll create the endpoint when I have some time!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions