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

Ignore newlines in CSP directive in app.yml #1857

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Conversation

sbreker
Copy link
Member

@sbreker sbreker commented Aug 7, 2024

This commit adds logic to QubitCspFilter to ignore newlines added when defining the CSP Directive in app.yml.

Refactor QubitCspFilter to move config reading logic to separate methods in the QubitCspFilter class.

Add tests to ensure that the config vars are read correctly from app.yml when they are formatted in different ways.

@sbreker sbreker force-pushed the dev/add-csp-filter-test branch 2 times, most recently from 244e1e5 to 3abd892 Compare August 8, 2024 21:23
@sbreker sbreker requested a review from a team August 9, 2024 15:41
Copy link
Contributor

@anvit anvit left a comment

Choose a reason for hiding this comment

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

Looks great, thanks @sbreker !

This commit adds logic to QubitCspFilter to ignore newlines added when
defining the CSP Directive in app.yml.

Refactor QubitCspFilter to move config reading logic to separate methods
in the QubitCspFilter class.

Add tests to ensure that the config vars are read correctly from app.yml
when they are formatted in different ways.
@sbreker sbreker merged commit d00c51b into qa/2.x Aug 12, 2024
6 checks passed
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.

2 participants