Skip to content

Root path publicly accessible #992

Description

@frodoagu

Hi team 👋

We've noticed that when deploying Policy Bot, the root endpoint (/) is publicly accessible and returns an HTML page with a some information that we don't want to expose.

While the root path currently does not expose sensitive data, this may:

  • Reveal implementation details about the CI/CD pipeline to external parties (e.g., the use of Policy Bot).
  • Provide an unauthenticated endpoint that could be expanded in future versions, increasing risk.
  • Contradict best practices around minimizing exposed surface area in production systems.

Suggested improvement:

  • Require authentication for the root path
  • Provide a configuration flag to disable or restrict public access to the / endpoint.

Let me know if you'd be open to a PR or if there are existing workarounds. Thanks for the great tool!

— Fede

Activity

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