Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: set policy effect deny when removing auth #13523

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

edwardfoyle
Copy link
Contributor

Description of changes

When auth is removed, set the auth and unauth role policies to deny

Issue #, if available

Description of how you validated changes

Manually verified with a local deployment. Existing tests are passing (yet to run e2e). We can write an e2e test for this, but want to get the fix out first.

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
  • Pull request labels are added

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

@edwardfoyle edwardfoyle requested a review from a team as a code owner January 9, 2024 20:33
@edwardfoyle edwardfoyle changed the base branch from dev to hotfix January 9, 2024 20:34
@edwardfoyle edwardfoyle merged commit 73b08dc into aws-amplify:hotfix Jan 9, 2024
5 of 6 checks passed
edwardfoyle added a commit that referenced this pull request Jan 10, 2024
* fix: set policy effect deny when removing auth

* fix: set policy effect deny when removing auth (#13523)

* chore(release): Publish latest

 - @aws-amplify/amplify-category-notifications@2.26.12
 - @aws-amplify/cli@12.10.1
 - @aws-amplify/cli-internal@12.10.1
 - @aws-amplify/amplify-provider-awscloudformation@8.10.2
 - @aws-amplify/amplify-util-mock@5.9.2

---------

Co-authored-by: aws-amplify-bot <aws@amazon.com>
sobolk added a commit that referenced this pull request Feb 21, 2024
…13604)

* fix: set policy effect deny when removing auth (#13523)

* chore(release): Publish latest

 - @aws-amplify/amplify-category-notifications@2.26.12
 - @aws-amplify/cli@12.10.1
 - @aws-amplify/cli-internal@12.10.1
 - @aws-amplify/amplify-provider-awscloudformation@8.10.2
 - @aws-amplify/amplify-util-mock@5.9.2

* chore: remove v10 migration tests

* chore: remove some v8 migration tests

* chore: remove some v8 migration tests

* restore that

---------

Co-authored-by: Edward Foyle <foyleef@amazon.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants