Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Handle key and secret permissions errors #612

Merged
merged 2 commits into from
Dec 5, 2023
Merged

Conversation

Gonzalo-Avalos-Ribas
Copy link
Contributor

@Gonzalo-Avalos-Ribas Gonzalo-Avalos-Ribas commented Dec 5, 2023

"RestError: AKV10032: Invalid issuer. Expected one of https://sts.windows.net/5ae1af62-9505-4097-a69a-c1553ef7840e/, https://sts.windows.net/f8cdef31-a31e-4b4a-93e4-5f571e91255a/, https://sts.windows.net/e2d54eb5-3869-4f70-8578-dee5fc7331f4/, found https://sts.windows.net/e5385570-36f1-4d50-aaf8-db2f87aa884a/. \n[...]"

We are requesting the keys with the wrong tenant/application. All of our integrations are single tenant based, so it would be impossible to ingest!

@Gonzalo-Avalos-Ribas Gonzalo-Avalos-Ribas requested a review from a team as a code owner December 5, 2023 14:13
@Gonzalo-Avalos-Ribas Gonzalo-Avalos-Ribas added patch Increment the patch version when merged release Create a release when this pr is merged labels Dec 5, 2023
Comment on lines +68 to +71
this.logger.publishWarnEvent({
name: IntegrationWarnEventName.MissingEntity,
description: `This tenant/application is not allowed to access keys for vault ${vaultUri}`,
});
Copy link
Contributor

Choose a reason for hiding this comment

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

If line 44 throws, does it continue the loop or does it end the loop? Are we skipping just one or ending the whole step?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's ending the loop ! we are skipping all the keys or secrets for that keyvault.
But we continue iterating other vaults

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. So this logs message only prints once. LGTM 👍

@Gonzalo-Avalos-Ribas Gonzalo-Avalos-Ribas merged commit d8ccba2 into main Dec 5, 2023
7 checks passed
@Gonzalo-Avalos-Ribas Gonzalo-Avalos-Ribas deleted the INT-10054-3 branch December 5, 2023 14:27
@j1-internal-automation
Copy link
Collaborator

🚀 PR was released in v5.54.5 🚀

@j1-internal-automation j1-internal-automation added the released This issue/pull request has been released. label Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants