grpc/test/cpp/end2end/xds
Mark D. Roth 2395bb1b86 [xDS] fix "tls" channel cred in bootstrap to actually work (#36726)
This fixes a fairly embarrassing bug and lack of testing from #33234.  Prior to this fix, attempting to use the "tls" creds type would always cause a crash.

@gtcooke94 @matthewstevenson88 Note that the root cause of this bug was that when I wrote this code, I assumed that `grpc_tls_credentials_options` had a reasonable default for the cert verifier.  But it turns out that it doesn't do that directly; instead, we are only imposing that default in [`CredentialOptionSanityCheck()`](621aa4e5ce/src/core/lib/security/credentials/tls/tls_credentials.cc (L85)), which is called only when we call [`grpc_tls_credentials_create()`](621aa4e5ce/src/core/lib/security/credentials/tls/tls_credentials.cc (L160)), not when we directly instantiate `TlsCredentials` as my code was doing.  As part of the TlsCreds API cleanup you're working on, we should fix this so that callers get the right behavior even if they are internal callers that instantiate the TlsCreds object directly rather than calling the C-core API.

Closes #36726

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36726 from markdroth:xds_bootstrap_mtls_creds_fix dac2789e10
PiperOrigin-RevId: 637993734
2024-05-28 13:00:28 -07:00
..
BUILD [xDS] fix "tls" channel cred in bootstrap to actually work (#36726) 2024-05-28 13:00:28 -07:00
xds_cluster_end2end_test.cc [reorg] move telemetry code to src/core/telemetry (#36644) 2024-05-23 15:54:07 -07:00
xds_cluster_type_end2end_test.cc [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36677) 2024-05-21 08:03:45 -07:00
xds_core_end2end_test.cc [xDS] fix "tls" channel cred in bootstrap to actually work (#36726) 2024-05-28 13:00:28 -07:00
xds_credentials_end2end_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
xds_csds_end2end_test.cc [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36678) 2024-05-22 21:59:06 -07:00
xds_end2end_test.cc [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36678) 2024-05-22 21:59:06 -07:00
xds_end2end_test_lib.cc [xDS] fix "tls" channel cred in bootstrap to actually work (#36726) 2024-05-28 13:00:28 -07:00
xds_end2end_test_lib.h [xDS] fix "tls" channel cred in bootstrap to actually work (#36726) 2024-05-28 13:00:28 -07:00
xds_fallback_end2end_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
xds_fault_injection_end2end_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
xds_outlier_detection_end2end_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
xds_override_host_end2end_test.cc [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36678) 2024-05-22 21:59:06 -07:00
xds_pick_first_end2end_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
xds_ring_hash_end2end_test.cc [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36550) 2024-05-08 21:40:59 -07:00
xds_rls_end2end_test.cc [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
xds_routing_end2end_test.cc [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36678) 2024-05-22 21:59:06 -07:00
xds_server.cc [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36677) 2024-05-21 08:03:45 -07:00
xds_server.h [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36550) 2024-05-08 21:40:59 -07:00
xds_utils.cc [xDS] fix "tls" channel cred in bootstrap to actually work (#36726) 2024-05-28 13:00:28 -07:00
xds_utils.h [xDS] fix "tls" channel cred in bootstrap to actually work (#36726) 2024-05-28 13:00:28 -07:00
xds_wrr_end2end_test.cc [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36678) 2024-05-22 21:59:06 -07:00