Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

register_server: Redact the key when printing it.

Alex Vandiver3eb5b20c41f5
diff --git a/zerver/management/commands/register_server.py b/zerver/management/commands/register_server.py
index 352981b9a54..a6e0a05452d 100644
--- a/zerver/management/commands/register_server.py
+++ b/zerver/management/commands/register_server.py
@@ -135,6 +135,8 @@ class Command(ZulipBaseCommand):
def _log_params(self, params: Dict[str, Any]) -> None:
print("The following data will be submitted to the push notification service:")
- for key in sorted(params.keys()):
- print(f" {key}: {params[key]}")
+ for key, value in sorted(params.items()):
+ if key == "zulip_org_key":
+ value = value[0:8] + "..."
+ print(f" {key}: {value}")
print("")