2024-02-27 12:05:24 -06:00
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
|
|
|
apiVersion: external-secrets.io/v1beta1
|
|
|
|
kind: ExternalSecret
|
|
|
|
metadata:
|
2024-03-01 08:53:43 -06:00
|
|
|
name: grafana-secret
|
|
|
|
namespace: observability
|
2024-02-27 12:05:24 -06:00
|
|
|
spec:
|
|
|
|
secretStoreRef:
|
|
|
|
kind: ClusterSecretStore
|
|
|
|
name: onepassword-connect
|
|
|
|
target:
|
|
|
|
name: grafana-secret
|
2024-03-01 08:25:37 -06:00
|
|
|
creationPolicy: Owner
|
2024-02-27 12:05:24 -06:00
|
|
|
template:
|
|
|
|
engineVersion: v2
|
|
|
|
data:
|
2024-03-01 08:25:37 -06:00
|
|
|
GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET: "{{ .authentik_grafana_oauth_client_secret }}"
|
2024-03-01 13:13:23 -06:00
|
|
|
GF_DATE_FORMATS_USE_BROWSER_LOCALE: "true"
|
|
|
|
GF_SERVER_ROOT_URL: https://grafana.hsn.dev
|
2024-03-01 13:43:46 -06:00
|
|
|
GF_DATABASE_NAME: ${DB_NAME}
|
|
|
|
GF_DATABASE_HOST: "grafana-primary.observability.svc:5432"
|
2024-04-01 11:05:37 -05:00
|
|
|
GF_DATABASE_USER: "{{ .grafana_postgres_user }}"
|
|
|
|
GF_DATABASE_PASSWORD: "{{ .grafana_postgres_password }}"
|
2024-03-01 13:27:30 -06:00
|
|
|
GF_DATABASE_SSL_MODE: "require"
|
2024-03-01 13:43:46 -06:00
|
|
|
GF_DATABASE_TYPE: postgres
|
2024-03-01 14:04:19 -06:00
|
|
|
GF_ANALYTICS_CHECK_FOR_UPDATES: "false"
|
|
|
|
GF_ANALYTICS_CHECK_FOR_PLUGIN_UPDATES: "false"
|
|
|
|
GF_ANALYTICS_REPORTING_ENABLED: "false"
|
|
|
|
GF_AUTH_ANONYMOUS_ENABLED: "false"
|
|
|
|
GF_AUTH_BASIC_ENABLED: "false"
|
|
|
|
GF_AUTH_GENERIC_OAUTH_ENABLED: "true"
|
|
|
|
GF_AUTH_GENERIC_OAUTH_API_URL: https://auth.hsn.dev/application/o/userinfo/
|
|
|
|
GF_AUTH_GENERIC_OAUTH_AUTH_URL: https://auth.hsn.dev/application/o/authorize/
|
|
|
|
GF_AUTH_GENERIC_OAUTH_TOKEN_URL: https://auth.hsn.dev/application/o/token/
|
|
|
|
GF_AUTH_GENERIC_OAUTH_CLIENT_ID: CoV7ae1HxuNzwCbVPf3U7TfYMX2rVqC5T9RAUo5M
|
|
|
|
GF_AUTH_GENERIC_OAUTH_EMPTY_SCOPES: "false"
|
|
|
|
GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_PATH: "contains(groups[*], 'Grafana Admins') && 'Admin' || contains(groups[*], 'Grafana Editors') && 'Editor' || 'Viewer'"
|
|
|
|
GF_AUTH_GENERIC_OAUTH_SCOPES: openid profile email groups
|
|
|
|
GF_AUTH_OAUTH_AUTO_LOGIN: "true"
|
|
|
|
GF_EXPLORE_ENABLED: "true"
|
|
|
|
GF_FEATURE_TOGGLES_ENABLE: publicDashboards
|
|
|
|
GF_LOG_MODE: console
|
|
|
|
GF_NEWS_NEWS_FEED_ENABLED: "false"
|
|
|
|
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: natel-discrete-panel,pr0ps-trackmap-panel,panodata-map-panel
|
|
|
|
GF_SECURITY_COOKIE_SAMESITE: grafana
|
2024-03-19 12:20:45 -05:00
|
|
|
GF_SECURITY_ANGULAR_SUPPORT_ENABLED: "true"
|
2024-03-01 14:04:19 -06:00
|
|
|
|
2024-02-27 12:05:24 -06:00
|
|
|
dataFrom:
|
|
|
|
- extract:
|
2024-03-01 08:25:37 -06:00
|
|
|
key: Authentik
|
|
|
|
rewrite:
|
|
|
|
- regexp:
|
|
|
|
source: "(.*)"
|
|
|
|
target: "authentik_$1"
|
2024-03-01 13:13:23 -06:00
|
|
|
- extract:
|
|
|
|
key: grafana
|
|
|
|
rewrite:
|
|
|
|
- regexp:
|
|
|
|
source: "(.*)"
|
|
|
|
target: "grafana_$1"
|