Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aether-roc-umbrella: adding LDAP auth for Grafana #611

Merged
merged 1 commit into from
Jun 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aether-roc-umbrella/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: aether-roc-umbrella
description: Aether ROC Umbrella chart to deploy all Aether ROC
kubeVersion: ">=1.18.0"
type: application
version: 1.2.14
version: 1.2.15
appVersion: v0.0.0
keywords:
- aether
Expand Down
43 changes: 43 additions & 0 deletions aether-roc-umbrella/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ grafana:
org_name: Main Org.
org_role: Viewer
hide_version: true
auth.ldap:
enabled: true
config_file: /etc/grafana/ldap.toml
datasources:
datasources.yaml:
apiVersion: 1
Expand All @@ -146,6 +149,46 @@ grafana:
path: /var/lib/grafana/dashboards/default
dashboardsConfigMaps:
default: aether-roc-umbrella-dashboards
ldap:
enabled: true
config: |-
verbose_logging = true
[[servers]]
host = "dex-ldap-umbrella-openldap"
port = 389
use_ssl = false
start_tls = false
ssl_skip_verify = false
bind_dn = "cn=admin,dc=opennetworking,dc=org"
bind_password = 'password'
search_filter = "(uid=%s)"
search_base_dns = ["cn=users,dc=opennetworking,dc=org"]

group_search_filter = "(&(objectClass=posixGroup)(memberUid=%s))"
group_search_base_dns = ["cn=groups,dc=opennetworking,dc=org"]
group_search_filter_user_attribute = "uid"

[servers.attributes]
member_of = "memberOf"
email = "mail"
first_name = "sn"
surname = "givenName"
username = "cn"

[[servers.group_mappings]]
group_dn = "cn=AetherROCAdmin,cn=groups,dc=opennetworking,dc=org"
org_role = "Admin"
org_id = 1

[[servers.group_mappings]]
group_dn = "cn=acme,cn=groups,dc=opennetworking,dc=org"
org_role = "Viewer"
org_id = 2

[[servers.group_mappings]]
group_dn = "cn=starbucks,cn=groups,dc=opennetworking,dc=org"
org_role = "Viewer"
org_id = 3

prometheus:
pushgateway:
Expand Down