← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1662298] [NEW] Plugin policy files should not require copying into horizon's conf dir

 

Public bug reported:

The POLICY_FILES_PATH variable currently only accepts a single string
that indicates where all policy files must reside.  Most plugins operate
with services whose policy files are not already in horizon, so that
installing plugins requires that policy files be manually copied into
this single dir (openstack_dashboard/conf).

Instead, POLICY_FILES_PATH should support a list of directories, so that
plugins can add their own policy directory to the POLICY_FILES_PATH.

To that end, two new pluggable settings, ADD_POLICY_FILES_PATH and
ADD_POLICY_FILES, should be added so that plugins can register their
policy's location and service/filename, which horizon would then add to
the POLICY_FILES_PATH and POLICY_FILES settings.

** Affects: horizon
     Importance: Undecided
     Assignee: Gary W. Smith (gary-w-smith)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => Gary W. Smith (gary-w-smith)

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

Title:
  Plugin policy files should not require copying into horizon's conf dir

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  The POLICY_FILES_PATH variable currently only accepts a single string
  that indicates where all policy files must reside.  Most plugins
  operate with services whose policy files are not already in horizon,
  so that installing plugins requires that policy files be manually
  copied into this single dir (openstack_dashboard/conf).

  Instead, POLICY_FILES_PATH should support a list of directories, so
  that plugins can add their own policy directory to the
  POLICY_FILES_PATH.

  To that end, two new pluggable settings, ADD_POLICY_FILES_PATH and
  ADD_POLICY_FILES, should be added so that plugins can register their
  policy's location and service/filename, which horizon would then add
  to the POLICY_FILES_PATH and POLICY_FILES settings.

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


Follow ups