message: Implement drastically simplified webhook payload design
diff: @@ -11,24 +11,21 @@ const os = require('os')
  const config = require('config')
  exports.notify = (challenge) => {
  - request.post(process.env.WEBHOOK_URL, {
  + request.post(process.env.SOLUTIONS_WEBHOOK, {
  json: {
  solution:
  {
  - issuer: process.env.ISSUER_ID || `${config.get('application.customMetricsPrefix')}-${utils.version()}@${os.hostname()}`,
  - recipient: process.env.RECIPIENT_ID || null,
  + issuer: `owasp_juiceshop-${utils.version()}@${os.hostname()}`,
  challenge: challenge.key,
  evidence: null,
  issuedOn: new Date().toISOString()
  - },
  - signature: null,
  - verification: null
  + }
  }
  }, (error, res) => {
  if (error) {
  console.error(error)
  return
  }
  - logger.info(`Webhook ${colors.bold(process.env.WEBHOOK_URL)} notified about ${colors.cyan(challenge.key)} being solved: ${res.statusCode < 400 ? colors.green(res.statusCode) : colors.red(res.statusCode)}`)
  + logger.info(`Webhook ${colors.bold(process.env.SOLUTIONS_WEBHOOK)} notified about ${colors.cyan(challenge.key)} being solved: ${res.statusCode < 400 ? colors.green(res.statusCode) : colors.red(res.statusCode)}`)
  })
  }
  