Merge remote-tracking branch 'upstream/release-7.5.0' into chore/merge-release-into-dev

This commit is contained in:
Taranto 2021-11-24 14:53:50 +00:00
commit 0ad2ee362a
109 changed files with 3283 additions and 697 deletions

View file

@ -1,6 +1,8 @@
const _ = require('lodash/fp')
const crypto = require('crypto')
const logger = require('../logger')
function sha256 (buf) {
const hash = crypto.createHash('sha256')
@ -9,6 +11,7 @@ function sha256 (buf) {
}
const populateDeviceId = function (req, res, next) {
logger.info(`DEBUG LOG - Method: ${req.method} Path: ${req.path}`)
const deviceId = _.isFunction(req.connection.getPeerCertificate)
? sha256(req.connection.getPeerCertificate().raw)
: null