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

fix: [sc-33835] Throw warning for malformed ACL in secured-auth-service instead of error #44

Merged

Conversation

Cwagne17
Copy link
Contributor

@Cwagne17 Cwagne17 commented Oct 7, 2024

Story details: https://app.shortcut.com/clarkcan/story/33835

Tried adopting an AWS SDK approach to error handling by having multiple classes for handling so we can do switch statements and equality checks for errors in the secured-auth-service. This way we can differentiate. Also we added a default don't throw error on validateAclArray with the options (which can be updated) this way we just get the array of ACLs back and the PDP can make the decision.

Copy link

@johngonz0 johngonz0 left a comment

Choose a reason for hiding this comment

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

nice

@johngonz0 johngonz0 self-requested a review October 7, 2024 14:30
Copy link

@johngonz0 johngonz0 left a comment

Choose a reason for hiding this comment

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

i meant to approve. Nice!

@Cwagne17 Cwagne17 merged commit e397b1f into main Oct 14, 2024
1 check passed
@Cwagne17 Cwagne17 deleted the bug/sc-33835/throw-warning-for-malformed-acl-in-secured branch October 14, 2024 13:20
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.

7 participants