summary refs log tree commit diff
diff options
context:
space:
mode:
authorJason Robinson <jasonr@element.io>2022-01-14 16:11:55 +0200
committerGitHub <noreply@github.com>2022-01-14 14:11:55 +0000
commit904bb044097a34ff37d06a92da4a1a39f2a9282b (patch)
tree43c02cfa5a457fe7e34b7c243a5a54f11daba2ee
parentReplace uses of simple_insert_many with simple_insert_many_values. (#11742) (diff)
downloadsynapse-904bb044097a34ff37d06a92da4a1a39f2a9282b.tar.xz
Fix sample_config.yaml in regards track_puppeted_user_ips (#11749)
* Fix sample_config.yaml in regards track_puppeted_user_ips

Closes #11741

Signed-off-by: Jason Robinson <jasonr@matrix.org>
-rw-r--r--changelog.d/11749.feature1
-rw-r--r--docs/sample_config.yaml11
-rw-r--r--synapse/config/api.py11
3 files changed, 13 insertions, 10 deletions
diff --git a/changelog.d/11749.feature b/changelog.d/11749.feature
new file mode 100644
index 0000000000..19dada883b
--- /dev/null
+++ b/changelog.d/11749.feature
@@ -0,0 +1 @@
+Add `track_puppeted_user_ips` config flag to track puppeted user IP addresses. This also includes them in monthly active user counts.
diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml
index 907e067e51..9a501167ee 100644
--- a/docs/sample_config.yaml
+++ b/docs/sample_config.yaml
@@ -1503,11 +1503,12 @@ room_prejoin_state:
    #additional_event_types:
    #  - org.example.custom.event.type
 
-# If enabled, puppeted user IP's can also be tracked. By default when
-# puppeting another user, the user who has created the access token
-# for puppeting is tracked. If this is enabled, both requests are tracked.
-# Implicitly enables MAU tracking for puppeted users.
-#track_puppeted_user_ips: false
+# By default when puppeting another user, the user who has created the
+# access token for puppeting is tracked. If this is enabled, both
+# requests are tracked. Implicitly enables MAU tracking for puppeted users.
+# Uncomment to also track puppeted user IP's.
+#
+#track_puppeted_user_ips: true
 
 
 # A list of application service config files to use
diff --git a/synapse/config/api.py b/synapse/config/api.py
index bdbe9f0fa2..f8e52150a2 100644
--- a/synapse/config/api.py
+++ b/synapse/config/api.py
@@ -61,11 +61,12 @@ class ApiConfig(Config):
            #additional_event_types:
            #  - org.example.custom.event.type
 
-        # If enabled, puppeted user IP's can also be tracked. By default when
-        # puppeting another user, the user who has created the access token
-        # for puppeting is tracked. If this is enabled, both requests are tracked.
-        # Implicitly enables MAU tracking for puppeted users.
-        #track_puppeted_user_ips: false
+        # By default when puppeting another user, the user who has created the
+        # access token for puppeting is tracked. If this is enabled, both
+        # requests are tracked. Implicitly enables MAU tracking for puppeted users.
+        # Uncomment to also track puppeted user IP's.
+        #
+        #track_puppeted_user_ips: true
         """ % {
             "formatted_default_state_types": formatted_default_state_types
         }