Skip to content

Commit 199cef8

Browse files
authored
Updated Azure.Identity ver. 1.14.2 to fix security issue (#166)
1 parent 6653b9c commit 199cef8

File tree

16 files changed

+70
-55
lines changed

16 files changed

+70
-55
lines changed

src/NLog.Extensions.AzureBlobStorage/NLog.Extensions.AzureBlobStorage.csproj

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6+
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
67

7-
<Version>4.5.0</Version>
8+
<Version>4.6.0</Version>
89

910
<Description>NLog BlobStorageTarget for writing to Azure Cloud Blob Storage</Description>
1011
<Authors>jdetmar</Authors>
@@ -18,9 +19,9 @@
1819
<RepositoryUrl>https://github.com/JDetmar/NLog.Extensions.AzureStorage.git</RepositoryUrl>
1920
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2021
<PackageReleaseNotes>
21-
- Added support for authentication with a service principal using a secret. by @ssteiner
22-
- Introduced ManagedIdentityClientId to replace ClientIdentity-option
23-
- Introduced ManagedIdentityResourceId to replace ResourceIdentity-option
22+
- Updated Azure.Identity ver. 1.14.2 to fix security issue
23+
- Updated NLog ver. 5.2.5 to support build-triming
24+
- Updated Azure.Storage.Blobs ver. 12.24.1
2425

2526
Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NLog.Extensions.AzureBlobStorage/README.md
2627
</PackageReleaseNotes>
@@ -37,9 +38,9 @@ Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NL
3738
</ItemGroup>
3839

3940
<ItemGroup>
40-
<PackageReference Include="Azure.Storage.Blobs" Version="12.19.1" />
41-
<PackageReference Include="Azure.Identity" Version="1.11.4" />
42-
<PackageReference Include="NLog" Version="4.7.15" />
41+
<PackageReference Include="Azure.Storage.Blobs" Version="12.24.1" />
42+
<PackageReference Include="Azure.Identity" Version="1.14.2" />
43+
<PackageReference Include="NLog" Version="5.2.5" />
4344
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4445
</ItemGroup>
4546

src/NLog.Extensions.AzureDataTables/NLog.Extensions.AzureDataTables.csproj

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6+
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
67

7-
<Version>4.5.0</Version>
8+
<Version>4.6.0</Version>
89

910
<Description>NLog DataTablesTarget for writing to Azure Tables in Azure storage accounts or Azure Cosmos DB table API</Description>
1011
<Authors>jdetmar</Authors>
@@ -18,8 +19,9 @@
1819
<RepositoryUrl>https://github.com/JDetmar/NLog.Extensions.AzureStorage.git</RepositoryUrl>
1920
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2021
<PackageReleaseNotes>
21-
- Introduced ManagedIdentityClientId to replace ClientIdentity-option
22-
- Introduced ManagedIdentityResourceId to replace ResourceIdentity-option
22+
- Updated Azure.Identity ver. 1.14.2 to fix security issue
23+
- Updated NLog ver. 5.2.5 to support build-triming
24+
- Updated Azure.Data.Tables ver. 12.11.0
2325

2426
Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NLog.Extensions.AzureDataTables/README.md
2527
</PackageReleaseNotes>
@@ -36,9 +38,9 @@ Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NL
3638
</ItemGroup>
3739

3840
<ItemGroup>
39-
<PackageReference Include="Azure.Data.Tables" Version="12.8.3" />
40-
<PackageReference Include="Azure.Identity" Version="1.11.4" />
41-
<PackageReference Include="NLog" Version="4.7.15" />
41+
<PackageReference Include="Azure.Data.Tables" Version="12.11.0" />
42+
<PackageReference Include="Azure.Identity" Version="1.14.2" />
43+
<PackageReference Include="NLog" Version="5.2.5" />
4244
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4345
</ItemGroup>
4446

src/NLog.Extensions.AzureEventGrid/EventGridTarget.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ public Task SendEventAsync(CloudEvent cloudEvent, CancellationToken cancellation
243243
}
244244
}
245245

246+
#if NET6_0_OR_GREATER
247+
[System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("Trimming - Allow converting option-values from config", "IL2026")]
248+
#endif
246249
private CloudEvent CreateCloudEvent(LogEventInfo logEvent)
247250
{
248251
var eventDataBody = RenderLogEvent(Layout, logEvent) ?? string.Empty;

src/NLog.Extensions.AzureEventGrid/NLog.Extensions.AzureEventGrid.csproj

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6+
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
67

7-
<Version>4.5.0</Version>
8+
<Version>4.6.0</Version>
89

910
<Description>NLog EventGridTarget for writing to Azure Event Grid</Description>
1011
<Authors>jdetmar</Authors>
@@ -18,8 +19,9 @@
1819
<RepositoryUrl>https://github.com/JDetmar/NLog.Extensions.AzureStorage.git</RepositoryUrl>
1920
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2021
<PackageReleaseNotes>
21-
- Introduced ManagedIdentityClientId to replace ClientIdentity-option
22-
- Introduced ManagedIdentityResourceId to replace ResourceIdentity-option
22+
- Updated Azure.Identity ver. 1.14.2 to fix security issue
23+
- Updated NLog ver. 5.2.5 to support build-triming
24+
- Updated Azure.Messaging.EventGrid ver. 5.0.0
2325

2426
Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NLog.Extensions.AzureEventGrid/README.md
2527
</PackageReleaseNotes>
@@ -34,9 +36,9 @@ Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NL
3436
</ItemGroup>
3537

3638
<ItemGroup>
37-
<PackageReference Include="Azure.Messaging.EventGrid" Version="4.24.1" />
38-
<PackageReference Include="Azure.Identity" Version="1.11.4" />
39-
<PackageReference Include="NLog" Version="4.7.15" />
39+
<PackageReference Include="Azure.Messaging.EventGrid" Version="5.0.0" />
40+
<PackageReference Include="Azure.Identity" Version="1.14.2" />
41+
<PackageReference Include="NLog" Version="5.2.5" />
4042
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4143
</ItemGroup>
4244

src/NLog.Extensions.AzureEventHub/EventHubTarget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ private EventData CreateEventData(string partitionKey, LogEventInfo logEvent, bo
416416
try
417417
{
418418
var eventDataBody = RenderLogEvent(Layout, logEvent) ?? string.Empty;
419-
var eventData = EventHubsModelFactory.EventData(new BinaryData(EncodeToUTF8(eventDataBody)), partitionKey: partitionKey);
419+
var eventData = EventHubsModelFactory.EventData(new BinaryData(EncodeToUTF8(eventDataBody)), partitionKey: partitionKey, offsetString: null);
420420

421421
var contentType = RenderLogEvent(ContentType, logEvent) ?? string.Empty;
422422
if (!string.IsNullOrWhiteSpace(contentType))

src/NLog.Extensions.AzureEventHub/NLog.Extensions.AzureEventHub.csproj

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6+
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
67

7-
<Version>4.5.0</Version>
8+
<Version>4.6.0</Version>
89

910
<Description>NLog EventHubTarget for writing to Azure Event Hubs datastreams</Description>
1011
<Authors>jdetmar</Authors>
@@ -18,8 +19,9 @@
1819
<RepositoryUrl>https://github.com/JDetmar/NLog.Extensions.AzureStorage.git</RepositoryUrl>
1920
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2021
<PackageReleaseNotes>
21-
- Introduced ManagedIdentityClientId to replace ClientIdentity-option
22-
- Introduced ManagedIdentityResourceId to replace ResourceIdentity-option
22+
- Updated Azure.Identity ver. 1.14.2 to fix security issue
23+
- Updated NLog ver. 5.2.5 to support build-triming
24+
- Updated Azure.Messaging.EventHubs ver. 5.12.2
2325

2426
Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NLog.Extensions.AzureEventHub/README.md
2527
</PackageReleaseNotes>
@@ -35,9 +37,9 @@ Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NL
3537
</ItemGroup>
3638

3739
<ItemGroup>
38-
<PackageReference Include="Azure.Messaging.EventHubs" Version="5.11.0" />
39-
<PackageReference Include="Azure.Identity" Version="1.11.4" />
40-
<PackageReference Include="NLog" Version="4.7.15" />
40+
<PackageReference Include="Azure.Messaging.EventHubs" Version="5.12.2" />
41+
<PackageReference Include="Azure.Identity" Version="1.14.2" />
42+
<PackageReference Include="NLog" Version="5.2.5" />
4143
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4244
</ItemGroup>
4345

src/NLog.Extensions.AzureQueueStorage/NLog.Extensions.AzureQueueStorage.csproj

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6-
7-
<Version>4.5.0</Version>
6+
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
7+
<Version>4.6.0</Version>
88

99
<Description>NLog QueueStorageTarget for writing to Azure Cloud Queue Storage</Description>
1010
<Authors>jdetmar</Authors>
@@ -18,8 +18,9 @@
1818
<RepositoryUrl>https://github.com/JDetmar/NLog.Extensions.AzureStorage.git</RepositoryUrl>
1919
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2020
<PackageReleaseNotes>
21-
- Introduced ManagedIdentityClientId to replace ClientIdentity-option
22-
- Introduced ManagedIdentityResourceId to replace ResourceIdentity-option
21+
- Updated Azure.Identity ver. 1.14.2 to fix security issue
22+
- Updated NLog ver. 5.2.5 to support build-triming
23+
- Updated Azure.Storage.Queues ver. 12.22.0
2324

2425
Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NLog.Extensions.AzureQueueStorage/README.md
2526
</PackageReleaseNotes>
@@ -36,9 +37,9 @@ Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NL
3637
</ItemGroup>
3738

3839
<ItemGroup>
39-
<PackageReference Include="Azure.Storage.Queues" Version="12.17.1" />
40-
<PackageReference Include="Azure.Identity" Version="1.11.4" />
41-
<PackageReference Include="NLog" Version="4.7.15" />
40+
<PackageReference Include="Azure.Storage.Queues" Version="12.22.0" />
41+
<PackageReference Include="Azure.Identity" Version="1.14.2" />
42+
<PackageReference Include="NLog" Version="5.2.5" />
4243
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4344
</ItemGroup>
4445

src/NLog.Extensions.AzureServiceBus/NLog.Extensions.AzureServiceBus.csproj

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6+
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
67

7-
<Version>4.5.0</Version>
8+
<Version>4.6.0</Version>
89

910
<Description>NLog ServiceBusTarget for writing to Azure Service Bus Topic or Queue</Description>
1011
<Authors>jdetmar</Authors>
@@ -18,8 +19,9 @@
1819
<RepositoryUrl>https://github.com/JDetmar/NLog.Extensions.AzureStorage.git</RepositoryUrl>
1920
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2021
<PackageReleaseNotes>
21-
- Introduced ManagedIdentityClientId to replace ClientIdentity-option
22-
- Introduced ManagedIdentityResourceId to replace ResourceIdentity-option
22+
- Updated Azure.Identity ver. 1.14.2 to fix security issue
23+
- Updated NLog ver. 5.2.5 to support build-triming
24+
- Updated Azure.Messaging.ServiceBus ver. 7.20.1
2325

2426
Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NLog.Extensions.AzureServiceBus/README.md
2527
</PackageReleaseNotes>
@@ -36,9 +38,9 @@ Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NL
3638
</ItemGroup>
3739

3840
<ItemGroup>
39-
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.17.3" />
40-
<PackageReference Include="Azure.Identity" Version="1.11.4" />
41-
<PackageReference Include="NLog" Version="4.7.15" />
41+
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.20.1" />
42+
<PackageReference Include="Azure.Identity" Version="1.14.2" />
43+
<PackageReference Include="NLog" Version="5.2.5" />
4244
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4345
</ItemGroup>
4446

test/NLog.Extensions.AzureBlobStorage.Tests/NLog.Extensions.AzureBlobStorage.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

test/NLog.Extensions.AzureDataTables.Tests/NLog.Extensions.AzureDataTables.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

0 commit comments

Comments
 (0)