UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 9e0a5de1 authored by Rob Ferguson's avatar Rob Ferguson Committed by Ryan Garcia
Browse files

fix missing keys for monitoring.sso configuration

parent 9f5bab28
No related branches found
No related tags found
1 merge request!2707fix missing keys for monitoring.sso configuration
......@@ -721,10 +721,34 @@
"type": "string"
},
"allow_sign_up": {
"type": "string"
"type": "boolean"
},
"role_attribute_path": {
"type": "string"
},
"token_url": {
"type": "string"
},
"auth_url": {
"type": "string"
},
"api_url": {
"type": "string"
},
"tls_client_ca": {
"type": "string"
},
"tls_skip_verify_insecure": {
"type": "boolean"
},
"tls_client_cert": {
"type": "string"
},
"tls_client_key": {
"type": "string"
},
"allowed_domains": {
"type": "string"
}
},
"additionalProperties": false
......
......@@ -878,7 +878,7 @@ monitoring:
# -- Grafana OIDC client scopes, comma separated, see https://grafana.com/docs/grafana/latest/auth/generic-oauth/
scopes: ""
allow_sign_up: "true"
allow_sign_up: true
role_attribute_path: "Viewer"
# -- Other options available, see package Documentation.
......
......@@ -105,4 +105,10 @@ invalid() {
diag "Testing extra keys for core package $package"
assert_equal "$status" "1"
done
}
# Test monitoring schema validation
@test "helm template validate monitoring schema" {
valid monitoring
invalid monitoring
}
\ No newline at end of file
monitoring:
sso:
grafana:
foo: bar
monitoring:
sso:
grafana:
client_id: grafana
client_secret: secret
scopes: Grafana
allow_sign_up: true
role_attribute_path: Viewer
auth_url: https://login.dso.mil/auth/realms/baby-yoda/protocol/openid-connect/auth
token_url: https://login.dso.mil/auth/realms/baby-yoda/protocol/openid-connect/token
api_url: https://login.dso.mil/auth/realms/baby-yoda/protocol/openid-connect/userinfo
allowed_domains: foo.com bar.com
tls_client_ca: ""
tls_skip_verify_insecure: false
tls_client_cert: ""
tls_client_key: ""
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment