newrelic
Version:
New Relic agent
54 lines (47 loc) • 1.18 kB
JavaScript
var flatten = require('../util/flatten')
// Config keys that can't be set by the server if high_security === true
const HIGH_SECURITY_SETTINGS = {
ssl: true,
capture_params: false,
strip_exception_messages: {
enabled: true
},
allow_all_headers: false,
attributes: {
include: []
},
transaction_tracer: {
record_sql: 'obfuscated',
attributes: {
include: []
}
},
error_collector: {
attributes: {
include: []
}
},
browser_monitoring: {
attributes: {
include: []
}
},
transaction_events: {
attributes: {
include: []
}
},
slow_sql: {
enabled: false
}
}
const HIGH_SECURITY_KEYS = flatten.keys(HIGH_SECURITY_SETTINGS)
// blank out these config values before sending to the collector
const REDACT_BEFORE_SEND = new Set(['proxy_pass', 'proxy_user', 'proxy'])
// process.domain needs to be stripped befeore sending
const REMOVE_BEFORE_SEND = new Set(['domain'])
exports.HIGH_SECURITY_SETTINGS = HIGH_SECURITY_SETTINGS
exports.HIGH_SECURITY_KEYS = HIGH_SECURITY_KEYS
exports.REDACT_BEFORE_SEND = REDACT_BEFORE_SEND
exports.REMOVE_BEFORE_SEND = REMOVE_BEFORE_SEND