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

Document changes of CSP and X_XSS_Protection #8785

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

swatiganesh
Copy link
Collaborator

@swatiganesh swatiganesh commented Feb 11, 2025

🔩 Description: What code changed, and why?

Document changes of CSP and X-XSS-Protection

Default value of CSP:
content_security_policy = "default-src 'self';frame-ancestors 'self';"

Configuration of CSP:

[load_balancer.v1.sys.ngx.http]
content_security_policy = "default-src 'none'; script-src 'self'; connect-src 'self'; img-src 'self'; style-src 'self';"

Default value of X-XSS-Protection
x_xss_protection = "1; mode=block"

Configuration of X-XSS-Protection

[global.v1.sys.ngx.http]
x_xss_protection = "0"

⛓️ Related Resources

https://progresssoftware.atlassian.net/browse/CHEF-13481

👍 Definition of Done

👟 How to Build and Test the Change

✅ Checklist

All PRs must tick these:

With occasional exceptions, all PRs from Progress employees must tick these:

  • Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
  • Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
  • Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
  • Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
  • Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

  • Tests added/updated? (all new code needs new tests)
  • Docs added/updated? (all customer-facing changes)

Please add a note next to any checkbox above if you are NOT ticking it.

📷 Screenshots, if applicable

@swatiganesh swatiganesh self-assigned this Feb 11, 2025
@github-actions github-actions bot added the documentation Anything related to the Automate docs. label Feb 11, 2025
Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for chef-automate ready!

Name Link
🔨 Latest commit 1f44d02
🔍 Latest deploy log https://app.netlify.com/sites/chef-automate/deploys/67ab03f6b534e8000873916d
😎 Deploy Preview https://deploy-preview-8785--chef-automate.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@swatiganesh swatiganesh marked this pull request as ready for review February 11, 2025 06:26
@swatiganesh swatiganesh requested a review from a team as a code owner February 11, 2025 06:26

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Anything related to the Automate docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant