tls_config_helper.go ×8

Frontier kind: Code frontier

unlabeled · c_d273ede2f5a9

13 tests · 290 LOC · 13 files · introduces 0 tests · 13 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges13 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
56 ranges290 lines · 13 files · Browse complete extent
All tests (intent)
13 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationclientData_good, clientData_certInvalid · 0 introduced LOCclientData_good, clientD…tls_config_helper.go ×2 · 4 introduced LOCtls_config_helper.go ×2caData_good, caData_good, +4 · 0 introduced LOCcaData_good, caData_good…tls_config_helper.go ×3 · 5 introduced LOCtls_config_helper.go ×3tls_config_helper.go ×1 · 2 introduced LOCtls_config_helper.go ×1tls_config_helper.go ×1 · 1 introduced LOCtls_config_helper.go ×1tls_config_helper.go ×1 · 1 introduced LOCtls_config_helper.go ×1tls_config_helper.go ×3 · 8 introduced LOCtls_config_helper.go ×3tls_config_helper.go ×2 · 8 introduced LOCtls_config_helper.go ×2tls_config_helper.go ×1 · 1 introduced LOCtls_config_helper.go ×1tls_config_helper.go ×4 · 11 introduced LOCtls_config_helper.go ×4tls_config_helper.go ×1 · 1 introduced LOCtls_config_helper.go ×1tls_config_helper.go ×1 · 3 introduced LOCtls_config_helper.go ×1tls_config_helper.go ×1 · 1 introduced LOCtls_config_helper.go ×1tls_config_helper.go ×2 · 4 introduced LOCtls_config_helper.go ×2tls_config_helper.go ×1 · 2 introduced LOCtls_config_helper.go ×1tags.go ×9 · 37 introduced LOCtags.go ×9cluster.pb.go ×2 · 200 introduced LOCcluster.pb.go ×2TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/enums/v1/cluster.pb.go · 233 LOCv1/cluster.pb.gogo.temporal.io/server/api/enums/v1/common.pb.go · 288 LOCv1/common.pb.gogo.temporal.io/server/api/enums/v1/dlq.pb.go · 211 LOCv1/dlq.pb.gogo.temporal.io/server/api/enums/v1/fairness_state.pb.go · 147 LOCv1/fairness_state.pb.gogo.temporal.io/server/api/enums/v1/nexus.pb.go · 182 LOCv1/nexus.pb.gogo.temporal.io/server/api/enums/v1/predicate.pb.go · 194 LOCv1/predicate.pb.gogo.temporal.io/server/api/enums/v1/replication.pb.go · 338 LOCv1/replication.pb.gogo.temporal.io/server/api/enums/v1/task.pb.go · 480 LOCv1/task.pb.gogo.temporal.io/server/api/enums/v1/workflow.pb.go · 299 LOCv1/workflow.pb.gogo.temporal.io/server/api/enums/v1/workflow_task_type.pb.go · 148 LOCv1/workflow_task_type.pb…go.temporal.io/server/common/auth/tls_config_helper.go · 225 LOCauth/tls_config_helper.g…go.temporal.io/server/common/log/tag/tags.go · 1039 LOCtag/tags.gogo.temporal.io/server/common/log/tag/zap_tag.go · 242 LOCtag/zap_tag.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…caData_good · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithCA/caData_goodcaData_goodcaData_signedByWrongCA · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithCA/caData_signedByWrongCAcaData_signedByWrongCAcaData_signedByWrongCAButNotEnableHostVerification · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithCA/caData_signedByWrongCAButNotEnableHostVerificationcaData_signedByWrongCABu…caFile_good · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithCA/caFile_goodcaFile_goodcaFile_signedByWrongCA · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithCA/caFile_signedByWrongCAcaFile_signedByWrongCAcaFile_signedByWrongCANotEnableHostVerification · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithCA/caFile_signedByWrongCANotEnableHostVerificationcaFile_signedByWrongCANo…certData_good · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithCA/certData_goodcertData_goodcertFile_good · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithClientCertificate/certFile_goodcertFile_goodclientData_certInvalid · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithClientCertificate/clientData_certInvalidclientData_certInvalidclientData_certNotProvided · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithClientCertificate/clientData_certNotProvidedclientData_certNotProvid…clientData_good · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithClientCertificate/clientData_goodclientData_goodclientFile_certInvalid · introduced test · go.temporal.io/server/common/auth/Test_ConnectToTLSServerWithClientCertificate/clientFile_certInvalidclientFile_certInvalidcaData_good · introduced test · go.temporal.io/server/common/auth/Test_NewTLSConfig/caData_goodcaData_goodFocused concept · tls_config_helper.go ×8 · 13 introduced LOCtls_config_helper.go ×8

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 13 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/auth/tls_config_helper.go 13 introduced LOC · 8 ranges

Open complete file

102 }
103 if caCertPool != nil {
104 > tlsConfig.RootCAs = caCertPool tls_config_helper.go
105 > }
106
107 // Load client cert
110 return nil, err
111 }
112 > if clientCert != nil { tls_config_helper.go
113 tlsConfig.Certificates = []tls.Certificate{*clientCert}
114 }
115
116 > return tlsConfig, nil tls_config_helper.go
117 }
118
158 return nil, fmt.Errorf("%w: %s (%w)", ErrTLSConfig, "unable to parse certs as PEM", err)
159 }
160 > for _, cert := range caCerts { tls_config_helper.go
161 > caCertPool.AddCert(cert)
162 > }
163 > if err != nil {
164 return nil, fmt.Errorf("%w: %s (%w)", ErrTLSConfig, "unable to load decoded CA Cert as PEM", err)
165 }
166 > return caCertPool, nil tls_config_helper.go
167 }
168 return nil, nil
176 break
177 }
178 > if block.Type != "CERTIFICATE" || len(block.Headers) != 0 { tls_config_helper.go
179 continue
180 }
181
182 > certBytes := block.Bytes tls_config_helper.go
183 > return x509.ParseCertificates(certBytes)
184 }
185 return nil, nil
214 }
215
216 > if len(certBytes) > 0 { tls_config_helper.go
217 clientCert, err := tls.X509KeyPair(certBytes, keyBytes)
218 if err != nil {