File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ CMD ["node", "src/service.js"]
130130FROM rocketchatfips140/dhi-node:22-alpine3.23 AS release-fips
131131ARG SERVICE
132132ENV NODE_ENV=production \
133- PORT=3000
133+ PORT=3000 \
134+ ROCKETCHAT_ENABLE_FIPS=true
134135COPY --chown=node:node --from=builder /app /app
135136WORKDIR /app/ee/apps/${SERVICE}
136137USER node
Original file line number Diff line number Diff line change 11import os from 'os' ;
2+ import crypto from 'crypto' ;
3+
4+ // --- CONDITIONAL FIPS ENFORCEMENT ---
5+ if ( process . env . ROCKETCHAT_ENABLE_FIPS === 'true' ) {
6+ crypto . setFips ( true ) ; // Force OpenSSL into FIPS mode only if the env var is set
7+ }
8+
9+ console . log ( '=================================' ) ;
10+ console . log ( 'FIPS COMPLIANCE CHECK' ) ;
11+ console . log ( 'Is FIPS actively enforced? :' , crypto . getFips ( ) ? 'YES' : 'NO' ) ;
12+ console . log ( '=================================' ) ;
13+ // ------------------------------------
214
315import { api , getConnection , getTrashCollection } from '@rocket.chat/core-services' ;
416import { InstanceStatus } from '@rocket.chat/instance-status' ;
You can’t perform that action at this time.
0 commit comments