-
Notifications
You must be signed in to change notification settings - Fork 2.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] Secret URI not populated for App Configuration Settings using Key Vault References #20518
Comments
Thanks for the feedback, we’ll investigate asap. |
@xiangyan99 / @YalinLi0312 : Any update on this? |
@DhavalShewale Thanks for the feedback. Could you tell us where you get the content: {
'key': <key>,
'label': <label>,
'content_type': 'application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8',
'etag': <etag>,
'last_modified': <last_modified>,
'read_only': False,
'tags': {},
'secret_id': None,
'_value': '{"secret_uri": null}'
} ? SecretReferenceConfigurationSetting helps parse the value string and exposes property secret_id which is the uri you mentioned. Also it is a sub-type of ConfigurationSetting. Its value property has same semantic meaning of its parent type. Thanks. |
@xiangyan99: What I meant by content is basically the In version
The However in version |
Thank you for providing the information @DhavalShewale. We have figured out the cause. We will update the issue when we have a fix. |
@DhavalShewale sorry for the late update. We are still under discussion how to fix the bug without any data loss. :( The SDK works fine in the scenario if you save and load the ConfigSetting both using it. But if the ConfigSetting is created via portal, it does not work correctly. If your scenario is always using portal to create the setting and using client SDK to consume it, I would suggest you pinning version 1.1.1 as a work around until 1.3 is released. We will keep you posted about how the fix goes and sorry for the inconvenience. |
@DhavalShewale We have merged the fix. It will be available in next release. |
Hi @DhavalShewale. 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 “ |
Hi @DhavalShewale, since you haven’t asked that we “ |
Setup
azure-appconfiguration
1.2.0
3.8.3
Describe the bug
1.1.1
would populate theuri
for secret reference configuration invalue
field1.2.0
, a new typeSecretReferenceConfigurationSetting
was introduced. There is no field populated which could help to identify or retrieve the secretCode Snippet
Code that works on version
1.1.1
Code Output
Config returned by version
1.1.1
azure.appconfiguration._models.ConfigurationSetting
Config returned by version
1.2.0
azure.appconfiguration._models.SecretReferenceConfigurationSetting
Expected behavior
uri
for the referred secret should be populated so that it can be used to retrieve the secret value usingSecretClient
The text was updated successfully, but these errors were encountered: