Merge ~gnuoy/charm-grafana:embedded into charm-grafana:master

Proposed by Liam Young
Status: Merged
Approved by: James Troup
Approved revision: a15303218940772ae1fd257e889b0ab5c7b30a0a
Merged at revision: fd58b297d4c740fe8d82be024ccb26138155769a
Proposed branch: ~gnuoy/charm-grafana:embedded
Merge into: charm-grafana:master
Diff against target: 27 lines (+9/-0)
2 files modified
src/config.yaml (+5/-0)
src/templates/grafana.ini.j2 (+4/-0)
Reviewer Review Type Date Requested Status
Paul Goins Approve
BootStack Reviewers Pending
Review via email: mp+405963@code.launchpad.net

Commit message

Expose allow_embedding config option.

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
James Troup (elmo) wrote :

Aren't we going to run into issues with the Grafana dashboard rarely being deployed with TLS? Also, are you in a rush to get this rolled out? We're currently in branch freeze for the 21.07 legacy-LMA release...

Revision history for this message
Paul Goins (vultaire) wrote :

Looks fine, approving, but not merging at this point. (2nd review needed, plus elmo's point stands as well.)

review: Approve
Revision history for this message
Liam Young (gnuoy) wrote :

> Aren't we going to run into issues with the Grafana dashboard rarely being
> deployed with TLS?

Yes, we are. But given TLS will be mandatory for the ceph-dashboard the choice is either users unblock mixed http/https content in their browser or enable SSL/TLS support in Grafana. fwiw SSL/TLS support for grafana is addresses here:

https://code.launchpad.net/~gnuoy/charm-grafana/+git/charm-grafana/+merge/404961
https://code.launchpad.net/~freyes/charm-grafana/+git/charm-grafana/+merge/397611

> Also, are you in a rush to get this rolled out? We're
> currently in branch freeze for the 21.07 legacy-LMA release...

Definitely can wait till after 21.07 legacy-LMA release.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision fd58b297d4c740fe8d82be024ccb26138155769a

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/config.yaml b/src/config.yaml
2index 69d0116..190dc1c 100644
3--- a/src/config.yaml
4+++ b/src/config.yaml
5@@ -198,3 +198,8 @@ options:
6 type: string
7 description: \
8 Name for the network which hosts the Public IP address space.
9+ allow_embedding:
10+ default: False
11+ type: boolean
12+ description: \
13+ If false the Grafana HTTP responses will instruct browsers to not allow rendering Grafana in a <frame>, <iframe>, <embed> or <object>.
14diff --git a/src/templates/grafana.ini.j2 b/src/templates/grafana.ini.j2
15index 06278fc..77280c8 100644
16--- a/src/templates/grafana.ini.j2
17+++ b/src/templates/grafana.ini.j2
18@@ -93,6 +93,10 @@ google_analytics_ua_id = {{ config.google_analytics_ua_id }}
19
20 #################################### Security ####################################
21 [security]
22+{% if config['allow_embedding'] -%}
23+allow_embedding = true
24+{% endif %}
25+
26 # default admin user, created on startup
27 ;admin_user = admin
28

Subscribers

People subscribed via source and target branches

to all changes: