-
Notifications
You must be signed in to change notification settings - Fork 67
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
Misleading error when credential secret is not in expected format #57
Comments
@turkenh can you confirm whether this issue is still relevant or applicable? |
@turkenf i'm pretty sure it's still the case, you can easily reproduce it by providing slightly broken credentials json |
I spent hours debugging why crossplane does not work and the azure cli |
This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as |
This issue is being closed since there has been no activity for 14 days since marking it as |
/fresh reopening until we validate otherwise |
Just checked with the latest https://marketplace.upbound.io/providers/upbound/provider-family-azure/v1.2.0/ For the broken credentials secret I get that looks clear enough:
And for the secret with malformed credentials
So the event stream is clear enough and there is no |
What problem are you facing?
Provider Azure returns a misleading error when cloud credential secret is not in the correct format.
When I have a provider config secret in the following format (couldn't remember the exact
az
command that I've used to generate it):I am seeing the following error in the MR events:
How could Official Azure Provider help solve your problem?
Produce a more user friendly error indicating that secret is not in the expected format.
FTR, expected secret needs to be generated with
az ad sp create-for-rbac --sdk-auth --role Owner --scopes /subscriptions/<id>
and should be in the following format:The text was updated successfully, but these errors were encountered: