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

fix: Add login check on /download-schema route #4222

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Jan 28, 2025

What does this PR do?

Only allows authenticated users to access the /download-schema route by applying the useLoginAuth() middleware.

Why?

This was flagged by the pen test. Whilst there's no security issue here - the flow data should be public, there is a performance concern for exposing this endpoint. This isn't a public feature, and a potentially expensive request - it could degrade performance if this was hit over and over.

@DafyddLlyr DafyddLlyr changed the title fix: Add login check on \/download-schema route fix: Add login check on /download-schema route Jan 28, 2025
@DafyddLlyr DafyddLlyr requested a review from a team January 28, 2025 18:02
Copy link

github-actions bot commented Jan 28, 2025

Removed vultr server and associated DNS entries

Copy link
Contributor

@jamdelion jamdelion left a comment

Choose a reason for hiding this comment

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

Just some API test failures but v happy for this to go in once that's sorted :)

@DafyddLlyr DafyddLlyr force-pushed the dp/login-auth-flows-endpoints branch from d79a458 to 4302122 Compare January 29, 2025 07:18
@DafyddLlyr DafyddLlyr merged commit b567663 into main Jan 29, 2025
13 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/login-auth-flows-endpoints branch January 29, 2025 07:30
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.

2 participants