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

feat: Implement CSP header #1586

Merged
merged 16 commits into from
Nov 24, 2021
Merged

feat: Implement CSP header #1586

merged 16 commits into from
Nov 24, 2021

Conversation

faucomte97
Copy link
Member

@faucomte97 faucomte97 commented Nov 16, 2021

This change is Reviewable

@faucomte97 faucomte97 self-assigned this Nov 16, 2021
@faucomte97 faucomte97 marked this pull request as ready for review November 18, 2021 19:47
Copy link
Collaborator

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 6 files at r1, 4 of 4 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @faucomte97)


aimmo/autoconfig.py, line 48 at r2 (raw file):

        "ws://localhost:41949/",
        "ws://192.168.58.2:7959/socket.io/",
        "http://192.168.58.2:7959/socket.io/",

Minor, hmm, I have a feeling this may not be the same on all machines - we'll probably disable CSP on localhost though.

Copy link
Collaborator

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @faucomte97)


aimmo/autoconfig.py, line 30 at r2 (raw file):

    ],
    "USE_TZ": True,
    # ----------------------------------------------------------------------------------

Same comment about separation 😁

Copy link
Member Author

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @faucomte97 and @razvan-pro)


aimmo/autoconfig.py, line 30 at r2 (raw file):

Previously, razvan-pro (Razvan Mahu) wrote…

Same comment about separation 😁

Done.

Copy link
Member Author

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 5 of 9 files reviewed, 2 unresolved discussions (waiting on @faucomte97 and @razvan-pro)


aimmo/autoconfig.py, line 48 at r2 (raw file):

Previously, razvan-pro (Razvan Mahu) wrote…

Minor, hmm, I have a feeling this may not be the same on all machines - we'll probably disable CSP on localhost though.

Should I leave it for now?
Should we test it on other machines?

Copy link
Member Author

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 5 of 9 files reviewed, 1 unresolved discussion (waiting on @faucomte97 and @razvan-pro)


aimmo/autoconfig.py, line 48 at r2 (raw file):

Previously, faucomte97 (Florian Aucomte) wrote…

Should I leave it for now?
Should we test it on other machines?

Done.

Copy link
Collaborator

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 4 files at r3, 1 of 1 files at r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @faucomte97)

@codecov
Copy link

codecov bot commented Nov 24, 2021

Codecov Report

Merging #1586 (40c669d) into development (c52f0ec) will increase coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #1586      +/-   ##
===============================================
+ Coverage        67.74%   67.87%   +0.13%     
===============================================
  Files              165      163       -2     
  Lines             3339     3325      -14     
  Branches           235      235              
===============================================
- Hits              2262     2257       -5     
+ Misses            1049     1040       -9     
  Partials            28       28              
Impacted Files Coverage Δ
aimmo/csp_config.py 100.00% <100.00%> (ø)
aimmo/autoconfig.py
setup.py
aimmo/setup.py

@faucomte97 faucomte97 merged commit 9253113 into development Nov 24, 2021
@faucomte97 faucomte97 deleted the csp_header branch November 24, 2021 10:22
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.

None yet

2 participants