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

Update resource_type in metadata json from string to map<string>bool and accordingly modify pre scan filter #973

Open
patilpankaj212 opened this issue Aug 10, 2021 · 1 comment · Fixed by #992

Comments

@patilpankaj212
Copy link
Contributor

  • terrascan version: latest
  • Operating System: all

Description

The resource_type attribute in policy metadata json is of string type. However, a policy can validate multiple resource types, eg: kubernetes_pod policies handle multiple kubernetes object types (kubernetes_deployment, kubernetes_job etc).

This modification will help in making the pre scan filter logic better.

This was the root cause of #946 and the filtering logic is fixed temporarily.

@patilpankaj212 patilpankaj212 linked a pull request Aug 16, 2021 that will close this issue
@patilpankaj212
Copy link
Contributor Author

The commit was reverted, hence re-opening the issue.

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 a pull request may close this issue.

1 participant