-
Notifications
You must be signed in to change notification settings - Fork 237
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
Find a REST api to return the supported resource types can be used in IAMPolicy's resourceRef #587
Comments
Hi @patrickchense , unfortunately there is no REST API which returns this list of IAM supported resource types in Config Connector. This list is due to a limitation of Config Connector but not GCP IAM Policy. At the same time, we are actively working on supporting IAM policy for more resources. If the lack of IAM support for certain resource is a blocker to you, please share more details on the resources, so I can bring this to attention internally and expedite the process. |
Hi @patrickchense , also if possible could you please share more context on the check you are trying to add so we might be able to better help you? Are you trying to create custom rules using tools like config-lint, before applying YAML files? Additionally, please note that Config Connector does have webhook which will error out and reject unsupported resource types, if they are found in resourceRef of IAM Policy. But I assume that does not meet your requirement and you expect the check/failure to happen earlier? |
Hi @diviner524, thanks for the explanation, we do want the check to happen earlier.
This inconsistency between preview and apply causes our users a lot of pain, so we're trying to add some validation piece by piece, starting from checking if the So my followup questions are, does the KCC team have plans to improve this, if we want to add those checks ourselves, is there a better way than hard-code all the supported resource types and roles in our logic? |
Hi @patrickchense, gotcha. Have you tried using |
@jcanseco sorry I didn't notice the updates. To answer the question, we use We have a similar request coming from our users about IAM again. The user set
Is there any updates for this type of misconfiguration to be caught earlier? Some Google APIs we can use to detect the error would be nice, we really don't want to hard-code the validation logic. |
Hi, I know a group of supported resource types can be used in IAMPolicy's
spec.resourceRef
field lists in the documentation. Since config connector doesn't provide a dry-run check for theresourceRef
, we want to add a check ourselves.But I cannot find a REST API to return the list anywhere, so I have to hard-code the whole list and carry the maintain burden if KCC updates it.
So my question is, is there a REST API somewhere I can use?
Thanks
The text was updated successfully, but these errors were encountered: