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

getting error when trying to add values to the garfana.ini sections #335

Open
Daxcor69 opened this issue Mar 23, 2021 · 3 comments
Open

Comments

@Daxcor69
Copy link

Daxcor69 commented Mar 23, 2021

grafana.ini:
    server:
      root_url: 'https://college.net'
      enable_gzip: true
    auth:
      azuread:
        allow_sign_up: false
      generic_oauth:
        allow_sign_up: false
      github:
        allow_sign_up: false
      gitllab:
        allow_sign_up: false
      google:
        allow_sign_up: false
      grafana_com:
        allow_sign_up: false
      grafananet:
        allow_sign_up: false
      ldap:
        allow_sign_up: false
      okta:
        allow_sign_up: false
      proxy:
        allow_sign_up: false
        enable_login_token: true
        enabled: true
        header_name: 'X-WEBAUTH-USER'
        header_property: 'username'

This is the error I get:

Error: UPGRADE FAILED: error validating "": error validating data: [ValidationError(ConfigMap): unknown field "enable_login_token" in io.k8s.api.core.v1.ConfigMap, ValidationError(ConfigMap): unknown field "enabled" in io.k8s.api.core.v1.ConfigMap, ValidationError(ConfigMap): unknown field "header_name" in io.k8s.api.core.v1.ConfigMap, ValidationError(ConfigMap): unknown field "header_property" in io.k8s.api.core.v1.ConfigMap]

Thanks.
Brad

@BadgerOps
Copy link

BadgerOps commented Apr 1, 2021

Hey, I'm seeing the same issue, seems like it could potentially be related to this PR: #253

Edit: My issue was indeed related to that PR, but it ended up being an indentation error on my side that didn't throw an error before, but did once that change went out, so.... it did what it was supposed to do!

@kri5
Copy link

kri5 commented Apr 12, 2021

Experiencing the same behavior, seems to not be working like described in documentation

@BadgerOps
Copy link

@Daxcor69 digging a little more into this, I think your error might be in the proxy.allow_sign_up which doesn't appear to be a real key in https://grafana.com/docs/grafana/latest/auth/auth-proxy/ - rather it has a proxy.auto_sign_up key.

The allow_sign_up seems to go under [users] if you scroll further down in the above link.

I'm wondering if it choked on the invalid allow_sign_up key, and blew up on the rest perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants