You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ⚡️ gcp: verify connection only once
We are hitting rate limits like:
```
GCP integration error: rpc error: code = Unknown desc = googleapi: Error 429: Quota exceeded for quota metric 'Project V3 get requests' and limit 'Project V3 get requests per minute' of service 'cloudresourcemanager.googleapis.com' for consumer 'project_number:1234567890
```
This change reduces the number of requests by verifying the connection
only once per configuration. We have done this in the past for Github.
Closes#5095
Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
* ➡️ move connection options to diff struct
Because if not, we get different hashes all the time!
Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
---------
Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
returnnil, errors.New("google provider requires a gcp organization id, gcp project id or google workspace customer id. please set option `project-id` or `organization-id` or `customer-id` or `folder-id`")
0 commit comments