Skip to content

Commit 4d3ad14

Browse files
authored
feat: add security-sensitive file extensions to exclusion list (#1157)
1 parent 6b5f86b commit 4d3ad14

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/platform/workspaceChunkSearch/node/workspaceFileIndex.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ const EXCLUDE_EXTENSIONS = new Set([
143143
'jar', 'class', 'ear', 'war', // Java
144144
'apk', 'dex', // Android
145145
'phar', // PHP
146+
147+
// Certificates and private keys (security sensitive)
148+
'pfx', 'p12', // PKCS#12 files
149+
'pem', 'crt', 'cer', // Certificate files
150+
'key', 'priv', // Private key files
151+
'jks', 'keystore', // Java keystore files
152+
'csr', // Certificate signing requests
146153
]);
147154

148155
const EXCLUDED_FOLDERS = [

0 commit comments

Comments
 (0)