ScoutSuite icon indicating copy to clipboard operation
ScoutSuite copied to clipboard

GCP CloudSQL Error

Open WeipingGan opened this issue 3 years ago • 3 comments

When I run ScoutSuite scanner for our GCP project, it reports this error: scout[153] ERROR Unknown Cloud SQL instance IP address type: OUTGOING

And we check this part of code: https://github.com/nccgroup/ScoutSuite/blob/db827e3d8e36e3bc7adcb8c62f2453960353c2ef/ScoutSuite/providers/gcp/resources/cloudsql/database_instances.py#L55

Find ScoutSuite doesn't support outgoing type IP for CloudSQL.

# network interfaces
     instance_dict['public_ip'] = None
     instance_dict['private_ip'] = None
     for address in raw_instance.get('ipAddresses', []):
         if address['type'] == 'PRIMARY':
             instance_dict['public_ip'] = address['ipAddress']
         elif address['type'] == 'PRIVATE':
             instance_dict['private_ip'] = address['ipAddress']
         else:
             print_exception('Unknown Cloud SQL instance IP address type: {}'.format(address['type']))

WeipingGan avatar Jul 01 '21 02:07 WeipingGan

Here is the console output:

image

WeipingGan avatar Jul 01 '21 02:07 WeipingGan

I have the same problem. Does anyone know how I can remove this bug. CircleCI shows an error message even without an error

joaohenriquepda avatar Jul 09 '21 17:07 joaohenriquepda

Is this still active? We are seeing the same problem.

chargraves85 avatar Aug 30 '22 17:08 chargraves85