From 15d0573158bd9f2605e44210288ae764ffd47c0b Mon Sep 17 00:00:00 2001 From: Elena Kolevska Date: Wed, 1 May 2024 00:44:55 +0100 Subject: [PATCH] Removes grpc and grpcs from the accepted schemes list (#700) * Removes grpc and grpcs from the accepted schemes list Signed-off-by: Elena Kolevska * ruff Signed-off-by: Elena Kolevska --------- Signed-off-by: Elena Kolevska Co-authored-by: Bernd Verst --- dapr/conf/helpers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dapr/conf/helpers.py b/dapr/conf/helpers.py index 8740bde8..ab1e494b 100644 --- a/dapr/conf/helpers.py +++ b/dapr/conf/helpers.py @@ -7,7 +7,7 @@ class URIParseConfig: DEFAULT_HOSTNAME = 'localhost' DEFAULT_PORT = 443 DEFAULT_AUTHORITY = '' - ACCEPTED_SCHEMES = ['dns', 'unix', 'unix-abstract', 'vsock', 'http', 'https', 'grpc', 'grpcs'] + ACCEPTED_SCHEMES = ['dns', 'unix', 'unix-abstract', 'vsock', 'http', 'https'] class GrpcEndpoint: @@ -40,7 +40,9 @@ def _set_scheme(self): if self._parsed_url.scheme in ['http', 'https']: self._scheme = URIParseConfig.DEFAULT_SCHEME - warn('http and https schemes are deprecated, use grpc or grpcs instead') + warn( + 'http and https schemes are deprecated for grpc, use myhost?tls=false or myhost?tls=true instead' + ) return if self._parsed_url.scheme not in URIParseConfig.ACCEPTED_SCHEMES: