Closed katze120 closed 4 years ago
Instead of adding these to all constraint templates, maybe we should add it directly to Config Validator. @briantkennedy thoughts?
If this is specific for CFT Scorecard, we could also inject it there.
Yeah, I agree with @morgante, this would be a pretty quick change in FCV and we wouldn't have to ensure that all templates have it.
I was about to file an issue for FCV when I took a look. This should already be available in the FCV violation at .resource.ancestry_path
.
@katze120 Does the above work for you or do we need to do some additional work in Scorecard to expose it?
I took a closer look at the code and actual Violation output and don't think it's already there.. raised https://github.com/forseti-security/config-validator/issues/140
This will need to be followed up with changes in scorecard and downstream integrations as location of this info will change in scorecard output.
Forseti change is also required if this info needs to go to CSCC.
This is for converging with CSPM templates, and also to make locating the violating resource easier in general.