Giter VIP home page Giter VIP logo

Comments (8)

DrMichael avatar DrMichael commented on May 16, 2024 1

Genial. That worked!

from teslamate.

adriankumpf avatar adriankumpf commented on May 16, 2024

Thanks! Glad you like it.

When running on a cloud server, I would also feel very uncomfortable about exposing grafana and/or teslamate to the internet. Especially with the default docker-compose config the database user used by grafana is not restricted to read access only. Also, the API tokens are stored in the database. Therefore, with the default setup the tokens could be retrieved through grafana.

Personally, I would not want to rely on authentication provided by grafana. So there are two alternatives in my opinion:

  1. don't publicly expose any port at all and instead use a VPN (e.g. wireguard) to connect to the server.
  2. use a reverse-proxy that provides proper HTTPS and HTTP basic access authentication e.g. nginx or Traefik. The latter has everything built-in and requires a minimal config.

from teslamate.

rfvgyhn avatar rfvgyhn commented on May 16, 2024

I run behind a reverse proxy (letsencrypt-companion) but grafana does support quite a few different auth mechanisms. You can specify those options in your docker config as env vars.

from teslamate.

sbeaudette avatar sbeaudette commented on May 16, 2024

thanks for the ideas

from teslamate.

DrMichael avatar DrMichael commented on May 16, 2024

How would _ set GF_AUTH_ANONYMOUS_ENABLED to false, so that Grafana only works with a valid login? And, btw, how could I add a user to Grafana? I am geeting "Permission denied", when trying that under admin...

from teslamate.

adriankumpf avatar adriankumpf commented on May 16, 2024

Add GF_AUTH_ANONYMOUS_ENABLED to the docker-compose file:

  grafana:
    image: teslamate/grafana:latest
    environment:
      - DATABASE_USER=teslamate
      - DATABASE_PASS=secret
      - DATABASE_NAME=teslamate
      - DATABASE_HOST=db
      - GF_AUTH_ANONYMOUS_ENABLED=false
    ports:
      - 3000:3000
    volumes:
      - teslamate-grafana-data:/var/lib/grafana

To create a new user login with the default admin user (password is admin) first.

from teslamate.

DrMichael avatar DrMichael commented on May 16, 2024

Thanks, great. How could I add another user then?

from teslamate.

adriankumpf avatar adriankumpf commented on May 16, 2024

Did you try that: https://community.grafana.com/t/previous-page-next-page-add-users-without-having-to-send-an-invite/11460

from teslamate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.