neutron/etc
Cedric Brandily 80bea7a386 Allow metadata proxy running with nobody user/group
Currently metadata proxy cannot run with nobody user/group as metadata
proxy requires to connect to metadata_proxy_socket when queried.

This change allows to run metadata proxy with nobody user/group by
allowing to choose the metadata_proxy_socket mode with the new option
metadata_proxy_socket_mode (4 choices) in order to adapt socket
permissions to metadata proxy user/group.

This change refactors also where options are defined to enable
metadata_proxy_user/group options in the metadata agent.

In practice:
* if metadata_proxy_user is agent effective user or root, then:
  * metadata proxy is allowed to use rootwrap (unsecure)
  * set metadata_proxy_socket_mode = user (0o644)
* else if metadata_proxy_group is agent effective group, then:
  * metadata proxy is not allowed to use rootwrap (secure)
  * set metadata_proxy_socket_mode = group (0o664)
  * set metadata_proxy_log_watch = false
* else:
  * metadata proxy has lowest permissions (securest) but metadata proxy
    socket can be opened by everyone
  * set metadata_proxy_socket_mode = all (0o666)
  * set metadata_proxy_log_watch = false

An alternative is to set metadata_proxy_socket_mode = deduce, in such
case metadata agent uses previous rules to choose the correct mode.

DocImpact
Closes-Bug: #1427228
Change-Id: I235a0cc4f0cbd55ae4ec1570daf2ebbb6a72441d
2015-04-06 18:31:37 +02:00
..
init.d Rename to Neutron in sample init.d script 2013-07-13 16:55:55 -04:00
neutron Merge "Add L3 router plugin shim for Brocade MLX" 2015-03-26 23:15:58 +00:00
api-paste.ini Migrate to oslo.middleware 2014-11-26 22:12:21 +01:00
dhcp_agent.ini Merge "Move metadata proxy shared options to neutron.conf" 2015-03-25 15:15:09 +00:00
l3_agent.ini Merge "Make floatingip reachable from the same network" 2015-04-01 04:00:59 +00:00
metadata_agent.ini Allow metadata proxy running with nobody user/group 2015-04-06 18:31:37 +02:00
metering_agent.ini Deprecate use_namespaces option 2015-03-24 10:46:03 -04:00
neutron.conf Merge "Allow metadata proxy to log with nobody user/group" 2015-04-02 11:39:27 +00:00
policy.json Basic subnetpool CRUD 2015-03-18 22:53:50 -07:00
rootwrap.conf Remove last parts of Quantum compatibility shim 2014-03-31 23:31:23 -07:00