Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
kandra: Close down access to exporter ports.
Alex Vandiver3aade3588e32
diff --git a/puppet/kandra/manifests/app_frontend_monitoring.pp b/puppet/kandra/manifests/app_frontend_monitoring.ppindex 760c756a1b0..26740b33e91 100644--- a/puppet/kandra/manifests/app_frontend_monitoring.pp+++ b/puppet/kandra/manifests/app_frontend_monitoring.pp@@ -6,7 +6,6 @@ class kandra::app_frontend_monitoring {include kandra::prometheus::uwsgiinclude kandra::prometheus::processinclude kandra::prometheus::grok- kandra::firewall_allow { 'tusd': port => '9900' }kandra::teleport::prometheus_app { 'tusd': port => '9900' }kandra::teleport::prometheus_app { 'katex': port => '9700' }diff --git a/puppet/kandra/manifests/camo.pp b/puppet/kandra/manifests/camo.ppindex 07fa4f547b0..54ab147deef 100644--- a/puppet/kandra/manifests/camo.pp+++ b/puppet/kandra/manifests/camo.pp@@ -3,6 +3,5 @@ class kandra::camo {listen_address => '0.0.0.0',}- kandra::firewall_allow { 'camo': port => '9292' }kandra::teleport::prometheus_app { 'camo': port => '9292' }}diff --git a/puppet/kandra/manifests/profile/chat_zulip_org.pp b/puppet/kandra/manifests/profile/chat_zulip_org.ppindex d8c861b1b6f..c716e33b011 100644--- a/puppet/kandra/manifests/profile/chat_zulip_org.pp+++ b/puppet/kandra/manifests/profile/chat_zulip_org.pp@@ -9,7 +9,6 @@ class kandra::profile::chat_zulip_org inherits kandra::profile::base {include kandra::prometheus::postgresqlkandra::teleport::prometheus_app { 'smokescreen': port => '4760' }kandra::teleport::prometheus_app { 'camo': port => '9292' }- kandra::firewall_allow { 'smokescreen_metrics': port => '4760' }kandra::firewall_allow { 'http': }kandra::firewall_allow { 'https': }diff --git a/puppet/kandra/manifests/profile/smokescreen.pp b/puppet/kandra/manifests/profile/smokescreen.ppindex bc099fdd245..d3f54a5f5c6 100644--- a/puppet/kandra/manifests/profile/smokescreen.pp+++ b/puppet/kandra/manifests/profile/smokescreen.pp@@ -3,7 +3,6 @@ class kandra::profile::smokescreen inherits kandra::profile::base {include zulip::profile::smokescreenkandra::firewall_allow { 'smokescreen': port => '4750' }- kandra::firewall_allow { 'smokescreen_metrics': port => '4760' }kandra::teleport::prometheus_app { 'smokescreen': port => '4760' }include kandra::camodiff --git a/puppet/kandra/manifests/prometheus/grok.pp b/puppet/kandra/manifests/prometheus/grok.ppindex ccf08ee096c..51670a20534 100644--- a/puppet/kandra/manifests/prometheus/grok.pp+++ b/puppet/kandra/manifests/prometheus/grok.pp@@ -27,7 +27,6 @@ class kandra::prometheus::grok {notify => Service[supervisor],}- kandra::firewall_allow { 'grok_exporter': port => '9144' }kandra::teleport::prometheus_app { 'grok_exporter': port => '9144' }file { "${zulip::common::supervisor_conf_dir}/prometheus_grok_exporter.conf":ensure => file,diff --git a/puppet/kandra/manifests/prometheus/memcached.pp b/puppet/kandra/manifests/prometheus/memcached.ppindex f27697813b7..c3d8d7970e8 100644--- a/puppet/kandra/manifests/prometheus/memcached.pp+++ b/puppet/kandra/manifests/prometheus/memcached.pp@@ -22,7 +22,6 @@ class kandra::prometheus::memcached {source => 'puppet:///modules/kandra/memcached_exporter',}- kandra::firewall_allow { 'memcached_exporter': port => '11212' }kandra::teleport::prometheus_app { 'memcached_exporter': port => '11212' }file { "${zulip::common::supervisor_conf_dir}/memcached_exporter.conf":ensure => file,diff --git a/puppet/kandra/manifests/prometheus/node.pp b/puppet/kandra/manifests/prometheus/node.ppindex 28989722ea4..164e7877057 100644--- a/puppet/kandra/manifests/prometheus/node.pp+++ b/puppet/kandra/manifests/prometheus/node.pp@@ -16,7 +16,6 @@ class kandra::prometheus::node {cleanup_after => [Service[supervisor]],}- kandra::firewall_allow { 'node_exporter': port => '9100' }kandra::teleport::prometheus_app { 'node_exporter': port => '9100' }file { "${zulip::common::supervisor_conf_dir}/prometheus_node_exporter.conf":ensure => file,diff --git a/puppet/kandra/manifests/prometheus/postgresql.pp b/puppet/kandra/manifests/prometheus/postgresql.ppindex 16ce9cada95..ce2df413b38 100644--- a/puppet/kandra/manifests/prometheus/postgresql.pp+++ b/puppet/kandra/manifests/prometheus/postgresql.pp@@ -66,7 +66,6 @@ class kandra::prometheus::postgresql {}}- kandra::firewall_allow { 'postgres_exporter': port => '9187' }kandra::teleport::prometheus_app { 'postgres_exporter': port => '9187' }file { "${zulip::common::supervisor_conf_dir}/prometheus_postgres_exporter.conf":ensure => file,diff --git a/puppet/kandra/manifests/prometheus/process.pp b/puppet/kandra/manifests/prometheus/process.ppindex d47d79fb886..c58c8c82cf6 100644--- a/puppet/kandra/manifests/prometheus/process.pp+++ b/puppet/kandra/manifests/prometheus/process.pp@@ -17,7 +17,6 @@ class kandra::prometheus::process {cleanup_after => [Service[supervisor]],}- kandra::firewall_allow { 'process_exporter': port => '9256' }kandra::teleport::prometheus_app { 'process_exporter': port => '9256' }file { $conf:ensure => file,diff --git a/puppet/kandra/manifests/prometheus/rabbitmq.pp b/puppet/kandra/manifests/prometheus/rabbitmq.ppindex f224062daf9..92092d2f03f 100644--- a/puppet/kandra/manifests/prometheus/rabbitmq.pp+++ b/puppet/kandra/manifests/prometheus/rabbitmq.pp@@ -10,6 +10,5 @@ class kandra::prometheus::rabbitmq {unless => 'grep -q rabbitmq_prometheus /etc/rabbitmq/enabled_plugins',require => Service['rabbitmq-server'],}- kandra::firewall_allow { 'rabbitmq': port => '15692' }kandra::teleport::prometheus_app { 'rabbitmq': port => '15692' }}diff --git a/puppet/kandra/manifests/prometheus/redis.pp b/puppet/kandra/manifests/prometheus/redis.ppindex bb502183790..761d2c7e49a 100644--- a/puppet/kandra/manifests/prometheus/redis.pp+++ b/puppet/kandra/manifests/prometheus/redis.pp@@ -16,7 +16,6 @@ class kandra::prometheus::redis {cleanup_after => [Service[supervisor]],}- kandra::firewall_allow { 'redis_exporter': port => '9121' }kandra::teleport::prometheus_app { 'redis_exporter': port => '9121' }file { "${zulip::common::supervisor_conf_dir}/prometheus_redis_exporter.conf":ensure => file,diff --git a/puppet/kandra/manifests/prometheus/uwsgi.pp b/puppet/kandra/manifests/prometheus/uwsgi.ppindex 97c2baeb965..71b00b6cece 100644--- a/puppet/kandra/manifests/prometheus/uwsgi.pp+++ b/puppet/kandra/manifests/prometheus/uwsgi.pp@@ -16,7 +16,6 @@ class kandra::prometheus::uwsgi {cleanup_after => [Service[supervisor]],}- kandra::firewall_allow { 'uwsgi_exporter': port => '9238' }kandra::teleport::prometheus_app { 'uwsgi_exporter': port => '9238' }file { "${zulip::common::supervisor_conf_dir}/prometheus_uwsgi_exporter.conf":ensure => file,