Skip to content

Commit 54dcf0a

Browse files
chore(lightspeed): add NOSONAR to disable false positive in sonarqube (#3620)
Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
1 parent 2fd75ad commit 54dcf0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • workspaces/lightspeed/plugins/lightspeed-backend/src/service

workspaces/lightspeed/plugins/lightspeed-backend/src/service/constant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const SSRF_BLOCKED_HOSTNAMES = [
104104
'metadata.google.internal', // GCP metadata endpoint
105105
'kubernetes.default.svc', // Kubernetes internal DNS
106106
'host.docker.internal', // Docker host access
107-
'169.254.169.254', // AWS/Azure/GCP metadata IP
107+
'169.254.169.254', // NOSONAR local netwok, used by AWS/Azure/GCP metadata IP
108108
'127.0.0.1', // IPv4 loopback
109109
'0.0.0.0', // IPv4 any address
110110
'::1', // IPv6 loopback

0 commit comments

Comments
 (0)