Skip to content

Fix ownership check#188

Merged
linglingye001 merged 2 commits into
release/v2.6.5from
linglingye/fix-ownership-check
Jul 17, 2026
Merged

Fix ownership check#188
linglingye001 merged 2 commits into
release/v2.6.5from
linglingye/fix-ownership-check

Conversation

@linglingye001

@linglingye001 linglingye001 commented Jul 17, 2026

Copy link
Copy Markdown
Member

There's an issue in verifyExistingTargetObject in utils.go:202, which authorized adoption/overwrite of a pre-existing target ConfigMap/Secret using only ownerRef.Name == providerName. This let a foreign owner reference (e.g. Deployment/frontend or Certificate/payments-cert) authorize a same-named AzureAppConfigurationProvider to overwrite the Secret's data.

Fix — the ownership check now requires the owner reference to fully identify the same provider:

APIVersion matches azconfig.io/v1 (acpv1.GroupVersion.String())
Kind matches AzureAppConfigurationProvider (the existing ProviderName constant)
Name matches the provider name
UID matches the provider's UID (also rejects a stale/recreated provider with the same name)

@linglingye001
linglingye001 merged commit b2d0773 into release/v2.6.5 Jul 17, 2026
3 checks passed
@linglingye001
linglingye001 deleted the linglingye/fix-ownership-check branch July 17, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants