Skip to content

Commit

Permalink
dashboard: set cookie_secure in grafana
Browse files Browse the repository at this point in the history
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 4daed1f)
  • Loading branch information
guits committed Jun 7, 2021
1 parent ac0a5c1 commit 69a80ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/ceph-grafana/templates/grafana.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ http_addr = {{ grafana_server_addr }}
admin_user = {{ grafana_admin_user }}
admin_password = {{ grafana_admin_password }}
allow_embedding = {{ grafana_allow_embedding }}

{% if dashboard_protocol == 'https' %}
[session]
cookie_secure = true
{% endif %}

0 comments on commit 69a80ae

Please sign in to comment.