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

Update content request handling to only use reserved locations representing Studio #12881

Conversation

LianaHarris360
Copy link
Member

Summary

This pull request addresses the content request peer device validation issue that allowed attempts to download content from KDP, which is now a reserved network location.

The original code allowed KDP to bypass the connection status check due to its reserved status. The updated condition ensures that only the Studio network location (with the specific instance_id) bypasses the connection status check.

References

Closes #12876

@github-actions github-actions bot added the DEV: backend Python, databases, networking, filesystem... label Nov 26, 2024
@LianaHarris360 LianaHarris360 marked this pull request as ready for review November 26, 2024 17:38
Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

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

Changes make sense, and this is definitely a significant improvement.

I think there's still something we can probably do to fail faster here, but doesn't need to be within the scope of this PR.

@rtibbles rtibbles merged commit 0d22d5d into learningequality:develop Nov 26, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV: backend Python, databases, networking, filesystem...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update content request handling to not use just any reserved location
2 participants