grpc/test/cpp
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
..
client [reorg] move src/core/lib/gpr -> src/core/util (#36543) 2024-05-15 16:32:20 -07:00
cocoapods [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
codegen [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
common [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36678) 2024-05-22 21:59:06 -07:00
end2end [xDS] fix "tls" channel cred in bootstrap to actually work (#36726) 2024-05-28 13:00:28 -07:00
ext [reorg] move lib/json -> util/json (#36645) 2024-05-23 19:51:49 -07:00
grpclb [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
interop Use LOG_IF(FATAL, ...) instead of gpr_assertion_failed() in interop_client.cc 2024-05-23 20:48:30 -07:00
microbenchmarks [reorg] move telemetry code to src/core/telemetry (#36644) 2024-05-23 15:54:07 -07:00
naming [reorg] move telemetry code to src/core/telemetry (#36644) 2024-05-23 15:54:07 -07:00
performance [reorg] move telemetry code to src/core/telemetry (#36644) 2024-05-23 15:54:07 -07:00
qps [reorg] move telemetry code to src/core/telemetry (#36644) 2024-05-23 15:54:07 -07:00
security [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
server [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36636) 2024-05-17 20:10:09 -07:00
test [reorg] move test/core/util -> test/core/test_util (#36446) 2024-04-29 17:06:40 -07:00
thread_manager [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging - gpr_log (#36678) 2024-05-22 21:59:06 -07:00
util [reorg] move lib/json -> util/json (#36645) 2024-05-23 19:51:49 -07:00
README-iOS.md Refactor end2end tests to exercise each EventEngine (#29202) 2022-03-30 15:43:05 -07:00