forked from overhangio/tutor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sec: apply rate limiting security fix
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,18 +42,21 @@ WORKDIR /openedx/edx-platform | |
RUN git config --global user.email "[email protected]" \ | ||
&& git config --global user.name "Tutor" | ||
|
||
{% if patch("openedx-dockerfile-git-patches-default") %} | ||
{%- if patch("openedx-dockerfile-git-patches-default") %} | ||
# Custom edx-platform patches | ||
{{ patch("openedx-dockerfile-git-patches-default") }} | ||
{% else %} | ||
{%- else %} | ||
# Patch edx-platform | ||
# Fix forum notification for questions | ||
# https://github.com/openedx/edx-platform/pull/29611 | ||
RUN git fetch --depth=2 https://github.com/open-craft/edx-platform/ 03731f19459e558f188c06aac5cc9ca1bbc675c2 && git cherry-pick 03731f19459e558f188c06aac5cc9ca1bbc675c2 | ||
# SAML security fix | ||
# https://github.com/overhangio/edx-platform/tree/overhangio/sec-fix-saml-vulnerability | ||
RUN git fetch --depth=2 https://github.com/overhangio/edx-platform/ 3b985f207853e88090d68a81acd52866b71f5af7 && git cherry-pick 3b985f207853e88090d68a81acd52866b71f5af7 | ||
{% endif %} | ||
# Rate limiting security fix | ||
# https://github.com/overhangio/edx-platform/tree/overhangio/sec-rate-limiting | ||
RUN git fetch --depth=2 https://github.com/overhangio/edx-platform/ b5723e416e628cac4fa84392ca13e1b72817674f && git cherry-pick b5723e416e628cac4fa84392ca13e1b72817674f | ||
{%- endif %} | ||
|
||
{# Example: RUN git fetch --depth=2 https://github.com/openedx/edx-platform <GITSHA1> && git cherry-pick <GITSHA1> #} | ||
{{ patch("openedx-dockerfile-post-git-checkout") }} | ||
|