Skip to content

Commit c0aead9

Browse files
committed
Renable encryption for linux container environment
1 parent a461f56 commit c0aead9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/WebJobs.Script.WebHost/Security/KeyManagement/DefaultKeyValueConverterFactory.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,8 @@ public DefaultKeyValueConverterFactory(bool allowEncryption)
2323

2424
private static bool IsEncryptionSupported()
2525
{
26-
if (SystemEnvironment.Instance.IsLinuxContainerEnvironment())
27-
{
28-
// TEMP: https://github.com/Azure/azure-functions-host/issues/3035
29-
return false;
30-
}
31-
3226
return SystemEnvironment.Instance.IsAppServiceEnvironment() ||
27+
SystemEnvironment.Instance.IsLinuxContainerEnvironment() ||
3328
SystemEnvironment.Instance.GetEnvironmentVariable(AzureWebsiteLocalEncryptionKey) != null;
3429
}
3530

src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<PackageReference Include="Microsoft.Azure.WebJobs.Host.Storage" Version="3.0.11" />
5858
<PackageReference Include="Microsoft.Azure.WebJobs.Logging" Version="3.0.11" />
5959
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.3" />
60-
<PackageReference Include="Microsoft.Azure.WebSites.DataProtection" Version="2.1.88-alpha" />
60+
<PackageReference Include="Microsoft.Azure.WebSites.DataProtection" Version="2.1.91-alpha" />
6161
<PackageReference Include="System.Net.Primitives" Version="4.3.0" />
6262
<PackageReference Include="WindowsAzure.Storage" Version="9.3.1" />
6363
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta004">

0 commit comments

Comments
 (0)