From 31bbd7278d74901005670e108c3a7a01bb1697f2 Mon Sep 17 00:00:00 2001 From: Giorgio Saez Date: Mon, 29 Apr 2024 10:30:42 -0500 Subject: [PATCH 1/2] blobconnection string changed to secureString --- azuredeploy.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azuredeploy.json b/azuredeploy.json index d549d7cc..ecd48ab6 100644 --- a/azuredeploy.json +++ b/azuredeploy.json @@ -394,7 +394,7 @@ "value": "[reference(resourceId('Microsoft.DocumentDB/databaseAccounts', parameters('cosmosDBAccountName')), '2023-04-15').documentEndpoint]" }, "cosmosDBConnectionString": { - "type": "string", + "type": "secureString", "value": "[format('AccountEndpoint={0};AccountKey={1}', reference(resourceId('Microsoft.DocumentDB/databaseAccounts', parameters('cosmosDBAccountName')), '2023-04-15').documentEndpoint, listKeys(resourceId('Microsoft.DocumentDB/databaseAccounts', parameters('cosmosDBAccountName')), '2023-04-15').primaryMasterKey)]" }, "bingServiceSearchKey": { @@ -410,8 +410,8 @@ "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts', parameters('cognitiveServiceName')), '2023-05-01').key1]" }, "blobConnectionString": { - "type": "string", + "type": "secureString", "value": "[format('DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1};EndpointSuffix=core.windows.net', parameters('blobStorageAccountName'), listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('blobStorageAccountName')), '2023-01-01').keys[0].value)]" } } -} \ No newline at end of file +} From 4b554eccde71250ef2f8b9ad62d30afc69f4e185 Mon Sep 17 00:00:00 2001 From: Giorgio Saez Date: Sun, 5 May 2024 09:15:33 -0500 Subject: [PATCH 2/2] Update credentials.env --- credentials.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/credentials.env b/credentials.env index 02ac3eaa..f1537b86 100644 --- a/credentials.env +++ b/credentials.env @@ -5,8 +5,8 @@ BING_SEARCH_URL="https://api.bing.microsoft.com/v7.0/search" BOT_DIRECT_CHANNEL_ENDPOINT="https://directline.botframework.com/v3/directline" # Demo Data (edit with your own if you want to use your own data) -BLOB_CONNECTION_STRING="BlobEndpoint=https://datasetsgptsmartsearch.blob.core.windows.net/;QueueEndpoint=https://datasetsgptsmartsearch.queue.core.windows.net/;FileEndpoint=https://datasetsgptsmartsearch.file.core.windows.net/;TableEndpoint=https://datasetsgptsmartsearch.table.core.windows.net/;SharedAccessSignature=sv=2022-11-02&ss=b&srt=sco&sp=rl&se=2026-01-03T02:11:44Z&st=2024-01-02T18:11:44Z&spr=https&sig=ngrEqvqBVaxyuSYqgPVeF%2B9c0fXLs94v3ASgwg7LDBs%3D" -BLOB_SAS_TOKEN="?sv=2022-11-02&ss=b&srt=sco&sp=rl&se=2026-01-03T02:11:44Z&st=2024-01-02T18:11:44Z&spr=https&sig=ngrEqvqBVaxyuSYqgPVeF%2B9c0fXLs94v3ASgwg7LDBs%3D" +BLOB_CONNECTION_STRING="BlobEndpoint=https://datasetsgptsmartsearch.blob.core.windows.net/;QueueEndpoint=https://datasetsgptsmartsearch.queue.core.windows.net/;FileEndpoint=https://datasetsgptsmartsearch.file.core.windows.net/;TableEndpoint=https://datasetsgptsmartsearch.table.core.windows.net/;SharedAccessSignature=sv=2022-11-02&ss=bfqt&srt=sco&sp=rwlptf&se=2025-05-05T22:12:44Z&st=2024-05-05T14:12:44Z&spr=https&sig=bHiuqs%2FphrTS5lCheNrziZtmf5Ehas64KPd80rJf%2F9E%3D" +BLOB_SAS_TOKEN="sv=2022-11-02&ss=bfqt&srt=sco&sp=rwlptf&se=2025-05-05T22:12:44Z&st=2024-05-05T14:12:44Z&spr=https&sig=bHiuqs%2FphrTS5lCheNrziZtmf5Ehas64KPd80rJf%2F9E%3D" # Edit with your own azure services values