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

Added FP Check for validation #3335

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

carvalhe
Copy link
Contributor

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.

@nwnt
Copy link
Contributor

nwnt commented Dec 20, 2023

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.

@nwnt
Copy link
Contributor

nwnt commented Dec 21, 2023

On a second thought, I think we should adjust the error message for invalid token that the service principal couldn't be found too.

@carvalhe carvalhe added the next-release To be included in the next RP release rollout label Jan 10, 2024
Copy link
Collaborator

@s-fairchild s-fairchild left a 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.

pkg/backend/openshiftcluster.go Show resolved Hide resolved
@cadenmarchese cadenmarchese merged commit 2ac8d65 into Azure:master Feb 2, 2024
18 checks passed
@carvalhe carvalhe deleted the Terraform_detailed_logs branch February 3, 2024 00:09
@mociarain mociarain mentioned this pull request Feb 7, 2024
mociarain pushed a commit that referenced this pull request Feb 8, 2024
* Added FP Check for validation

* Cloud Err to surface level backend for SP issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next-release To be included in the next RP release rollout ready-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants