From 6a83068be231ed9fdbb822478df08483ca96741a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20M=2E=20Requena=20Plens?= Date: Sat, 3 Oct 2026 15:58:20 +0200 Subject: [PATCH] docs(search): explain which address mode on verifies [docs-only] With OC_GRPC_CLIENT_TLS_MODE=on the certificate is checked against the dialed address, which is now SEARCH_GRPC_ADDR by default. A bind address such as 0.0.0.0:9220 then fails verification unless --endpoint names a host the certificate is valid for. --- services/search/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/search/README.md b/services/search/README.md index 96bdc00c21..9f7adb0bd5 100644 --- a/services/search/README.md +++ b/services/search/README.md @@ -134,6 +134,8 @@ Please note that a reindex only picks up new or changed files. Files that have a opencloud search index --all-spaces --force-rescan ``` +The command connects to the service's gRPC address (`SEARCH_GRPC_ADDR`) unless `--endpoint` is given, with the TLS mode set in `OC_GRPC_CLIENT_TLS_MODE`. With `on`, the server certificate is verified against that address, so if `SEARCH_GRPC_ADDR` is a bind address such as `0.0.0.0:9220`, pass `--endpoint` with a host name the certificate is valid for. + ## Metrics The search service exposes the following prometheus metrics at `/metrics` (as configured using the `SEARCH_DEBUG_ADDR` env var):