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

Kd/91 remove insecure debug endpoints #99

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

kevindeforth
Copy link
Contributor

@kevindeforth kevindeforth commented Dec 17, 2024

resolves #91

Isolated the debugging endpoint logic into a different file.

I am new to rust, probably not the best way of doing this. Feedback appreciated.

@kevindeforth kevindeforth force-pushed the kd/91-remove-insecure-debug-endpoints branch 2 times, most recently from 437caa1 to e9a2fca Compare December 17, 2024 13:21
@kevindeforth kevindeforth marked this pull request as draft December 17, 2024 15:04
- /debug/tasks, /debug/index and /debug/sign are only compiled in test mode
@kevindeforth kevindeforth force-pushed the kd/91-remove-insecure-debug-endpoints branch from 3ef3a9f to 1a5796f Compare December 17, 2024 15:55
@kevindeforth kevindeforth marked this pull request as ready for review December 17, 2024 16:22
Copy link
Contributor

@bowenwang1996 bowenwang1996 left a comment

Choose a reason for hiding this comment

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

Looks good. @robin-near do you want to expose debug_tasks in some way?

@robin-near
Copy link
Contributor

I was thinking of debug_tasks... but I don't have a good solution here short of exposing two ports which is a bit overkill. Let's just go with this for now. Later maybe we can put /debug/tasks behind a feature flag.

@kevindeforth kevindeforth merged commit ddf149b into main Dec 18, 2024
1 check passed
@kevindeforth kevindeforth deleted the kd/91-remove-insecure-debug-endpoints branch December 18, 2024 07:19
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.

Remove insecure debug endpoints
3 participants