MitchDrage commented on code in PR #14841:
URL: https://github.com/apache/cloudstack/pull/14841#discussion_r4688557129


##########
server/src/main/java/org/apache/cloudstack/diagnostics/fileprocessor/DiagnosticsFilesList.java:
##########
@@ -40,7 +40,7 @@ public interface DiagnosticsFilesList {
     "diagnostics.data.router.defaults", "Advanced", 
"iptables,ipaddr,iprule,iproute,/etc/cloudstack-release," +
             
"/etc/dnsmasq.conf,/etc/dhcphosts.txt,/etc/dhcpopts.txt,/etc/dnsmasq.d/cloud.conf,/etc/dnsmasq-resolv.conf,/var/lib/misc/dnsmasq.leases,/var/log/dnsmasq.log,"
 +
             
"/etc/hosts,/etc/resolv.conf,/etc/haproxy/haproxy.cfg,/var/log/haproxy.log,/etc/ipsec.d/l2tp.conf,/var/log/cloud.log,"
 +
-            "/var/log/routerServiceMonitor.log,/var/log/daemon.log",
+            
"/var/log/routerServiceMonitor.log,/var/log/daemon.log,/var/log/frr/frr.log,/var/cache/cloud/frr.conf.masked",

Review Comment:
   It's only a masked copy, /var/cache/cloud/frr.conf.masked.
   CsBgpPeers writes it each time it renders frr.conf, using the new 
CsFrrConfig.mask_passwords, which replaces every peer password with <masked>; 
the plain frr.conf never leaves the router.
   What's left is peer IPs, ASNs and route-maps, which admins can already see, 
and getDiagnosticsData is root-admin only.
   
   Note however, while checking this I found that CsBgpPeers already logs the 
whole bgppeers databag to cloud.log, passwords included, and cloud.log is in 
the default bundle. Would you like me to raise an issue on this against 4.20?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to