Skip to content
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a363508
feat(): add mtls support
sandy2008 Jun 20, 2025
faba6ab
refactor(mtls): extract repeated string literals to constants in Otlp…
sandy2008 Jun 20, 2025
3044fc3
feat(): add mtls support
sandy2008 Jun 20, 2025
7368c9e
feat(): add mtls configurations for certs
sandy2008 Jun 20, 2025
c488394
fix(mtls): include filePath in FileNotFoundException for better diagn…
sandy2008 Jun 23, 2025
472205a
fix(mtls): use string.Equals to safely compare thumbprints and avoid …
sandy2008 Jun 23, 2025
2d69b7c
fix(): remove redundant comment
sandy2008 Jun 23, 2025
960037e
fix(): remove redundant comment
sandy2008 Jun 23, 2025
6226ac5
fix(): remove redundant comment
sandy2008 Jun 23, 2025
966d076
feat(): add support for client key w/ password
sandy2008 Jun 23, 2025
879cd6c
refactor(mtls): extract HttpClient default configuration to separate …
sandy2008 Jun 23, 2025
c1405cb
refactor(mtls): eliminate magic strings in OtlpMtlsHttpClientFactory
sandy2008 Jun 23, 2025
02b9240
feat(mtls): adjust error msg
sandy2008 Jun 24, 2025
6ae5efe
feat(mtls): adjust error msg
sandy2008 Jun 24, 2025
eadf9c2
feat(mtls): adjust error msg
sandy2008 Jun 24, 2025
2c759c6
chore(mtls): when mTLS file permission validation is skipped on unsup…
sandy2008 Jun 24, 2025
87633ba
chore(mtls); Remove preemptive file permission validation from mTLS
sandy2008 Jun 24, 2025
af26417
refactor(mtls): optimize mTLS HttpClient creation to reduce allocations
sandy2008 Jun 24, 2025
0bd7c5e
fix(mtls): format issue
sandy2008 Jun 24, 2025
487d517
fix(mtls): format issue
sandy2008 Jun 24, 2025
59cea03
chore(mtls): Make OtlpMtlsOptions sealed
sandy2008 Jun 24, 2025
b80cd21
fix(mtls): format issue
sandy2008 Jun 24, 2025
6e78148
fix(mtls): format issue
sandy2008 Jun 24, 2025
0fca40b
chore(README): table inline
sandy2008 Jun 24, 2025
fc25a73
fix(): clean up shipped file
sandy2008 Jun 24, 2025
c8a5a55
chore(mtls): fix README doc
sandy2008 Jun 25, 2025
464201b
chore(mtls): adjust return mtlsClient to 1-liner
sandy2008 Jun 25, 2025
ec0db21
chore(mtls): simplify new OtlpMtlsOptions()
sandy2008 Jun 25, 2025
84764e8
refactor(mtls): simplify null check and add comment for ExcludeRoot d…
sandy2008 Jun 25, 2025
3ec30f9
fix(mtls): Fix client certificate loading when ClientKeyPath is not p…
sandy2008 Jun 25, 2025
f30b6f8
chore(mtls): Improve certificate disposal in OtlpMtlsHttpClientFactory
sandy2008 Jun 25, 2025
b948ce1
fix(mtls): Add missing using Xunit statements to mTLS test files
sandy2008 Jun 25, 2025
3d75694
fix(mtls): suppress SYSLIB0057 warnings in certificate loading code
sandy2008 Jun 25, 2025
4d8b83e
fix(mtls): fix test
sandy2008 Jun 25, 2025
3611145
chore(): replace #if NET
sandy2008 Jun 25, 2025
3f7a6bb
chore(mtls): remove needless pragma warning restore SYSLIB0057
sandy2008 Jun 25, 2025
6135c33
fix(): Remove support for client key password and certificate revocat…
sandy2008 Jun 25, 2025
e8f122f
Merge branch 'main' into main
sandy2008 Jul 12, 2025
cabc172
Merge branch 'main' into main
sandy2008 Aug 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,74 @@ void IConfigurationExtensionsLogger.LogInvalidConfigurationValue(string key, str
{
this.InvalidConfigurationValue(key, value);
}

#if NET8_0_OR_GREATER
[Event(26, Message = "{0} loaded successfully from '{1}'.", Level = EventLevel.Informational)]
internal void MtlsCertificateLoaded(string certificateType, string filePath) =>
this.WriteEvent(26, certificateType, filePath);

[Event(27, Message = "Failed to load {0} from '{1}'. Error: {2}", Level = EventLevel.Error)]
internal void MtlsCertificateLoadFailed(
string certificateType,
string filePath,
string error) => this.WriteEvent(27, certificateType, filePath, error);

[Event(28, Message = "{0} file not found at path: '{1}'.", Level = EventLevel.Error)]
internal void MtlsCertificateFileNotFound(string certificateType, string filePath) =>
this.WriteEvent(28, certificateType, filePath);

[Event(
29,
Message = "File permission check failed for {0} at '{1}'. Error: {2}",
Level = EventLevel.Warning)]
internal void MtlsFilePermissionCheckFailed(
string certificateType,
string filePath,
string error) => this.WriteEvent(29, certificateType, filePath, error);

[Event(
30,
Message = "File permission warning for {0} at '{1}': {2}",
Level = EventLevel.Warning)]
internal void MtlsFilePermissionWarning(
string certificateType,
string filePath,
string warning) => this.WriteEvent(30, certificateType, filePath, warning);

[Event(
31,
Message = "{0} chain validation failed for certificate '{1}'. Errors: {2}",
Level = EventLevel.Error)]
internal void MtlsCertificateChainValidationFailed(
string certificateType,
string subject,
string errors) => this.WriteEvent(31, certificateType, subject, errors);

[Event(
32,
Message = "{0} chain validated successfully for certificate '{1}'.",
Level = EventLevel.Informational)]
internal void MtlsCertificateChainValidated(string certificateType, string subject) =>
this.WriteEvent(32, certificateType, subject);

[Event(
33,
Message = "Server certificate validated successfully for '{0}'.",
Level = EventLevel.Informational)]
internal void MtlsServerCertificateValidated(string subject) => this.WriteEvent(33, subject);

[Event(
34,
Message = "Server certificate validation failed for '{0}'. Errors: {1}",
Level = EventLevel.Error)]
internal void MtlsServerCertificateValidationFailed(string subject, string errors) =>
this.WriteEvent(34, subject, errors);

[Event(
35,
Message = "mTLS configuration enabled. Client certificate: '{0}'.",
Level = EventLevel.Informational)]
internal void MtlsConfigurationEnabled(string clientCertificateSubject) =>
this.WriteEvent(35, clientCertificateSubject);
#endif
}
Loading