Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id B8E37781344 for <~alpine/users@lists.alpinelinux.org>; Tue, 29 Mar 2022 12:55:40 +0000 (UTC) Received: by mail-oo1-f48.google.com with SMTP id l24-20020a4a8558000000b00320d5a1f938so3076422ooh.8 for <~alpine/users@lists.alpinelinux.org>; Tue, 29 Mar 2022 05:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=rfYIT1QEgNVw3U5xKx2UO3367JKI3WveYvaboqOg/3w=; b=RlpT09WhqO0OnamHg4GnDdwO6FnHWZUwr+fvPIlLze+2iYmZdYn4+hJIinsR6khogL jVhKzLu1swYNsPPoPsDjjtdWNh8X60rv7N8zbflh5IaE6j5YMY2ISW49qAvrty7xM+W2 aLU1aonR7AgFB4f//na66OUx0y8M5aL3nHFqdlpt1QuarSh/sE2YJugXSs/kieXYEmZB Z6BQ5BU6FiVKj+O+vdwhKZqDcibk6Nv4Mi0LsChSWkhH2RLgiA1a9QKi3/kahELt1rbp QJF4rclixHengUoXoXykYmylRlwPSqapbnVZ+h3n0K63cZmzti+8fc2GOYXE1s/3NZBu h4Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rfYIT1QEgNVw3U5xKx2UO3367JKI3WveYvaboqOg/3w=; b=MvhaVMmRh5EDl/mdwsWQ6i8de/2aZs2KuSYgWwmRsLmh3GzpyKx1PM7dGJWMfw/FBW 6EmiT9GHWvS+np6TKwhdMWHlKKO/GiNvK1+SbYwSiyrd6kT3o4OZ5VLVDr9fwnSmS5/M z6ydMXpK34GEhCz9SykP0YjRx4IHr+hXXEX76smgbdsp4muimc00Pyfcr8NvFVRtOn6j TZGfIA+yprAMZkmZ7nmXyRXkt+VddwZXuL9sGEoH9apPz6rfujHh51aMCPbp2Gcx0vpW w4M5A6vt7nuGR/6clk+T3ju6FbaIygvIhq4Ke+LdJNADKvSIpGVUUXkoe0TSjP2Ft4lO nkTQ== X-Gm-Message-State: AOAM533cAOOJLqtivJ+Mpe4bdPwfhsAep3aMsfsD91wtGU7He9tNSaUs sQkj1zjnN9nztyQpaA7LbqHj/t5+/KwiLBTeK1s= X-Google-Smtp-Source: ABdhPJzrIQUtApyI2zzXUVvXSXar/7AXiO8kvqluxOQMnbSNB5Wf6sL8xiLSW4Ic556ACmUbfq12uI6biAWw119YvmI= X-Received: by 2002:a4a:d887:0:b0:320:d6e1:2f7a with SMTP id b7-20020a4ad887000000b00320d6e12f7amr939753oov.97.1648558539149; Tue, 29 Mar 2022 05:55:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Konstantin Kulikov Date: Tue, 29 Mar 2022 15:55:28 +0300 Message-ID: Subject: Re: issue with grafana alpine package config To: Sergio Valentini , ~alpine/users@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" + ~alpine/users Hi. >I just don't know how else to report this Issues with packages are to be reported on gitlab https://gitlab.alpinelinux.org/alpine/aports/-/issues >some values hard-coded into conf.d conf.d files are supposed to be edited by admins. Removing that line is the right solution for your problem. >Would you be open to removing this line from the conf.d file? It's not ok for unsecured services in default configuration to listen on all interfaces. So no. There were several considerations to put those settings in conf.d instead of grafana.ini: 1. init.d script has to create data directories and set their permissions, that means path to data dir needs to be a variable (GRAFANA_HOME) 2. grafana.ini didn't support envvar expansion until 7.1 (or at least it wasn't documented) 3. log.mode=syslog requires rc_need=logger. I like when related settings are located together 4. all that leaves listen address, I decided not to patch config file for that one option It is possible to move those settings to grafana.ini, but it is a lot of work for very little profit, as well as annoying "WARNING: please migrate to new config file" for every single user of this package. And I'm against migrating config in a backwards incompatible way. On Mon, Mar 28, 2022 at 7:17 AM Sergio Valentini wrote: > > Hey so sorry to bother you via email, I just don't know how else to report this. > I noticed that your package has some values hard-coded into conf.d, like: > > cfg:server.http_addr=127.0.0.1 > > > So no matter what one puts on /etc/grafana.ini the server will only accept connections from itself. > > People who are not familiar with init.d may have a hard time figuring out why they can't connect to the server. > > Commenting this line out fixes the problem. Would you be open to removing this line from the conf.d file? > > > Thanks! > > > Sergio