Skip to content

Conversation

@heaths
Copy link
Member

@heaths heaths commented Jan 15, 2025

Fixes #1739 similar to other languages by reading the file every 10 minutes pointed to by AZURE_FEDERATED_TOKEN_FILE.

github-merge-queue bot pushed a commit to neondatabase/neon that referenced this pull request Feb 11, 2025
…0415)

The SDK bug Azure/azure-sdk-for-rust#1739 was
originally worked around via #10378, but now upstream has provided a fix
in [this](Azure/azure-sdk-for-rust#1997) PR,
which we've been asked to test.

So this is what this PR is doing: revert #10378 (to make sure we fail if
the bug isn't fixed by the SDK PR), and apply the SDK PR to our fork.

Currently pointing to my local branch to check CI. I'd like to merge the
[SDK fork PR](neondatabase/azure-sdk-for-rust#2)
before merging this to main.
Fixes Azure#1739 similar to other languages by reading the file every 10 minutes pointed to by AZURE_FEDERATED_TOKEN_FILE.
@heaths heaths marked this pull request as ready for review February 12, 2025 01:35
@heaths heaths enabled auto-merge (squash) February 12, 2025 01:35
@heaths heaths added the blocking-release Blocks release label Feb 13, 2025
@heaths heaths merged commit beff652 into Azure:main Feb 13, 2025
26 checks passed
@heaths heaths deleted the issue1739 branch February 13, 2025 18:41
arpad-m pushed a commit to neondatabase/azure-sdk-for-rust that referenced this pull request Feb 14, 2025
* Periodically read workload identity token from file

Fixes Azure#1739 similar to other languages by reading the file every 10 minutes pointed to by AZURE_FEDERATED_TOKEN_FILE.

* Resolve PR feedback
github-merge-queue bot pushed a commit to neondatabase/neon that referenced this pull request Feb 17, 2025
The [upstream PR](Azure/azure-sdk-for-rust#1997)
has been merged with some changes to use threads with async, so apply
them to the neon specific fork to be nice to the executor (before, we
had the state as of filing of that PR). Also, rebase onto the latest
version of upstream's `legacy` branch.

current SDK commits:
[link](https://github.com/neondatabase/azure-sdk-for-rust/commits/neon-2025-02-14)
now:
[link](https://github.com/neondatabase/azure-sdk-for-rust/commits/arpad/neon-refresh)

Prior update was in #10790
bonsairobo added a commit to ForesightMiningSoftwareCorporation/azure-sdk-for-rust that referenced this pull request Jun 16, 2025
bonsairobo added a commit to ForesightMiningSoftwareCorporation/azure-sdk-for-rust that referenced this pull request Jun 16, 2025
desmondcheongzx pushed a commit to Eventual-Inc/azure-sdk-for-rust that referenced this pull request Oct 1, 2025
* Periodically read workload identity token from file

Fixes Azure#1739 similar to other languages by reading the file every 10 minutes pointed to by AZURE_FEDERATED_TOKEN_FILE.

* Resolve PR feedback
desmondcheongzx added a commit to Eventual-Inc/Daft that referenced this pull request Oct 1, 2025
…entials to continue working > 24 hours (#5299)

## Changes Made

From #5269, we know that the
azure_identity crate has a bug where AKS Workload Identity credentials
stop working ~24 hours after pod start
(Azure/azure-sdk-for-rust#1739) that's only
fixed in v0.22.0. However, from
Azure/azure-sdk-for-rust#2504 and
Azure/azure-sdk-for-rust#2635, we see that
there is no path to upgrading azure_identity because the latest
azure_storage and azure_storage_blobs crates require azure_identity and
azure_core <= 0.21.0.

The temporary escape hatch is to fork
[Azure/azure-sdk-for-rust](https://github.com/Azure/azure-sdk-for-rust)
v0.21.0 ourselves (https://github.com/Eventual-Inc/azure-sdk-for-rust),
and pull in the patch that fixes the bug
(Azure/azure-sdk-for-rust#1997). This patch
lives on branch
[`desmond/patch-azure-identity`](https://github.com/Eventual-Inc/azure-sdk-for-rust/tree/desmond/patch-azure-identity).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocking-release Blocks release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Azure Workload Identity - Expired token

4 participants