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

Check that action scope constriant do not contain non-actions entities in EST #943

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

john-h-kastner-aws
Copy link
Contributor

Description of changes

Backwards compatible if we are happy to call this a bug fix

Issue #, if available

#925

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

  • A backwards-compatible change requiring a minor version bump to cedar-policy (e.g., addition of a new API).

I confirm that this PR (choose one, and delete the other options):

  • Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).

I confirm that cedar-spec (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.

@john-h-kastner-aws john-h-kastner-aws changed the title Check that action scope constriant contains actions entities in EST Check that action scope constriant do not contain non-actions entities in EST May 31, 2024

/// Check that all of the EUIDs in an action constraint have the type
/// `Action`, under an arbitrary namespace.
pub fn contains_only_action_types(self) -> Result<Self, NonEmpty<Arc<EntityUID>>> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self to &self and NonEmpty<Arc<EntityUID>> to NonEmpty<&EntityUid>?

Copy link
Contributor

@khieta khieta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@john-h-kastner-aws john-h-kastner-aws merged commit e11732f into main Jun 4, 2024
16 checks passed
@john-h-kastner-aws john-h-kastner-aws deleted the fix_925 branch June 5, 2024 20:17
@aaronjeline aaronjeline mentioned this pull request Aug 2, 2024
3 tasks
khieta pushed a commit that referenced this pull request Aug 9, 2024
khieta added a commit that referenced this pull request Aug 9, 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.

EST parser does not error for action constriant with non-action entity type
3 participants