Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn instead of throwing fatal error if specific resource collection fails #9

Closed
wants to merge 1 commit into from
Closed

Warn instead of throwing fatal error if specific resource collection fails #9

wants to merge 1 commit into from

Conversation

chongyangshi
Copy link

@chongyangshi chongyangshi commented Dec 17, 2020

When querying a complex AWS or GCP environment with a service user / service role, it is common that the service user or service role does not have permissions to view all of the cloud environment. In AWS it is also possible for resource policies to deny access to certain resources for the service user or service role before IAM policies even apply.

Even if resource collection for a subset of resources fail (e.g. some S3 buckets and some KMS keys cannot be collected due to explicit Deny in their resource policies), other resources collected from the same account (e.g. EC2 instances) should still be useful for querying, and it shouldn't be the case that we abandon the entire fetch run. Therefore in this PR I suggest that we log a warning instead of a fatal error if specific resources fail to be collected.

ghost pushed a commit that referenced this pull request Dec 17, 2020
@ghost
Copy link

ghost commented Dec 17, 2020

@chongyangshi Thanks for opening this! I've added a bit stricter check specifically for AccessDenied and AccessDeniedException errors. Let me know v0.4.5 solved this issue?

@ghost ghost closed this Dec 18, 2020
@cq-bot cq-bot mentioned this pull request Aug 9, 2022
erezrokah pushed a commit to erezrokah/cloudquery that referenced this pull request Aug 14, 2022
🤖 I have created a release *beep* *boop*
---

* Added access groups ([cloudquery#14](https://github.com/cloudquery/cq-provider-cloudflare/issues/14)) ([64c03cc](https://github.com/cloudquery/cq-provider-cloudflare/commit/64c03cc500515b2209b27c223f40e18ae8550f0c))
* Added certificate packs ([cloudquery#12](https://github.com/cloudquery/cq-provider-cloudflare/issues/12)) ([5f22e18](https://github.com/cloudquery/cq-provider-cloudflare/commit/5f22e181ae6dab564992d2aa578617344a2c800c))
* Added workers ([cloudquery#6](https://github.com/cloudquery/cq-provider-cloudflare/issues/6)) ([32152d4](https://github.com/cloudquery/cq-provider-cloudflare/commit/32152d4e21ca07651e963da65933f6e623997479))

* Cleanup ([cloudquery#16](https://github.com/cloudquery/cq-provider-cloudflare/issues/16)) ([391dc34](https://github.com/cloudquery/cq-provider-cloudflare/commit/391dc3430f182d6635af21ce212d9ef45f35cb09))
* **deps:** Update module github.com/cloudquery/cq-gen to v0.0.8 ([cloudquery#9](https://github.com/cloudquery/cq-provider-cloudflare/issues/9)) ([b62ec0d](https://github.com/cloudquery/cq-provider-cloudflare/commit/b62ec0d8742764c5541fb2501bb35f0919505148))
* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.14.7 ([cloudquery#10](https://github.com/cloudquery/cq-provider-cloudflare/issues/10)) ([7b03621](https://github.com/cloudquery/cq-provider-cloudflare/commit/7b03621fe1f6ff9cb3c1ee2780e1a07caa793993))
* Remove redundant col ([cloudquery#15](https://github.com/cloudquery/cq-provider-cloudflare/issues/15)) ([d2959bb](https://github.com/cloudquery/cq-provider-cloudflare/commit/d2959bbbb07f4b2308d6072a84164d793e1c33fa))
* Updated account pagination ([cloudquery#13](https://github.com/cloudquery/cq-provider-cloudflare/issues/13)) ([ad6e6a8](https://github.com/cloudquery/cq-provider-cloudflare/commit/ad6e6a8206540e3d0823bb98783b5ca5b747c906))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
erezrokah pushed a commit to erezrokah/cloudquery that referenced this pull request Aug 14, 2022
🤖 I have created a release *beep* *boop*
---


## [0.1.2](https://github.com/cloudquery/cq-provider-cloudflare/compare/v0.1.1...v0.1.2) (2022-08-10)


### Features

* Added access groups ([cloudquery#14](https://github.com/cloudquery/cq-provider-cloudflare/issues/14)) ([64c03cc](https://github.com/cloudquery/cq-provider-cloudflare/commit/64c03cc500515b2209b27c223f40e18ae8550f0c))
* Added certificate packs ([cloudquery#12](https://github.com/cloudquery/cq-provider-cloudflare/issues/12)) ([5f22e18](https://github.com/cloudquery/cq-provider-cloudflare/commit/5f22e181ae6dab564992d2aa578617344a2c800c))
* Added workers ([cloudquery#6](https://github.com/cloudquery/cq-provider-cloudflare/issues/6)) ([32152d4](https://github.com/cloudquery/cq-provider-cloudflare/commit/32152d4e21ca07651e963da65933f6e623997479))


### Bug Fixes

* Cleanup ([cloudquery#16](https://github.com/cloudquery/cq-provider-cloudflare/issues/16)) ([391dc34](https://github.com/cloudquery/cq-provider-cloudflare/commit/391dc3430f182d6635af21ce212d9ef45f35cb09))
* **deps:** Update module github.com/cloudquery/cq-gen to v0.0.8 ([cloudquery#9](https://github.com/cloudquery/cq-provider-cloudflare/issues/9)) ([b62ec0d](https://github.com/cloudquery/cq-provider-cloudflare/commit/b62ec0d8742764c5541fb2501bb35f0919505148))
* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.14.7 ([cloudquery#10](https://github.com/cloudquery/cq-provider-cloudflare/issues/10)) ([7b03621](https://github.com/cloudquery/cq-provider-cloudflare/commit/7b03621fe1f6ff9cb3c1ee2780e1a07caa793993))
* Docs ([cloudquery#18](https://github.com/cloudquery/cq-provider-cloudflare/issues/18)) ([9c0c285](https://github.com/cloudquery/cq-provider-cloudflare/commit/9c0c285d3a9d2ca744cc96c60dc8eef70eb642f8))
* Remove redundant col ([cloudquery#15](https://github.com/cloudquery/cq-provider-cloudflare/issues/15)) ([d2959bb](https://github.com/cloudquery/cq-provider-cloudflare/commit/d2959bbbb07f4b2308d6072a84164d793e1c33fa))
* Updated account pagination ([cloudquery#13](https://github.com/cloudquery/cq-provider-cloudflare/issues/13)) ([ad6e6a8](https://github.com/cloudquery/cq-provider-cloudflare/commit/ad6e6a8206540e3d0823bb98783b5ca5b747c906))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
erezrokah pushed a commit that referenced this pull request Aug 14, 2022
Synced local file(s) with [cloudquery/.github](https://github.com/cloudquery/.github).





---

This PR was created automatically by the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) workflow run [#2563370092](https://github.com/cloudquery/.github/actions/runs/2563370092)
erezrokah pushed a commit that referenced this pull request Aug 14, 2022
* feat: Ignore Common Errors

* fix imports
erezrokah pushed a commit that referenced this pull request Aug 14, 2022
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
pilvikala added a commit that referenced this pull request Oct 31, 2023
kodiakhq bot pushed a commit that referenced this pull request Oct 31, 2023
This pull request was closed.
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.

None yet

1 participant