Skip to content

[Enhancement] Only show errors/failures in output #425

Closed

Description

@bestickley

Is your feature request related to a problem? Please describe.

It is annoying to have to comb through the output to find failures which is the only output I'm interested in.

Describe the solution you'd like

Please provide a way to customize the CLI to only show failures.

Describe alternatives you've considered

I've tried --show-summary but it does not solve my problem.

Activity

  1. joshfried-aws commented on Dec 4, 2023

    @joshfried-aws
    Contributor

    Hi @bestickley can you elaborate a bit on what the solution you're looking for would look like? I'm not sure I fully understand what you would like to see. By default cfn-guard only shows failures. Are you looking for something that doesn't provide snippets of the template where the failure occurred?

  2. bestickley commented on Dec 4, 2023

    @bestickley
    Author

    @joshfried-aws, thanks for your response. I get hundreds of lines of:

    Rule [SECRETSMANAGER_USING_CMK] is not applicable for template [manifest.json]
    --
    Evaluation of rules secretsmanager_using_cmk.guard against data abc-sh-app-stickb-AuthnMgmtApiStage.assets.json
    --
    Rule [SECRETSMANAGER_USING_CMK] is not applicable for template [abc-sh-app-stickb-AuthnMgmtApiStage.assets.json]
    --
    Evaluation of rules secretsmanager_using_cmk.guard against data tree.json
    --
    Rule [SECRETSMANAGER_USING_CMK] is not applicable for template [tree.json]
    --
    

    even when no failures when running: cfn-guard validate --rules ../../../.cfn-guard --data cdk.out

  3. joshfried-aws commented on Dec 4, 2023

    @joshfried-aws
    Contributor

    Hi @bestickley which version of cfn-guard are you using?

  4. bestickley commented on Dec 4, 2023

    @bestickley
    Author

    @joshfried-aws,

    cfn-guard --version
    cfn-guard 3.0.2
  5. dannyvassallo commented on Feb 5, 2024

    @dannyvassallo
    Contributor

    Hello @bestickley,

    This has been fixed. Thank you for bringing this to our attention.

    Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions