소스 검색

[Security] inspect.stats should not transmit broker password. Closes #273

Ask Solem 14 년 전
부모
커밋
6f426e5a85
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      celery/worker/consumer.py

+ 1 - 0
celery/worker/consumer.py

@@ -478,5 +478,6 @@ class Consumer(object):
         conninfo = {}
         if self.connection:
             conninfo = self.app.amqp.get_broker_info(self.connection)
+            conninfo.pop("password", None)  # don't send password.
         return {"broker": conninfo,
                 "prefetch_count": self.qos.next}