diff --git a/docker/standalone/node/Dockerfile b/docker/standalone/node/Dockerfile index b2482bdce..e8bd18001 100644 --- a/docker/standalone/node/Dockerfile +++ b/docker/standalone/node/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app COPY package.json ./ RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt update && apt dist-upgrade -y && apt clean -RUN apt install -qqy build-essential checkinstall zlib1g-dev wget libssl-dev curl clang && cd /usr/local/src && wget https://www.openssl.org/source/openssl-3.0.8.tar.gz && tar xvf openssl-3.0.8.tar.gz && cd openssl-3.0.8 && ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib enable-fips linux-x86_64 && make -j8 > make.log && make install > makeinstall.log && make install_ssldirs > makeinstallssldirs.log && make install_fips > makeinstallfips.log && cd / && apt remove -qqy build-essential checkinstall zlib1g-dev wget libssl-dev curl clang && apt autoremove -qqy && apt clean +RUN apt install -qqy build-essential checkinstall zlib1g-dev wget libssl-dev curl clang && cd /usr/local/src && wget https://www.openssl.org/source/openssl-3.0.8.tar.gz && tar xvf openssl-3.0.8.tar.gz && cd openssl-3.0.8 && ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib enable-fips linux-x86_64 && make -j8 > make.log && make install > makeinstall.log && make install_ssldirs > makeinstallssldirs.log && make install_fips > makeinstallfips.log && cd / && rm -rf cd /usr/local/src/openssl-3.0.8 && apt remove -qqy build-essential checkinstall zlib1g-dev wget libssl-dev curl clang && apt autoremove -qqy && apt clean RUN openssl version ENV OPENSSL_CONF=/usr/local/ssl/nodejs.cnf diff --git a/src/main/server/shims/auditLogger.js b/src/main/server/shims/auditLogger.js index 6a084f13b..7f444bdb2 100644 --- a/src/main/server/shims/auditLogger.js +++ b/src/main/server/shims/auditLogger.js @@ -79,7 +79,7 @@ let hash = function(msg) { let concat = previousHash + msg; let newHash = EcCrypto.md5(concat); previousHash = newHash; - return `${msg} ${newHash}`; + return `${newHash} ${msg}`; }; let syslogFormat = function(facility, severity, timestamp, msgID, data) { @@ -96,7 +96,7 @@ let report = function(system, severity, message, ...data) { try { if (filterLogs(system, severity, message)) { const msg = JSON.stringify({date: new Date(), message, data, system, severity}); - logBuffers.push(msg); + logBuffers.push(hash(msg)); } if (logBuffers.length > 1000) { flush();