Skip to content

Commit 165f191

Browse files
committed
chore(monitor): change passport config
1 parent 16a5e60 commit 165f191

2 files changed

Lines changed: 10 additions & 18 deletions

File tree

charts/monitor/templates/_helpers.tmpl

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,14 @@ env:
5454
{{- else }}
5555
value: http://drycc-passport.{{ .Values.global.platformDomain }}
5656
{{- end }}
57-
- name: "SOCIAL_AUTH_DRYCC_AUTHORIZATION_URL"
58-
value: "$(DRYCC_PASSPORT_URL)/oauth/authorize/"
59-
- name: "SOCIAL_AUTH_DRYCC_ACCESS_TOKEN_URL"
60-
value: "$(DRYCC_PASSPORT_URL)/oauth/token/"
61-
- name: "SOCIAL_AUTH_DRYCC_ACCESS_API_URL"
62-
value: "$(DRYCC_PASSPORT_URL)"
63-
- name: "SOCIAL_AUTH_DRYCC_USERINFO_URL"
64-
value: "$(DRYCC_PASSPORT_URL)/oauth/userinfo/"
65-
- name: SOCIAL_AUTH_DRYCC_KEY
57+
- name: DRYCC_PASSPORT_KEY
6658
valueFrom:
6759
secretKeyRef:
6860
name: passport-creds
69-
key: social-auth-drycc-grafana-key
70-
- name: SOCIAL_AUTH_DRYCC_SECRET
61+
key: drycc-passport-grafana-key
62+
- name: DRYCC_PASSPORT_SECRET
7163
valueFrom:
7264
secretKeyRef:
7365
name: passport-creds
74-
key: social-auth-drycc-grafana-secret
66+
key: drycc-passport-grafana-secret
7567
{{- end }}

grafana/rootfs/usr/share/grafana/grafana.ini.tpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ config_file = "/usr/share/grafana/ldap.toml"
231231

232232
#################################### Generic Oauth ##########################
233233
[auth.generic_oauth]
234-
{{ if .SOCIAL_AUTH_DRYCC_KEY }}
234+
{{ if .DRYCC_PASSPORT_URL }}
235235
name = OAuth
236236
enabled = true
237-
client_id = {{ .SOCIAL_AUTH_DRYCC_KEY }}
238-
client_secret = {{ .SOCIAL_AUTH_DRYCC_SECRET }}
237+
client_id = {{ .DRYCC_PASSPORT_KEY }}
238+
client_secret = {{ .DRYCC_PASSPORT_SECRET }}
239239
scopes = profile,openid
240-
auth_url = {{ .SOCIAL_AUTH_DRYCC_AUTHORIZATION_URL }}
241-
token_url = {{ .SOCIAL_AUTH_DRYCC_ACCESS_TOKEN_URL }}
242-
api_url = {{ .SOCIAL_AUTH_DRYCC_USERINFO_URL }}
240+
auth_url = {{ .DRYCC_PASSPORT_URL }}/oauth/authorize/
241+
token_url = {{ .DRYCC_PASSPORT_URL }}/oauth/token/
242+
api_url = {{ .DRYCC_PASSPORT_URL }}
243243
allow_sign_up = true
244244
tls_skip_verify_insecure = true
245245
role_attribute_path = (is_superuser && 'Admin') || (is_staff && 'Viewer') || ''

0 commit comments

Comments
 (0)