-
Notifications
You must be signed in to change notification settings - Fork 507
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
Failed to run prepared query error in opa/engine.go #709
Comments
seeing these warnings on Ubuntu and Windows @jlk @kanchwala-yusuf @amirbenv |
it looks like a policy issue to me. @gaurav-gogia @harkirat22 @Avanti19 @shreyas-phansalkar-189 can anyone of you have a look at the policy file mentioned the error description? |
@dev-gaur yes, looking into it |
Configuration:
Unable to reproduce the issue on my end with the provided terraform file. Please share if any more terraform files or terrascan config files are being used. |
@henrychoi7 i see your main.tf consumes modules "security_group" and "ec2" .. which do get scanned as well. is it possible for you to share a .tar or zip archive with the whole directory structure being scanned? fill dummy strings in place of sensitive values |
@gaurav-gogia @dev-gaur Sure. This is the whole directory archive. I still get the warning on these working files. Thank you for your help. |
The warning message occurs due to a limitation of terrascan in reference resolutions. To stop annoying users with this warning message, we're chaning the log level of this message to |
Description
I was trying to test it on my Terraform code but an error keeps occur every moment when I execute it. I think it should be going without any errors, but every code I test it with makes the same error.
2021-04-29T16:53:45.436+0900 warn opa/engine.go:346 failed to run prepared query{error 26 0 hardCodedShellScript:22: eval_builtin_error: base64.decode: illegal base64 data at input byte 0} {rule 15 0 'AWS.LaunchConfiguration.DataSecurity.High.0101' <nil>} {file 15 0 hardCodedShellScript.rego <nil>}
What I Did
Example Terraform:
Below is the actual command and the error message. I tried installing with
brew
, manual build and Docker but it all made the same error.The text was updated successfully, but these errors were encountered: