-
Notifications
You must be signed in to change notification settings - Fork 137
Fix/clickjacking vulnerability fix #322
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
base: 8.0.x
Are you sure you want to change the base?
Fix/clickjacking vulnerability fix #322
Conversation
|
I have accidentally committed and pushed my package.json files as well to origin and because of that it says 3 files changed instead of actual 1 file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @atharv02-git,
- This change effectively prevents conflicting security policies from overlapping between the proxy-nginx in doubtfire-deploy.
- You can push a commit that reverts
package-lock.jsonandpackage.jsonto their original state to remove their changes from this PR.
|
Hello @atharv02-git, I have reviewed these changes, and I can confirm that the headers set successfully reflect in the browser's response and there is no duplication or override. The clickjacking vulnerability has been patched. I also noticed the inclusion of the package.json and package-lock.json files. I believe the inclusion of the package.json file with its current modifications will make it easier for people to build their containers on Windows, but the package-lock.json file will cause conflicts. I recommend the removal of the package-lock.json file. Thank you for the opportunity to review your work |
77df952 to
0bc4513
Compare
|
Hi @lachlan-robinson and @ibi420, in-order not to create any conflict I updated the package.json to it's original state and pushed the commit, and deleted package-lock.json in order to resolve conflicts |
theiris6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @atharv02-git,
Thanks for addressing the header duplication issue and updating the nginx.conf files. I’ve reviewed the changes and confirmed that the headers are now served correctly without conflict. The clickjacking protection is working as expected.
Also appreciate you resolving the package file conflict—this is now ready to go.
Approved.
|
@atharv02-git you have deleted the |
Hi @aNebula, I’ve opened the upstream Pull Request to the doubtfire-lms/doubtfire-web repository (9.x branch) with only the intended changes including nginx.conf only and no deletions like package-lock.json have been included. |
Base Branch: 8.0.x
Note: Making a PR to thoth-tech/doubtfire-web branch only for peer review purpose.
Description
This PR ensures that the internal
nginx.confinsidedoubtfire-webdoes not override the security headers (e.g.,X-Frame-Options,Content-Security-Policy) that are now being enforced via the outerproxy-nginx.conffile in thedoubtfire-deployrepository.Note
Kindly go through the attached documentation first inorder to understand what this fix is about in detail and how it can be tested.
What was changed:
doubtfire-web/nginx.confto prevent conflict or override with headers applied at the reverse proxy layer (proxy-nginx.conf).Fixes # (Header override issues caused by multiple NGINX layers)
Type of change
How Has This Been Tested?
proxy-nginx.conf(doubtfire-deploy) reflect in browser responsedoubtfire-web/nginx.confTesting Checklist:
Checklist: