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

Adds some structural support for internal urls, adds tokenless health… #30

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

StrongestNumber9
Copy link

…check endpoint support

The internal endpoint url config passing around could be implemented in a lot more sophisticated way but I think the internals require quite a lot of refactoring which would be another PR on its own

Logic is now:
Check if internal endpoint -> handle it. This way we can extend internal endpoints for /status or such later
Else check if token ok -> handle it
Else check if authorization headers aren't present -> send authorization suggestion
Else -> send authorization failed

@StrongestNumber9 StrongestNumber9 linked an issue Apr 11, 2024 that may be closed by this pull request
Copy link
Member

@kortemik kortemik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@StrongestNumber9 StrongestNumber9 merged commit 0ab825c into teragrep:main Apr 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement status/healthcheck endpoint
2 participants