File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ VERBOSE=false
6060NODE_OPTIONS = " --max-old-space-size=8192"
6161# Enable rate limitting
6262THROTTLER_ENABLED = true
63+ # Disable iteration for password hashing (not recommended for production)
64+ # See https://pages.nist.gov/800-63-3/sp800-63b.html
65+ # DANGEROUSLY_DISABLE_PBKDF2_ITERATION=
6366
6467# # ---------------------------------
6568# # DEVELOPMENT
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ import { UsersModule } from './users/users.module';
3434 inject : [ ConfigurationService ] ,
3535 isGlobal : true ,
3636 useFactory : ( configurationService : ConfigurationService ) => ( {
37+ pbkdf2Params : {
38+ iterations : configurationService . get ( 'DANGEROUSLY_DISABLE_PBKDF2_ITERATION' ) ? 1 : 100_000
39+ } ,
3740 secretKey : configurationService . get ( 'SECRET_KEY' )
3841 } )
3942 } ) ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export const $Configuration = z
1414 . object ( {
1515 API_DEV_SERVER_PORT : z . coerce . number ( ) . positive ( ) . int ( ) . optional ( ) ,
1616 API_PROD_SERVER_PORT : z . coerce . number ( ) . positive ( ) . int ( ) . default ( 80 ) ,
17+ DANGEROUSLY_DISABLE_PBKDF2_ITERATION : $BooleanString . default ( false ) ,
1718 DEBUG : $BooleanString ,
1819 GATEWAY_API_KEY : z . string ( ) . min ( 32 ) ,
1920 GATEWAY_DEV_SERVER_PORT : z . coerce . number ( ) . positive ( ) . int ( ) . optional ( ) ,
You can’t perform that action at this time.
0 commit comments