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

Add required for service resolved condition keys #2288

Merged
merged 3 commits into from
Jun 3, 2024
Merged

Conversation

kstich
Copy link
Contributor

@kstich kstich commented May 15, 2024

Background

  • What do these changes do?

    1. Adds a required property to the definitions provided in @aws.iam#defineConditionKeys.
    2. Updates the related documentation.
  • Why are they important?

    • They define whether a condition key MUST be filled by the service prior to performing authorization, simplifying authorization code.

Testing

  • How did you test these changes?
    • Added new test cases.

Based on #2183


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

0xjjoyy and others added 2 commits May 14, 2024 23:03
Adds the `required` property to `@defineConditionKeys` to be used when
a condition key MUST be resolved by the service. Request resolved keys
MUST use the `@required` trait.
This commit refactors the validation for this property and fixes several
bugs with it: It uses the ConditionKeyIndex, checks for keys defined within
a single services, and checks all keys defined in the trait instead of just
the first.

Several other minor patches to the previous commit are also applied.
@kstich kstich requested a review from a team as a code owner May 15, 2024 07:03
@kstich kstich requested a review from milesziemer May 15, 2024 07:03
@kstich kstich changed the title Required property Add required for service resolved condition keys May 15, 2024
@kstich kstich merged commit 4358463 into main Jun 3, 2024
14 checks passed
@kstich kstich deleted the required-property branch June 3, 2024 18:01
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.

3 participants