-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[BUG] Azure Container App SDK - Patch (Update) operation erroneously sends empty secret values, makes update via SDK impossible #35004
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
We are facing the same problem. Although we could re-wrap the Rest API our self it would make this SDK pointless. It would be very appreciated if the SDK could offer the same capabilities as the Rest API. |
Is there any update on this? This is pretty significant defect with no update in several months. |
Hi @derSchtefan @groogiam , Thank you for using Azure SDK for .NET.
|
Hi @derSchtefan. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Hi @derSchtefan, since you haven’t asked that we |
Library name and version
Azure.ResourceManager.AppContainers 1.0.2
Describe the bug
When an Azure Container App contains secrets (in our case: the container registry password),
when using the SDK to update the container image tag in the template
the SDK tries to send a PATCH request containing empty secrets in the configuration property, which will trigger an error like:
Invalid Request: Container app secret(s) with name(s) 'secret1, secret2' are invalid: value or keyVaultUrl and identity should be provided.
secret1
andsecret2
are secrets defined on the appUsing the REST api manually works as expected:
The SDK should not send back the
properties.configuration.secrets
array in a PATCH, unless the secrets have been changed (because the secrets array after a GET does not contain all information).Ideally the SDK would not touch properties.configuration at all, if only the template or image tags in it are touched.
Expected behavior
The SDK does not send the
properties.configuration.secrets
array, and the request is accepted with HTTP 202 (like when doing it manually via REST)Actual behavior
The SDK sends an invalid (half-filled) secrets array, leading to
Invalid Request: Container app secret(s) with name(s) 'secret1, secret2' are invalid: value or keyVaultUrl and identity should be provided.
Reproduction Steps
Use
Azure.ResourceManager.AppContainers
v1.0.2Use this code:
Environment
Azure Container Apps
Azure.ResourceManager.AppContainers 1.0.2
The text was updated successfully, but these errors were encountered: