Skip to content

[Fix] IAM: Make agency AK/SK reauth thread-safe#962

Merged
otc-zuul[bot] merged 1 commit into
develfrom
aksk_race_fix
Jul 9, 2026
Merged

[Fix] IAM: Make agency AK/SK reauth thread-safe#962
otc-zuul[bot] merged 1 commit into
develfrom
aksk_race_fix

Conversation

@artem-lifshits

Copy link
Copy Markdown
Member

What this PR does / why we need it

Follow-up to #955.
Fixes the data race raised in review: ReauthFunc (authWithAgencyByAKSK) rewrites client.AKSKAuthOptions while concurrent requests read the same fields during request signing in ProviderClient.Request with no synchronization.

Tests

=== RUN   TestAuthenticatedClientV3AgencyAKSKConcurrentReauthIsRaceFree
--- PASS: TestAuthenticatedClientV3AgencyAKSKConcurrentReauthIsRaceFree (0.30s)
PASS
ok      github.com/opentelekomcloud/gophertelekomcloud/openstack/testing        1.651s

@artem-lifshits artem-lifshits self-assigned this Jul 8, 2026
@artem-lifshits artem-lifshits marked this pull request as ready for review July 8, 2026 15:12
@artem-lifshits artem-lifshits added the gate Merge PR label Jul 9, 2026
@otc-zuul otc-zuul Bot merged commit 3b9bb89 into devel Jul 9, 2026
13 checks passed
@otc-zuul otc-zuul Bot deleted the aksk_race_fix branch July 9, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gate Merge PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants