function redactValue(value) {
  const REDACT_VALUE = '****'

  let result = null
  if (Array.isArray(value)) {
    // Redact each value so we know if was configured and how many values
    result = value.map(() => REDACT_VALUE)
  } else {
    result = REDACT_VALUE
  }

  return result
}
Checks policies received from preconnect against those expected
by the agent, if LASP-enabled. Responds with an error to shut down
the agent if necessary.

@param agent
@param {object} policies lasp policy
@returns {CollectorResponse} The result of the processing, with the known
 policies as the response payload.