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 report only csp policy and report endpoint #1860

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

deathbearbrown
Copy link
Contributor

Nightmare linter strikes again.

Loves them 4 space tabs.

Common.inc line 62-74 is the csp header and I added a report endpoint which will create a log file.

www/common.inc Outdated Show resolved Hide resolved
<?php

// Start configure
$log_file = dirname(__FILE__) . '/csp-violations.log';
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make sure we add this to the .gitignore so we don't have any issues with our deployments

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably ok to target any logs?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah for sure

$json_data .
"\n\nFurther CPS violations will be logged to the following log file, but no further email notifications will be sent until this log file is deleted:\n\n" .
$log_file;
mail(
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this use the main (blocking) process? I'm worried about having 2000 users on the site and all of these going off at the same time.

// Start configure
$log_file = dirname(__FILE__) . '/csp-violations.log';
$log_file_size_limit = 1000000; // bytes - once exceeded no further entries are added
$email_address = '[email protected]';
Copy link
Contributor

Choose a reason for hiding this comment

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

oh god sue i'm so sorry

Copy link
Contributor Author

Choose a reason for hiding this comment

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

haha yeah I was going to ask.. can we use a different email

@deathbearbrown
Copy link
Contributor Author

Setting this to BLOCKED, because it requires some server configurations for logging.

deathbearbrown and others added 7 commits May 25, 2022 12:00
Update the signup-flow header for smaller screens
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 7.4.2 to 7.4.3.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](guzzle/guzzle@7.4.2...7.4.3)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
…lehttp/guzzle-7.4.3

chore(deps): bump guzzlehttp/guzzle from 7.4.2 to 7.4.3
jefflembeck and others added 8 commits May 26, 2022 11:18
If a user is WPT Enterprise, they do not have a braintree id and thus
get access denied when querying for braintree transaction history. This
is bad because our graphql client blows up on ANY errors existing.

So, let's make a different query if somebody is wpt enterprise to not
query for that if they are
make sure account.css has versioning for all references
fix(csrf): get the token on every page, check the post only on accoun…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants