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

Support CSP nonce parameter for RUM header and footer #591

Merged
merged 11 commits into from
Feb 8, 2022

Conversation

noetro
Copy link
Contributor

@noetro noetro commented Dec 2, 2021

Before contributing, please read our contributing guidelines and code of conduct.

Overview

This change adds new override method signatures for getBrowserTimingHeader(nonce) and getBrowserTimingFooter(nonce).

This has been in several forum topics. This will bring parity to the Java agent as the .NET agent already supports passing nonces.

https://discuss.newrelic.com/t/content-security-policy-and-browser-injection/2629/17

Related Github Issue

Include a link to the related GitHub issue, if applicable

Testing

The agent includes a suite of tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here,

Checks

[X] Are your contributions backwards compatible with relevant frameworks and APIs?
[ ] Does your code contain any breaking changes? Please describe.
[ ] Does your code introduce any new dependencies? Please describe.

@CLAassistant
Copy link

CLAassistant commented Dec 2, 2021

CLA assistant check
All committers have signed the CLA.

@kford-newrelic kford-newrelic added this to Triage in Java Engineering Board via automation Dec 3, 2021
@kford-newrelic
Copy link
Contributor

@noetro thanks for the submission! We'll be reviewing this PR along with others in a few weeks for an upcoming release

@kford-newrelic kford-newrelic moved this from Triage to Needs Review in Java Engineering Board Jan 18, 2022
@kford-newrelic kford-newrelic moved this from Needs Review to To do in Java Engineering Board Jan 19, 2022
@meiao
Copy link
Contributor

meiao commented Feb 2, 2022

I made some minor changes. Overall looks good.

@meiao
Copy link
Contributor

meiao commented Feb 3, 2022

Gotta make a couple more additions and I will be adding tests on our internal testing framework.

@meiao meiao merged commit d34852b into newrelic:main Feb 8, 2022
Java Engineering Board automation moved this from To do to Done Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants