I've been looking for few checks to make sure that our company's Google cloud is configured properly. Below are the few cases I want to check via some APIs programmatically. I would like to know which APIs can be used to achieve this.
- Need to check if Cloud SQL auditing is enabled.
- As in the networking section, again you should not allow ingress to your databases from the global internet. Do not allow 0.0.0.0 or /0 when creating authorized networks for your databases. Similarly, MySQL should not allow root users to connect from 0.0.0.0.
- Use Cloud audit logs to regularly audit changes to your IAM policy.
- Ensure VPC flow logging is enabled in all VPCs.
- Ensure no security group allows ingress from 0.0.0.0/0 to port 22.
- Get a list of services for whom data access logs are enabled.
Also, it would be great if there is a well-known list of security practices for Gcloud like CIS (available for AWS and Azure).