From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jdTQp04S4z2yFc for ; Mon, 30 Nov 2026 16:06:10 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jdTQk1G2gz2xfR for ; Mon, 30 Nov 2026 16:06:06 +0000 (UTC) Received: from michael.sof.ipfire.org (michael.sof.ipfire.org [172.28.140.100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bit raw public key) server-digest SHA256 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "michael.sof.ipfire.org", Issuer "YE2" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jdTQj3xplzmP; Mon, 30 Nov 2026 16:06:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1796054765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B31EQQoEQFIYrJA0QEWGjk5Qn7NNFAxEW45CDYFrDNA=; b=ZdXrBTp0o0hjdveYmtrWbLbDWRMF2xPnoHi3Kv6/InlSGke/XFlE2cqC/PRwKfSVWbEzbg F9l7yG9G598o0WElyTbfkS9ekj56Tt96dQLAK8RSJICOEaWK7Orp4iIurtySrLHws/VvqD uxrNFp+79ZJPK6TLAOKIOmcSRWiwR98JGPf1cb0+4ZBo4lDyhmyKE4eCqAgf5fhNQztdbv PMswmv2p6nUPRFmb+dA8NB+/Q8niwG+4xePge8BhnIeZp+KTsghABvD/uW5jGsNeCgIY66 Pp6hC/B1U8WWEFcNgx1+bFZKeNmquDGu+MR66cYBFSpylSPt7Gr5QsZrurGKXA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1796054765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B31EQQoEQFIYrJA0QEWGjk5Qn7NNFAxEW45CDYFrDNA=; b=2kalIh0jI0WE8Wz/f4m4Kt3+U1OrN2QRBF2BLZX1UtcNjBjI61ERq3SNCZJTstFama/boU Fb68mqXeGPr7kRDQ== Received: by michael.sof.ipfire.org (Postfix, from userid 0) id 4jdTQh6B00z2ydT; Mon, 30 Nov 2026 16:06:04 +0000 (UTC) From: Michael Tremer To: Stefan Schantl Cc: development@lists.ipfire.org Subject: Re: [PATCH 07/13] gerbera: Ship default config file In-Reply-To: <20261130154031.269150-8-stefan.schantl@ipfire.org> References: <20261130154031.269150-8-stefan.schantl@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: <4jdTQh6B00z2ydT@michael.sof.ipfire.org> Date: Mon, 30 Nov 2026 16:06:04 +0000 (UTC) Hello Stefan, I have a couple of concerns about the default configuration: > + > + > + 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? > + uuid:f028042b-f643-4ff2-afb6-eac9c8123d45 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. > + /var/ipfire/gerbera 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