Skip to content

Commit 88a7834

Browse files
Merge pull request #3631 from RedisInsight/codeql
Codeql
2 parents 35f7f38 + 91873d2 commit 88a7834

File tree

4 files changed

+5
-44
lines changed

4 files changed

+5
-44
lines changed

api.Dockerfile

Lines changed: 0 additions & 42 deletions
This file was deleted.

redisinsight/api/src/modules/custom-tutorial/providers/custom-tutorial.fs.provider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export class CustomTutorialFsProvider {
8686
return Promise.reject(new BadRequestException(ERROR_MESSAGES.CUSTOM_TUTORIAL_UNSUPPORTED_ORIGIN));
8787
}
8888

89-
const { data } = await axios.get(link, {
89+
// false positive. we have whitelist checks above.
90+
const { data } = await axios.get(link, { // lgtm[js/request-forgery]
9091
responseType: 'arraybuffer',
9192
});
9293

redisinsight/api/src/modules/rdi/client/api.rdi.client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export class ApiRdiClient extends RdiClient {
4444
baseURL: rdi.url,
4545
timeout: RDI_TIMEOUT,
4646
httpsAgent: new https.Agent({
47-
rejectUnauthorized: false,
47+
// we might work with self-signed certificates for local builds
48+
rejectUnauthorized: false, // lgtm[js/disabling-certificate-validation]
4849
}),
4950
});
5051
}

redisinsight/api/src/modules/redis-enterprise/redis-enterprise.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export class RedisEnterpriseService {
4141
// TODO: maybe find a workaround without Disabling certificate validation.
4242
private api = axios.create({
4343
httpsAgent: new https.Agent({
44+
// we might work with self-signed certificates for local builds
4445
rejectUnauthorized: false, // lgtm[js/disabling-certificate-validation]
4546
}),
4647
});

0 commit comments

Comments
 (0)