← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1815763] [NEW] Unbound regex in config options

 

Public bug reported:

Oslo.config uses re.search() to check config values against the allowed
regex. This checks if the regex matches anywhere in the string, rather
than checking if the entire string matches the regex.

Nova has three config options that appear as if the entire string should match the given regex:
* DEFAULT.instance_usage_audit_period
* cinder.catalog_info
* serial_console.port_range

However, these are not bounded with ^ and $ to ensure the entire string
matches.

** Affects: nova
     Importance: Low
     Assignee: Jim Rollenhagen (jim-rollenhagen)
         Status: In Progress

** Changed in: nova
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1815763

Title:
  Unbound regex in config options

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  Oslo.config uses re.search() to check config values against the
  allowed regex. This checks if the regex matches anywhere in the
  string, rather than checking if the entire string matches the regex.

  Nova has three config options that appear as if the entire string should match the given regex:
  * DEFAULT.instance_usage_audit_period
  * cinder.catalog_info
  * serial_console.port_range

  However, these are not bounded with ^ and $ to ensure the entire
  string matches.

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


Follow ups