public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: Stefan Schantl <stefan.schantl@ipfire.org>
Cc: development@lists.ipfire.org
Subject: Re: [PATCH 07/13] gerbera: Ship default config file
Date: Mon, 30 Nov 2026 16:06:04 +0000 (UTC)	[thread overview]
Message-ID: <4jdTQh6B00z2ydT@michael.sof.ipfire.org> (raw)
In-Reply-To: <20261130154031.269150-8-stefan.schantl@ipfire.org>

Hello Stefan,

I have a couple of concerns about the default configuration:

> +      <accounts enabled="yes" session-timeout="30">
> +        <account user="gerbera" password="ipfire" />
> +      </accounts>

We should not ship a web interface with a well-known default password.
Everyone who can reach the port can add files, change the configuration
and browse the filesystem. Even though the initscript binds it to green0,
I would rather not rely on the network being trustworthy. Could we ship
without an account and let the user create one, or disable the UI by default?

> +    <udn>uuid:f028042b-f643-4ff2-afb6-eac9c8123d45</udn>

This is the unique device name of the server. If it is the same on every
IPFire system, then clients that see two of them (or that cache one) will
get confused. It would be better to leave it empty so that gerbera generates
one, or to generate it in the build/first start.

> +    <home override="no">/var/ipfire/gerbera</home>

The initscript uses -m /var/lib/gerbera and the backup definition and the
directory that the lfs creates are /var/lib/gerbera. This path does not
match, so either the database will not be backed up or the config is
ignored. Please make them all the same.

> +     This file was generated by Gerbera 3.0.0

Since you update to 3.3.0 in a later patch, it would be good to regenerate
this file with the version that we actually ship, so that we do not miss new
options and the comment is not wrong.

> +	install -m 644 $(DIR_SRC)/config/gerbera/config.xml /etc/gerbera

(This is in the next patch, but it belongs here.) Because this file is part
of the package, it will be overwritten on every update of the add-on. How do
we want to handle changes that the user has made? I would guess that this is
what the backup is for, but then the update would be silently destructive.
Installing it only when it does not exist yet would be safer.

-Michael


  reply	other threads:[~2026-11-30 16:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 15:18 [Patchset] - Gerbera a uPnP/DLNA media server Stefan Schantl
2026-11-30 15:18 ` [PATCH 01/13] libupnp: New package Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 02/13] spdlog: " Stefan Schantl
2026-11-30 15:18 ` [PATCH 03/13] jsoncpp: " Stefan Schantl
2026-11-30 15:18 ` [PATCH 04/13] pugixml: " Stefan Schantl
2026-11-30 15:18 ` [PATCH 05/13] duktape: " Stefan Schantl
2026-11-30 15:18 ` [PATCH 06/13] gerbera: " Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 07/13] gerbera: Ship default config file Stefan Schantl
2026-11-30 16:06   ` Michael Tremer [this message]
2026-11-30 15:18 ` [PATCH 08/13] gerbera: Add initscript Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 09/13] gerbera: Add backup definitions Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 10/13] gerbera: Update to 3.3.0 Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 11/13] libupnp: Rootfile update Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 12/13] gerbera: Fix installing config file Stefan Schantl
2026-11-30 16:06   ` Michael Tremer
2026-11-30 15:18 ` [PATCH 13/13] gerbera: Add rc symlinks for autostart on boot Stefan Schantl
2026-11-30 16:06   ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4jdTQh6B00z2ydT@michael.sof.ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    --cc=stefan.schantl@ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox