Improve documentation on custom Rego policy for 'unsupported' resources #5781
brsolomon-deloitte
started this conversation in
Documentation
Replies: 1 comment
-
@AnaisUrlichs @simar7 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The Trivy documentation around how to write custom Rego policies, or otherwise how to contribute back to Trivy to write any required Go modules, would be useful for resources that are not currently supported by
trivy config
.For example: we would like to write a custom
.rego
that checks Terraformaws_ec2_client_vpn_endpoint
and verifies that, if anyaws_ec2_client_vpn_endpoint
is provisioned, the argumentclient_login_banner_options.enabled
is set totrue
and the argumentclient_login_banner_options.banner_text
is a non-empty string.link=https://aquasecurity.github.io/trivy/v0.48/docs/scanner/misconfiguration/custom/
We see that AWS Client VPN does not appear to be a supported resource currently as it is not present at
cloud.json
or in the AWS provider.Link
https://aquasecurity.github.io/trivy/v0.48/docs/scanner/misconfiguration/custom/
Suggestions
Beta Was this translation helpful? Give feedback.
All reactions