The New Relic Node.js agent default security settings automatically provide security for your APM data to ensure data privacy and to limit the kind of information New Relic receives. You may have business reasons to change these settings.
If you want to restrict the information that New Relic receives, you can enable high-security mode. If high-security mode or the default settings do not work for your business needs, you can apply custom settings.
For more information about New Relic's security measures, see our security and privacy documentation, or visit the New Relic security website.
Default security settings
By default, here is how the Node.js agent handles the following potentially sensitive data:
- Request parameters: The agent does not capture HTTP request parameters. If you wish to capture all request parameters, add
'request.parameters.*'
toattributes.include
in your config file. - HTTPS: The agent communicates with New Relic using HTTPS.
- SQL: The agent sets SQL recording to
off
. When set tooff
, the agent does not capture slow queries and does not include backtraces or SQL in transaction traces.
High-security mode settings
When you enable high-security mode, the default settings are locked so that users cannot change them. In addition:
- The agent does not collect message queue parameters.
- The
record_sql
configuration setting is changed toobfuscated
, which strips out string and numeric literals.
Custom security settings
Cuidado
If you customize security settings, it may impact the security of your application.
If you need different security settings than default or high-security mode, you can customize these settings:
- Node.js agent configuration file
- Custom attributes
- Node.js agent APIhttps://newrelic.github.io/node-newrelic/API.html)
Setting | Effects on data security |
---|---|
boolean | Default: By default, the agent does not log all data sent to New Relic in the agent log file. If you set this to |
boolean | Default: To enable high-security mode, set this to |
string | Default: (none) Some proxies default to using HTTP, which is a less secure protocol. |
string | Default: By default, You can change this setting to adjust the information that the agent sends to the New Relic collector.
|