]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Add token authentication to Grafana proxy
authorPatrick Nawracay <pnawracay@suse.com>
Fri, 18 May 2018 07:38:20 +0000 (09:38 +0200)
committerPatrick Nawracay <pnawracay@suse.com>
Thu, 14 Jun 2018 11:54:00 +0000 (13:54 +0200)
commitbd2196b6ca4c03150d323fbd205abfc63a7473fb
tree1786f33f7fc75fca74666a25e3069db57a69bf97
parent27f6012ff47833c7148a4f21ac6ba5c6358f62b3
mgr/dashboard: Add token authentication to Grafana proxy

Enables token authentication for the Grafana proxy as additional option
to username/password authentication. The authentication method has to be
set, too.

    $ ceph dashboard set-grafana-api-token <token>    # default: ''
    $ ceph dashboard set-grafana-api-auth-method <method>  # default: ''

Possible values for the authentication method are 'password' and
'token'.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
doc/mgr/dashboard.rst
src/pybind/mgr/dashboard/controllers/grafana.py
src/pybind/mgr/dashboard/settings.py
src/pybind/mgr/dashboard/tests/test_grafana.py