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

feat: allow subscriptions to inherit primary model auth rules for relational fields behind a feature flag #2649

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

sundersc
Copy link
Contributor

Description of changes

Allow subscriptions to inherit primary model auth rules for relational fields if subscriptionsInheritPrimaryAuth is set to true.

CDK / CloudFormation Parameters Changed

NA

Issue #, if available

TODO: To be updated later.

Description of how you validated changes

  • New E2E tests
  • New unit tests
  • Manual testing

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Any CDK or CloudFormation parameter changes are called out explicitly

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

@sundersc sundersc requested review from a team as code owners June 21, 2024 05:06
phani-srikar
phani-srikar previously approved these changes Jun 21, 2024
Copy link
Member

@palpatim palpatim left a comment

Choose a reason for hiding this comment

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

Please adjust doc comments for feature flag and link to published docs explaining the behavior

Comment on lines 431 to 432
* When disabled, relational fields on the mutation response are over-redacted to protect the data from subscribed users
* to correctly apply the auth rules.
Copy link
Member

Choose a reason for hiding this comment

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

Suggest something like:

   * When enabled, suppresses default behavior of redacting relational fields when auth rules do not exactly match.
   * See <link to doc update>

Copy link
Contributor Author

@sundersc sundersc Jun 22, 2024

Choose a reason for hiding this comment

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

Updated the comment. Doc update isn't ready, will update once we have the docs update published.

Comment on lines 533 to 534
* When disabled, relational fields on the mutation response are over-redacted to protect the data from subscribed users
* to correctly apply the auth rules.
Copy link
Member

Choose a reason for hiding this comment

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

Suggest something like:

   * When enabled, suppresses default behavior of redacting relational fields when auth rules do not exactly match.
   * See <link to doc update>

Copy link
Contributor Author

@sundersc sundersc Jun 22, 2024

Choose a reason for hiding this comment

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

Updated the comment. Doc update isn't ready, will update once we have the docs update published.

@sundersc sundersc merged commit 56a853a into aws-amplify:main Jun 24, 2024
4 checks passed
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.

None yet

3 participants