Просмотр исходного кода

chore(gen_rpc): Bump version to 3.0.0

ieQu1 3 лет назад
Родитель
Сommit
d0120e1edc

+ 1 - 0
CHANGES-5.0.md

@@ -10,6 +10,7 @@
   This change fixed it to only send back the message ID.
 * Add /trace/:name/log_detail HTTP API to return trace file's size and mtime [#9152](https://github.com/emqx/emqx/pull/9152)
 * Allow clear retained/delayed data when client is banned.[#9139](https://github.com/emqx/emqx/pull/9139)
+* Update `gen_rpc` library to version 3.0 [#9187](https://github.com/emqx/emqx/pull/9187)
 
 ## Bug fixes
 

+ 11 - 0
apps/emqx_conf/i18n/emqx_conf_schema.conf

@@ -973,6 +973,17 @@ until the RPC connection is considered lost."""
     }
   }
 
+  rpc_insecure_fallback {
+    desc {
+      en: """Enable compatibility with old RPC authentication."""
+      zh: """启用与旧RPC认证的兼容性。"""
+    }
+    label {
+      en: "RPC insecure fallback"
+      zh: "RPC不安全的后退"
+    }
+  }
+
   log_file_handlers {
     desc {
       en: """File-based log handlers."""

+ 9 - 0
apps/emqx_conf/src/emqx_conf_schema.erl

@@ -814,6 +814,15 @@ fields("rpc") ->
                     default => "1MB",
                     desc => ?DESC(rpc_socket_buffer)
                 }
+            )},
+        {"insecure_fallback",
+            sc(
+                boolean(),
+                #{
+                    mapping => "gen_rpc.insecure_auth_fallback_allowed",
+                    default => true,
+                    desc => ?DESC(rpc_insecure_fallback)
+                }
             )}
     ];
 fields("log") ->