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

I am Facing Authentication failed for Active Directory Tenant when attempting to publish my named value has a reference to a KV #432

Closed
vinilka8 opened this issue Dec 4, 2023 · 7 comments
Labels
question Further information is requested

Comments

@vinilka8
Copy link

vinilka8 commented Dec 4, 2023

Please describe the feature.

"Authentication failed for Active Directory Tenant: 'https://login.microsoftonline.com/***' ClientId: '########-5e10-47b0-8ef4-e1a21b95ffa2' CorrelationId: '', exception: 'An error occurred while sending the request.'.","details":null}}'.

When I am publishing the named value I facing this issue, my named value has a reference to a KV and a secret.
In APIM I see activity log, it shows an attempt to create a named value and also showing the correlationId, Erro stating that it's Null.

image

image

Copy link

github-actions bot commented Dec 4, 2023

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

@vinilka8 vinilka8 changed the title I am Facing Authentication failed for Active Directory Tenant [FEATURE REQ] [FEATURE REQ] I am Facing Authentication failed for Active Directory Tenant Dec 4, 2023
@laksharun
Copy link

I believe you need to enabled System Identity on your APIM instance and grant access to the identity to your keyvault to read the secrets.

@vinilka8
Copy link
Author

vinilka8 commented Dec 4, 2023

that has been done, same issue facing

Using slightly different configuration
image

image

@guythetechie
Copy link
Contributor

Since it looks like an authentication issue, I would suggest testing with the portal. Create a named value pointing to that Key Vault secret, and if it works, run the extractor to see the generated artifact in artifacts/named values/namedValueInformation.json. This should show you the necessary format for your configuration override.

@waelkdouh waelkdouh changed the title [FEATURE REQ] I am Facing Authentication failed for Active Directory Tenant I am Facing Authentication failed for Active Directory Tenant when attempting to publish my named value has a reference to a KV Dec 5, 2023
@waelkdouh waelkdouh added the question Further information is requested label Dec 5, 2023
@vinilka8
Copy link
Author

vinilka8 commented Dec 5, 2023

yes that was done, I have created a named value pointing to a Key Vault on DEV instance and extracted, this how it's look like
image

publishing back to DEV works absolutely perfect,
BUT
publishing to upper environment like TST, QA, or PROD, it's failing with bellow error, same as above
"Authentication failed for Active Directory Tenant: 'https://login.microsoftonline.com/***' ClientId: '7eb6ef34-5e10-47b0-8ef4-e1a21b95ffa2' CorrelationId: '', exception: 'An error occurred while sending the request.'.","details":null}}'.

we are using managed identity and it's has a full access to KV
image

@guythetechie
Copy link
Contributor

What is the application with the client ID in the error message (7eb6ef34-5e10-47b0...)? You can find it in Microsoft Entra ID ->
App Registrations -> All applications.

image

@vinilka8
Copy link
Author

vinilka8 commented Dec 6, 2023

issue is resolved, issue was on network side, thanks for help

@vinilka8 vinilka8 closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants