Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Return all policy validation errors on parse failure #29

Description

@micahlee

The policy parser currently errors and returns the first policy error encountered. We should evaluate the feasibility of returning all detectable violations in a policy document at once on failure to support fixing more than one at a time.

See as an example: https://github.com/cyberark/conjur-policy-parser/pull/28/files#diff-96c32d844ea28af01851870a8cf2454b

- !host
  id: a-host
  restricted_to: [ first_invalid_cidr, second_invalid_cidr ]

Currently this only fails with:

Error at ... Invalid IP address or CIDR range 'first_invalid_cidr'

Ideally this would fail with:

Error at ... Invalid IP address or CIDR range 'first_invalid_cidr'
Error at ... Invalid IP address or CIDR range 'second_invalid_cidr'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions