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

Entity slicing with manifest #1239

Merged
merged 46 commits into from
Nov 14, 2024
Merged

Conversation

shaobo-he-aws
Copy link
Contributor

@shaobo-he-aws shaobo-he-aws commented Sep 27, 2024

Description of changes

Issue #, if available

Checklist for requesting a review

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

  • A change (breaking or otherwise) that only impacts unreleased or experimental code.

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):

  • Requires updates, and I have made / will make these updates myself. (Please include in your description a timeline or link to the relevant PR in cedar-spec, and how you have tested that your updates are correct.)

I confirm that docs.cedarpolicy.com (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar language specification.

Signed-off-by: oflatt <oflatt@gmail.com>

fix up after rebase

Signed-off-by: oflatt <oflatt@gmail.com>

more bad rebase cleanup

Signed-off-by: oflatt <oflatt@gmail.com>

more small cleanup

Signed-off-by: oflatt <oflatt@gmail.com>

some cleanup

Signed-off-by: oflatt <oflatt@gmail.com>

separate entity slicing from manifest file

Signed-off-by: oflatt <oflatt@gmail.com>

remove simple entity loader for now

Signed-off-by: oflatt <oflatt@gmail.com>

exhaustive

Signed-off-by: oflatt <oflatt@gmail.com>

fix up testing infra with feature flag

Signed-off-by: oflatt <oflatt@gmail.com>

nits

Signed-off-by: oflatt <oflatt@gmail.com>

fix up should panic

Signed-off-by: oflatt <oflatt@gmail.com>

remove use of panic from testing infra

Signed-off-by: oflatt <oflatt@gmail.com>

nits

Signed-off-by: oflatt <oflatt@gmail.com>

entity manifest cfg

Signed-off-by: oflatt <oflatt@gmail.com>

make errors more reusable

Signed-off-by: oflatt <oflatt@gmail.com>

revert cedar testing changes

Signed-off-by: oflatt <oflatt@gmail.com>

fmt

Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
Signed-off-by: oflatt <oflatt@gmail.com>
oflatt and others added 3 commits September 16, 2024 12:36
Signed-off-by: oflatt <oflatt@gmail.com>
…tated' into feature/entity-slicing-with-manifest
@shaobo-he-aws shaobo-he-aws changed the title Feature/entity slicing with manifest Entity slicing with manifest Sep 27, 2024
@oflatt
Copy link
Contributor

oflatt commented Oct 7, 2024

What's the plan on making it compatible with entity tags?
I suggest making the two features incompatible for now

…g-with-manifest

Signed-off-by: Shaobo He <shaobohe@amazon.com>
@shaobo-he-aws
Copy link
Contributor Author

What's the plan on making it compatible with entity tags? I suggest making the two features incompatible for now

Entity tags has been a released feature. So, we will temporary make entity manifest error on policies using entity tags.

Signed-off-by: Shaobo He <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
shaobo-he-aws and others added 2 commits November 12, 2024 11:22
Co-authored-by: Andrew Wells <130512013+andrewmwells-amazon@users.noreply.github.com>
…g-with-manifest

Signed-off-by: Shaobo He <shaobohe@amazon.com>
cedar-policy-validator/src/entity_manifest.rs Outdated Show resolved Hide resolved
cedar-policy-validator/src/entity_manifest.rs Outdated Show resolved Hide resolved
cedar-policy-validator/src/entity_manifest/slicing.rs Outdated Show resolved Hide resolved
cedar-policy-validator/src/entity_manifest/slicing.rs Outdated Show resolved Hide resolved
cedar-policy-validator/src/entity_manifest/slicing.rs Outdated Show resolved Hide resolved
cedar-policy-validator/src/entity_manifest/slicing.rs Outdated Show resolved Hide resolved
@john-h-kastner-aws
Copy link
Contributor

also, can you confirm that you've looked into the details of the SemVer Checks failure? it's presumably behind a feature flag, but we should be sure of that

shaobo-he-aws and others added 2 commits November 13, 2024 14:50
Co-authored-by: John Kastner <130772734+john-h-kastner-aws@users.noreply.github.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
@shaobo-he-aws
Copy link
Contributor Author

also, can you confirm that you've looked into the details of the SemVer Checks failure? it's presumably behind a feature flag, but we should be sure of that

Yes. I looked into it. This PR removed an enum variant which is under the feature flag. So it should be a false alarm.

@shaobo-he-aws shaobo-he-aws merged commit 82fd3b7 into main Nov 14, 2024
18 of 19 checks passed
@shaobo-he-aws shaobo-he-aws deleted the feature/entity-slicing-with-manifest branch November 14, 2024 18:46
@john-h-kastner-aws john-h-kastner-aws mentioned this pull request Jan 9, 2025
14 tasks
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.

4 participants