Skip to content

Commit 8a37916

Browse files
committed
fix: address code review comment
Link the SANs RFC section in the comments. Signed-off-by: Dimitar Mavrodiev <dmavrodiev@gmail.com>
1 parent dff7abe commit 8a37916

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/gatewayapi/tls.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ func parseCertsFromTLSSecretsData(secrets []*corev1.Secret) ([]*corev1.Secret, [
125125
}
126126

127127
// Check uniqueness for each domain in the certificate with this algorithm
128+
// Dedupe SANs within this single cert first - RFC 5280 4.2.1.6 permits
129+
// repeated entries in a GeneralNames sequence
128130
seenDomains := sets.New[string]()
129131
hasConflictDomainAlgorithm := false
130132
for _, domain := range certDomains {

0 commit comments

Comments
 (0)