-
Notifications
You must be signed in to change notification settings - Fork 169
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
Added FP Check for validation #3335
Conversation
Looks good to me, but we will have to test this to validate. As discussed, let's use the provided test tenant to simulate and see whether we get a correct error message. |
On a second thought, I think we should adjust the error message for invalid token that the service principal couldn't be found too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good, let some comments. Maybe a good idea to turn that string into a constant to improve reuse in the future.
* Added FP Check for validation * Cloud Err to surface level backend for SP issue
Which issue this PR addresses:
Fixes https://issues.redhat.com/browse/ARO-4734
What this PR does / why we need it:
Users are getting "Internal Server Error" when they have a deleted ServicePrincipal, and we want to give them a better and more detailed response. We noticed that the SP validation checks happen that would catch this and return the right error, but FP doesn't so we are doing the same validation step for FP as well.
Test plan for issue:
Looking into ways to test this as it would require removing a SP on this branch in an INT env.