def redact(datum)
      datum = datum.dup
      if datum.has_key?(:headers) && datum[:headers].has_key?('Authorization')
        datum[:headers] = datum[:headers].dup
        datum[:headers]['Authorization'] = REDACTED
      end
      if datum.has_key?(:password)
        datum[:password] = REDACTED
      end
      datum
    end
def redact(datum)
      datum = datum.dup
      if datum.has_key?(:headers) && datum[:headers].has_key?('Authorization')
        datum[:headers] = datum[:headers].dup
        datum[:headers]['Authorization'] = REDACTED
      end
      if datum.has_key?(:password)
        datum[:password] = REDACTED
      end
      datum
    end
Redact sensitive info from provided data