Bug#150607: document best practices for web apps
"Serafeim (Serafi) Zanikolas" <[email protected]> Tue, 05 May 2026 21:34:48 +0200
| Newsgroups | gmane.linux.debian.devel.policy |
|---|---|
| Message-ID | <DIAZTYWBGBES.3R6SD3PSSEYMP__30898.7287616887$1778009727$gmane$org@debian.org> |
On Tue May 5, 2026 at 12:07 PM CEST, Holger Levsen wrote: > On Mon, May 04, 2026 at 10:16:27PM +0200, Serafeim (Serafi) Zanikolas wrote: >> please find attached a patch. there might be better packages to mention as >> examples, no idea. > > maybe also say something about opening ports on localhost only? (or not?) agree, revised patch attached. took the opportunity to also s/hugo/dfsg-new-queue/ (hugo is only a static site generator and dfsg-new-queue is a great example) thanks, serafi
0001-best-pkging-practices-add-high-level-guidance-for-da.patch
(text/x-patch, 1.9 KB)
From 114ad6bf947b1c0137c3d0294d89a3298d2fee94 Mon Sep 17 00:00:00 2001 From: "Serafeim (Serafi) Zanikolas" <[email protected]> Date: Mon, 4 May 2026 22:10:35 +0200 Subject: [PATCH] best-pkging-practices: add high level guidance for daemons and web apps. Closes: #150607. --- source/best-pkging-practices.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/best-pkging-practices.rst b/source/best-pkging-practices.rst index a4b11ff..3d1fd75 100644 --- a/source/best-pkging-practices.rst +++ b/source/best-pkging-practices.rst @@ -1349,6 +1349,23 @@ corresponding packaging rules and practices: - Rust packaging is described in the `Debian Rust Team Book <https://rust-team.pages.debian.net/book/>`__;. +- Packages providing services ("daemons") should be functional on a fresh + install, to the extent that that is possible without compromising security + (e.g. a web server should by default be up and running and serve a dummy + page, but must otherwise not allow unauthenticated sensitive operations; + consider whether to serve only on the localhost network interface, by + default). + +- Web application packages should aim to have their dependencies (including + javascript) packaged separately, and should carry out whatever setup is + necessary for basic and secure functionality out of the box (e.g. create a + database, ship configs with reasonable defaults, install files in appropriate + location with appropriate permissions, etc). For examples, look at how + existing web applications are packaged, e.g. dfsg-new-queue for Go, gitlab + for ruby on rails, node-shiny-server for NPM. diaspora-installer is a dummy + package which downloads diaspora (also pulling in runtime dependencies as + rubygems) and configures it to use PostgreSQL and Nginx. + .. _bpp-archindepdata: Architecture-independent data -- 2.47.3
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA2RWqo7IwLCLSFYbT59tVQ7WEioFAmn6RlgACgkQT59tVQ7W EirwUhAAy7uwntHdLnNfMgxVHO9UiEiFp7pYQb/Q/TSmsMmiWvTFs2ZLbyiNnVaM 55Dsa5//9zVVhXsVSIwQVVxl0Dn9gpkXCFCa7XsZsh0EkKelxsgm/puBNHsUWDRy F+2werSvW62R+SjCk3Zu+Z8UytULANh9DRUdg4S5jPGmK0WDevMGEHbt9HrcOlOH eV7LqIY4SVuAdRcvCtPzHF9niolJ8bdNdE+EADKu/oW/XElgQ9/SAG+zNvqXyT2X /yc2yHktZYUiAFVPlpLP7aDubW3QQzSpbR3INWNEJKnf2FjeewH31uVEiBbyO6am U3S7C18O8ddnmF17S+g1glMHpf2nbd8SdSm3oOzPW9L+lGT3kozWs2iB1Jy0wGfd uzBhW0KJtkscr96zot6bSbwrMwzkQ5laSybHDva6vLNpkW5OqnxFJA9D3V8Rnl9j KDEHA96B1r7gNoK3koolp44ShZq+kuGLa4ZvufQG85ERGy4hJ/bR1L+20v5HjtjG f45YvgKcwjf0wCItpSlqMwc0CcEffS18XwbSo65NNKryG+rJJ38PEzFp/k9bTJTp 92h8O2461Q/wBrnqWfshLRDZSSn4Y9/QNUPHW7Rc11i1UFwiKtTgzGTgjBUnepoO fRjRxrihuPZvUF0vbbIMURNXclLlIYBms0tY9qfiJddsH9DkG0Y= =LAa7 -----END PGP SIGNATURE-----