Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Sensitive Data Detection in files like (.csv , .xlsx , json) #761

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
111 changes: 110 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"concurrently": "^8.0.0",
"connect-mongo": "^5.1.0",
"cors": "^2.8.5",
"csv-parser": "^3.0.0",
"diff2html": "^3.4.33",
"express": "^4.18.2",
"express-http-proxy": "^2.0.0",
Expand All @@ -70,6 +71,7 @@
"react-router-dom": "6.26.2",
"simple-git": "^3.25.0",
"uuid": "^10.0.0",
"xlsx": "^0.18.5",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion proxy.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"block": {
"literals": [],
"patterns": [],
"providers": {}
"providers": {},
"sensitiveFileTypes":[]
}
}
},
Expand Down
4 changes: 3 additions & 1 deletion src/proxy/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ const pushActionChain = [
proc.push.checkIfWaitingAuth,
proc.push.pullRemote,
proc.push.writePack,
proc.push.getDiff,
proc.push.getDiff,
proc.push.checkSensitiveData, // checkSensitiveData added
proc.push.clearBareClone,
proc.push.scanDiff,
proc.push.blockForAuth,
];


const pullActionChain = [proc.push.checkRepoInAuthorisedList];

let pluginsInserted = false;
Expand Down
Loading
Loading