Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: certain REST API endpoints are still accessible when anonymous access is disabled #5312

Open
wvandeun opened this issue Dec 23, 2024 · 0 comments
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected

Comments

@wvandeun
Copy link
Contributor

Component

API Server / GraphQL

Infrahub version

1.0.10, 1.1.0b2

Current Behavior

When you disable anonymous access using the INFRAHUB_ALLOW_ANONYMOUS_ACCESS environment variable, then certain REST API endpoints are still accessible when you are not authenticated (the list is not meant to be exhaustive):
/api/schema
/api/info
/api/menu
/api/docs

Expected Behavior

The above mentioned REST API endpoints should not be accessible when anonymous access is disabled and the user is not authenticated.

Steps to Reproduce

  • start infrahub instance INFRAHUB_ALLOW_ANONYMOUS_ACCESS=false inv dev.start
  • open the REST API endpoint http://localhost:8000/api/schema

Additional Information

No response

@wvandeun wvandeun added type/bug Something isn't working as expected group/backend Issue related to the backend (API Server, Git Agent) labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

1 participant