Azure / Azure/AppConfiguration-JavaScriptProvider
"application/json" content type is not handled in KeyVault references
- Ngôn ngữ chính
- TypeScript
- Star
- 18
- Fork
- 13
- Merge trung bình
- 1 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 4
Mô tả
Internally AzureKeyVaultKeyValueAdapter doesn't handle ContentType property of secret value and returns naked value.
So we have dual behavior when same JSON setting stored directly or using keyvault reference with application/json content type returned as object or string.
I think problem seats at this peace of AzureKeyVaultKeyValueAdapter code
` if (client) {
// TODO: what if error occurs when reading a key vault value? Now it breaks the whole load.
const secret = await client.getSecret(secretName, { version });
return [setting.key, secret.value]; // here it returns raw value without considering secret.properties.contentType value
}
`
Thank you,
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.