]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: set cookie_secure in grafana v6.0.8
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 2 Jun 2021 09:05:07 +0000 (11:05 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 7 Jun 2021 13:12:19 +0000 (15:12 +0200)
When using grafana behind https `cookie_secure` should be set to `true`.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1966880
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 4daed1f137a4c61940abd9ae2db179fafd8de17a)

roles/ceph-grafana/templates/grafana.ini.j2

index 61ef46c09294950a674c43c789d1346b0dbf7bca..0593eb4bee614ecd516792ab3dd6adedbfa05a9a 100644 (file)
@@ -27,3 +27,9 @@ http_addr = {{ grafana_server_addr }}
 admin_user = {{ grafana_admin_user }}
 admin_password = {{ grafana_admin_password }}
 allow_embedding = {{ grafana_allow_embedding }}
+{% if dashboard_protocol == 'https' %}
+cookie_secure = true
+
+[session]
+cookie_secure = true
+{% endif %}
\ No newline at end of file