Merge pull request #935 from Security-Onion-Solutions/issue/929

Change grafana to use anon auth
This commit is contained in:
Mike Reeves
2020-07-06 16:45:19 -04:00
committed by GitHub
5 changed files with 7 additions and 3 deletions

View File

@@ -226,13 +226,13 @@ log_queries =
#################################### Anonymous Auth ########################## #################################### Anonymous Auth ##########################
[auth.anonymous] [auth.anonymous]
# enable anonymous access # enable anonymous access
;enabled = false enabled = true
# specify organization name that should be used for unauthenticated users # specify organization name that should be used for unauthenticated users
;org_name = Main Org. org_name = Main Org.
# specify role for unauthenticated users # specify role for unauthenticated users
;org_role = Viewer org_role = Viewer
#################################### Github Auth ########################## #################################### Github Auth ##########################
[auth.github] [auth.github]

View File

@@ -183,6 +183,7 @@ http {
} }
location /grafana/ { location /grafana/ {
auth_request /auth/sessions/whoami;
rewrite /grafana/(.*) /$1 break; rewrite /grafana/(.*) /$1 break;
proxy_pass http://{{ masterip }}:3000/; proxy_pass http://{{ masterip }}:3000/;
proxy_read_timeout 90; proxy_read_timeout 90;

View File

@@ -183,6 +183,7 @@ http {
} }
location /grafana/ { location /grafana/ {
auth_request /auth/sessions/whoami;
rewrite /grafana/(.*) /$1 break; rewrite /grafana/(.*) /$1 break;
proxy_pass http://{{ masterip }}:3000/; proxy_pass http://{{ masterip }}:3000/;
proxy_read_timeout 90; proxy_read_timeout 90;

View File

@@ -182,6 +182,7 @@ http {
} }
location /grafana/ { location /grafana/ {
auth_request /auth/sessions/whoami;
rewrite /grafana/(.*) /$1 break; rewrite /grafana/(.*) /$1 break;
proxy_pass http://{{ masterip }}:3000/; proxy_pass http://{{ masterip }}:3000/;
proxy_read_timeout 90; proxy_read_timeout 90;

View File

@@ -183,6 +183,7 @@ http {
} }
location /grafana/ { location /grafana/ {
auth_request /auth/sessions/whoami;
rewrite /grafana/(.*) /$1 break; rewrite /grafana/(.*) /$1 break;
proxy_pass http://{{ masterip }}:3000/; proxy_pass http://{{ masterip }}:3000/;
proxy_read_timeout 90; proxy_read_timeout 90;