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

Implement #1139 #1150

Merged
Merged

Conversation

shaobo-he-aws
Copy link
Contributor

@shaobo-he-aws shaobo-he-aws commented Aug 26, 2024

Description of changes

This PR eagerly disallows common type declarations with names specified by #1139. That is, Cedar forbids schemas with such declarations even though they are never referenced.

Issue #, if available

Checklist for requesting a review

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

  • A breaking change requiring a major version bump to cedar-policy (e.g., changes to the signature of an existing 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.

Signed-off-by: Shaobo He <shaobohe@amazon.com>
@shaobo-he-aws shaobo-he-aws linked an issue Aug 26, 2024 that may be closed by this pull request
2 tasks
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
cedar-policy-validator/src/json_schema.rs Outdated Show resolved Hide resolved
cedar-policy-validator/src/json_schema.rs Outdated Show resolved Hide resolved
cedar-policy-validator/src/schema.rs Outdated Show resolved Hide resolved
cedar-policy-validator/src/schema.rs Show resolved Hide resolved
cedar-policy-validator/src/schema.rs Show resolved Hide resolved
shaobo-he-aws and others added 6 commits August 27, 2024 10:39
Co-authored-by: Craig Disselkoen <cdiss@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>
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 shaobo-he-aws merged commit 1de921e into main Aug 28, 2024
18 of 19 checks passed
@shaobo-he-aws shaobo-he-aws deleted the 1139-more-restrictions-on-type-shadowing-collisions branch August 28, 2024 16:33
@khieta khieta mentioned this pull request Aug 29, 2024
oflatt pushed a commit to oflatt/cedar that referenced this pull request Aug 29, 2024
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Co-authored-by: Craig Disselkoen <cdiss@amazon.com>
oflatt pushed a commit to oflatt/cedar that referenced this pull request Aug 29, 2024
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Co-authored-by: Craig Disselkoen <cdiss@amazon.com>
Signed-off-by: oflatt <oflatt@gmail.com>
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.

More restrictions on type shadowing / collisions
3 participants