Skip to content

Conversation

@atharv02-git
Copy link

Base Repository: 8.0.x

Description

This PR ensures that the internal nginx.conf inside doubtfire-web does not override the security headers (e.g., X-Frame-Options, Content-Security-Policy) that are now being enforced via the outer proxy-nginx.conf file in the doubtfire-deploy repository.

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:

  • Commented out redundant security headers from doubtfire-web/nginx.conf to prevent conflict or override with headers applied at the reverse proxy layer (proxy-nginx.conf).
  • This avoids duplication and ensures centralized management of security headers at the proxy level for consistency across services.

Fixes # (Header override issues caused by multiple NGINX layers)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update

How Has This Been Tested?

  • Validated that headers set in proxy-nginx.conf (doubtfire-deploy) reflect in browser response
  • Confirmed no duplication or override from doubtfire-web/nginx.conf
  • Ensured static files are still served correctly via inner NGINX
  • Yet to test Clickjacking Prevention in a Malicious <Iframe> Setup as listed in the report.

Testing Checklist:

  • Tested in latest Chrome
  • Needs to be tested inside a dedicated environment like kali linux inside a virtual box.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have requested a review from @ibi420

Bahnschrift and others added 30 commits May 31, 2024 12:56
Added new Numbas Service to the frontend as part of Integration

Changed by: Daniel Maddern
adjusted lint on edit-profile-component.spec.ts

Changed by: Daniel Maddern
Added numbas service and numbas service test

daniel
added a spec test file for numbas service

daniel
added the lms service code and functionality

Added by Daniel
added the spec test basic version for numbas-lms service

Added by Daniel
removed the addtional comma added into this component

daniel
renamed api endpoint to reduce confusion between components
- checks with weighted grading
- provides a link to open D2L unit edit for weight
New/d2lintegration - Introduce D2L integration for grade transfer
Where the staff member is the student.
Also ensures the current user is in the cache when they login from cookie.
This should ensure that the new html5 urls work correctly.
- Add directory to direct to index.html
- Add root index.html otherwise
Fixes issues with task definitions not getting their id
when created. Which caused upload of
task sheets to fail until reloaded.
Make sure roll over in a unit indicates it
copies to a new teaching period or custom
dates.
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.

7 participants