Skip to content
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

fix: fixing full path in description of policy, adding AvpPolicyDescription annotation #201

Closed
wants to merge 2 commits into from

Conversation

reste85
Copy link
Contributor

@reste85 reste85 commented Aug 5, 2024

  • Added management of a new annotation AvpPolicyDescription which can be added on top of the policy in order to provide a description for it. We're following the rules here: https://docs.cedarpolicy.com/policies/syntax-policy.html

  • Description priority is the follow:

    • If description is present in the properties --> we keep this
    • If not, we try to search the contents of AvpPolicyDescription annotation
    • If the annotation is not present we keep the basePath of file

Fixes #196

@reste85 reste85 self-assigned this Aug 5, 2024
@reste85 reste85 changed the title Fix: fixing full path in description of policy, adding AvpPolicyDescription annotation fix: fixing full path in description of policy, adding AvpPolicyDescription annotation Aug 5, 2024
@reste85 reste85 closed this Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

addPoliciesFromPath() should custom descriptions rather than file path
1 participant