You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Permission allow-fs-* to resolve env variables #65422
What is the feature you are proposing to solve the problem?
Pseudocode:
constreplaceEnvVar=(value)=>{constenvVarMatch=value.match(/^\$([A-Z_][A-Z0-9_]*)$/i)if(envVarMatch){constenvVarName=envVarMatch[1]if(process.env[envVarName]!==undefined){returnprocess.env[envVarName]}else{console.error(`[LavaMoat] Environment variable "${envVarName}" referenced in config but not found in environment`)}}returnvalue}for(constkeyof['--allow-fs-read','--allow-fs-write']){if(Array.isArray(configOptions[key])){configOptions[key]=configOptions[key].map(replaceEnvVar)}elseif(typeofconfigOptions[key]==='string'){configOptions[key]=replaceEnvVar(configOptions[key])}}
What alternatives have you considered?
I've considered more advanced support where this would also work:
Activity
naugtur commentedon Aug 20, 2026
Planning to implement this. May need some pointers or opinions.