Skip to content

feat(gcp): ApiKeys#5031

Merged
shimonp21 merged 1 commit intocloudquery:mainfrom
shimonp21:feat_gcp_apikeys
Nov 28, 2022
Merged

feat(gcp): ApiKeys#5031
shimonp21 merged 1 commit intocloudquery:mainfrom
shimonp21:feat_gcp_apikeys

Conversation

@shimonp21
Copy link
Copy Markdown
Contributor

Summary

  1. Depends on feat: Handle resolving of empty maps and slices plugin-sdk#430.
  2. Caveat: This API doesn't support all authentication options (if trying to use application-default credentials, returns:
2:50PM ERR table resolver finished with error error="rpc error: code = PermissionDenied desc = Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the apikeys.googleapis.com. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see https://cloud.google.com/docs/authentication/. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check https://cloud.google.com/apis/docs/system-parameters.\nerror details: name = ErrorInfo reason = SERVICE_DISABLED domain = googleapis.com metadata = map[consumer:projects/<...> service:apikeys.googleapis.com]" client=cq-playground module=gcp-src table=gcp_apikeys_keys

The API was tested with service-account credentials (via GOOGLE_APPLICATION_CREDENTIALS) and worked OK.

@shimonp21 shimonp21 merged commit 8e71bf0 into cloudquery:main Nov 28, 2022
kodiakhq bot pushed a commit that referenced this pull request Nov 30, 2022
🤖 I have created a release *beep* *boop*
---


## [3.1.0](plugins-source-gcp-v3.0.5...plugins-source-gcp-v3.1.0) (2022-11-30)


### Features

* **gcp:** ApiKeys ([#5031](#5031)) ([8e71bf0](8e71bf0))
* **gcp:** ContainerAnalysis resources ([#5115](#5115)) ([89f4df0](89f4df0))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.10.0 ([#5153](#5153)) ([ea1f77e](ea1f77e))
* **deps:** Update plugin-sdk for gcp to v1.8.1 ([#5038](#5038)) ([43302c4](43302c4))
* **deps:** Update plugin-sdk for gcp to v1.9.0 ([#5080](#5080)) ([41e5406](41e5406))
* Rename template variable 'r' to more indicative 'parent' ([#5109](#5109)) ([70919f8](70919f8))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants