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

add security settings for nginx #159

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

Diogo-Rego
Copy link
Contributor

No description provided.

This was referenced Oct 2, 2024
Copy link
Collaborator

@ostefano ostefano left a comment

Choose a reason for hiding this comment

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

Can you make sure that disabling an option would tentatively revert some of the modifications?

@ostefano ostefano linked an issue Oct 2, 2024 that may be closed by this pull request
@ostefano ostefano added the enhancement New feature or request label Oct 2, 2024
@Diogo-Rego
Copy link
Contributor Author

Can you make sure that disabling an option would tentatively revert some of the modifications?

The script does three main things:

  1. Content-Security-Policy (CSP):

    • First, it removes any existing CSP header.
    • If the variable $CONTENT_SECURITY_POLICY is defined, it adds the CSP header with its value. If the variable is not defined, it skips adding the CSP header.
  2. X-Frame-Options:

    • It removes any existing X-Frame-Options header.
    • If the variable $X_FRAME_OPTIONS is not defined, it adds a default header (SAMEORIGIN). If the variable is defined, it uses the value of $X_FRAME_OPTIONS to set the header.
  3. HTTP Strict Transport Security (HSTS):

    • It removes any existing HSTS header.
    • If the variable $HSTS_MAX_AGE is defined, it adds the HSTS header with the value of $HSTS_MAX_AGE. If not defined, no HSTS header is added.

@ostefano ostefano added the scheduled Will merge at the next opportunity label Oct 2, 2024
@ostefano ostefano merged commit 7542208 into MISP:master Oct 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scheduled Will merge at the next opportunity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add X-Frame-Options
2 participants