Module: kamailio
Branch: master
Commit: d21c9d59cbf9f93c966f05ea2abb9ae1df52e241
URL: 
https://github.com/kamailio/kamailio/commit/d21c9d59cbf9f93c966f05ea2abb9ae1df52e241

Author: Henning Westerholt <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date: 2025-12-09T08:58:09Z

auth_web3: disable debug mode by default, as it can leak sensitive information

---

Modified: src/modules/auth_web3/auth_web3_mod.c
Modified: src/modules/auth_web3/doc/auth_web3_params.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/d21c9d59cbf9f93c966f05ea2abb9ae1df52e241.diff
Patch: 
https://github.com/kamailio/kamailio/commit/d21c9d59cbf9f93c966f05ea2abb9ae1df52e241.patch

---

diff --git a/src/modules/auth_web3/auth_web3_mod.c 
b/src/modules/auth_web3/auth_web3_mod.c
index 841e9194a1c..d73fe307aab 100644
--- a/src/modules/auth_web3/auth_web3_mod.c
+++ b/src/modules/auth_web3/auth_web3_mod.c
@@ -69,7 +69,7 @@ char *web3_authentication_rpc_url = NULL;
 char *web3_authentication_contract_address = NULL;
 char *web3_ens_registry_address = NULL;
 char *web3_ens_rpc_url = NULL;
-int web3_contract_debug_mode = 1;
+int web3_contract_debug_mode = 0;
 int web3_rpc_timeout = 10;
 
 /* Base auth module API */
diff --git a/src/modules/auth_web3/doc/auth_web3_params.xml 
b/src/modules/auth_web3/doc/auth_web3_params.xml
index 1b70aa7cf3c..384e42e1290 100644
--- a/src/modules/auth_web3/doc/auth_web3_params.xml
+++ b/src/modules/auth_web3/doc/auth_web3_params.xml
@@ -149,13 +149,13 @@ modparam("auth_web3", "ens_registry_address", 
"0x00000000000C2E074eC69A0dFb2997B
             <emphasis>Environment Variable:</emphasis> CONTRACT_DEBUG_MODE
         </para>
         <para>
-            <emphasis>Default:</emphasis> 1
+            <emphasis>Default:</emphasis> 0
         </para>
         <example>
             <title>Setting the <varname>contract_debug_mode</varname> 
parameter</title>
             <programlisting>
 ...
-modparam("auth_web3", "contract_debug_mode", 0)
+modparam("auth_web3", "contract_debug_mode", 1)
 ...
             </programlisting>
         </example>

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to