[Bug 1811098] Re: [SRU] ceilometer writing snmp credentials to log file

Corey Bryant corey.bryant at canonical.com
Wed Jan 16 19:14:45 UTC 2019


Note there is a public fix proposed for this issue.

** Also affects: cloud-archive/queens
   Importance: Undecided
       Status: New

** Also affects: cloud-archive/rocky
   Importance: Undecided
       Status: New

** Also affects: cloud-archive/stein
   Importance: Undecided
       Status: New

** Also affects: ceilometer (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: ceilometer (Ubuntu Cosmic)
   Importance: Undecided
       Status: New

** Also affects: ceilometer (Ubuntu Disco)
   Importance: Undecided
       Status: New

** Also affects: cloud-archive/ocata
   Importance: Undecided
       Status: New

** Also affects: cloud-archive/pike
   Importance: Undecided
       Status: New

** Changed in: cloud-archive/ocata
   Importance: Undecided => High

** Changed in: cloud-archive/ocata
       Status: New => Triaged

** Changed in: cloud-archive/pike
   Importance: Undecided => High

** Changed in: cloud-archive/pike
       Status: New => Triaged

** Changed in: cloud-archive/queens
   Importance: Undecided => High

** Changed in: cloud-archive/queens
       Status: New => Triaged

** Changed in: cloud-archive/rocky
   Importance: Undecided => High

** Changed in: cloud-archive/rocky
       Status: New => Triaged

** Changed in: cloud-archive/stein
   Importance: Undecided => High

** Changed in: cloud-archive/stein
       Status: New => Triaged

** Changed in: ceilometer (Ubuntu Bionic)
   Importance: Undecided => High

** Changed in: ceilometer (Ubuntu Bionic)
       Status: New => Triaged

** Changed in: ceilometer (Ubuntu Cosmic)
   Importance: Undecided => High

** Changed in: ceilometer (Ubuntu Cosmic)
       Status: New => Triaged

** Changed in: ceilometer (Ubuntu Disco)
   Importance: Undecided => High

** Changed in: ceilometer (Ubuntu Disco)
       Status: New => Triaged

** Information type changed from Public to Private Security

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1811098

Title:
  [SRU] ceilometer writing snmp credentials to log file

Status in Ceilometer:
  In Progress
Status in Ubuntu Cloud Archive:
  Triaged
Status in Ubuntu Cloud Archive ocata series:
  Triaged
Status in Ubuntu Cloud Archive pike series:
  Triaged
Status in Ubuntu Cloud Archive queens series:
  Triaged
Status in Ubuntu Cloud Archive rocky series:
  Triaged
Status in Ubuntu Cloud Archive stein series:
  Triaged
Status in ceilometer package in Ubuntu:
  Triaged
Status in ceilometer source package in Bionic:
  Triaged
Status in ceilometer source package in Cosmic:
  Triaged
Status in ceilometer source package in Disco:
  Triaged

Bug description:
  [Impact] 
  This SRU proposal is to patch the Ubuntu ceilometer package so that the ceilometer-agent switches printing the contents of polling.yaml from INFO to DEBUG. This is mostly an interim fix to make it easy to stop the presence of sensitive data in the ceilometer logfiles when DEBUG logging is not activated. Another bug will be raised to propose sanitising the data printed.

  [Test Case]
  * deploy Openstack Q/R/S with ceilometer
  * enable debug logging
  * check that /var/log/ceilometer/ceilometer-agent-central.log contains a line similar to:

  2019-01-09 11:40:50.641 25495 DEBUG ceilometer.agent [-] Config file:
  {'sources': [{'interval': 300, 'meters'...

  i.e. ensure that the log is printed using DEBUG (not INFO)

  [Regression Potential]
  Users with debug mode disabled will no longer see this line.

  ----

  The ceilometer-agent-central is always writing the contents of
  polling.yaml to its log file (and as INFO) [1]

  This presents a security risk if e.g. resources contain sensitive
  information like when specifying snmp targets with the url containing
  the username, password etc.

  There are a couple of ways we could solve this, namely; (1) don't log
  this info at all, (2) sanitise the contents prior to logging as DEBUG
  (3) switch to using config for the snmp credentials in a similar way
  to how the Triple0Discoverer does it [2] - this would only support
  having the same creds everywhere thought which may not be desirable.

  [1] https://github.com/openstack/ceilometer/blob/stable/rocky/ceilometer/agent.py#L70
  [2] https://github.com/openstack/ceilometer/blob/stable/rocky/ceilometer/hardware/discovery.py#L24

To manage notifications about this bug go to:
https://bugs.launchpad.net/ceilometer/+bug/1811098/+subscriptions



More information about the Ubuntu-sponsors mailing list