!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

64 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
23 Sep 2024
@genghiz:cdw.go7box.xyzGenghizThe only reason I can think for it is because that way you can create the listen socket with group == nginx or caddy independent of the group the main process runs as. 15:46:24
@genghiz:cdw.go7box.xyzGenghizThere are ways to have nearly equivalent security even with this setup, but they require some brainpower to come up with. 15:47:06
@drupol:matrix.orgPol I think I saw a couple of PR for hardening some services. I guess this is the reason why hexa is asking this. 15:53:42
@hexa:lossy.networkhexarolling with a unix socket for reverse proxying is probably best in slot15:55:28
@hexa:lossy.networkhexabest not to break that16:09:32
@genghiz:cdw.go7box.xyzGenghizI mean, one can try it with acls, for one16:15:17
@genghiz:cdw.go7box.xyzGenghizAnother would be to run the process with user:group as php:caddy but keep permissions of 0700 on the data directory16:15:59
@genghiz:cdw.go7box.xyzGenghizThat's how you'd do it for all non-php processes anyway16:16:17
@genghiz:cdw.go7box.xyzGenghiz
In reply to @genghiz:cdw.go7box.xyz
Another would be to run the process with user:group as php:caddy but keep permissions of 0700 on the data directory
Tbh, though, even if you don't do this as long as the webserver is secured well enough you're basically not bothered, I should think.
16:25:35
@genghiz:cdw.go7box.xyzGenghiz I'd probably add something like systemd.services.phpfpm-<name>.settings.SupplementaryGroups = [ "nginx" "caddy" "httpd" ]; or some such with if conditions for whether those services are enabled or not. 16:26:58
@genghiz:cdw.go7box.xyzGenghizI've added privatebin in this PR: https://github.com/NixOS/nixpkgs/pull/34401417:52:50
26 Sep 2024
@vendion:matrix.orgvendion joined the room.14:19:45
27 Sep 2024
@genghiz:cdw.go7box.xyzGenghiz
In reply to @genghiz:cdw.go7box.xyz
I've added privatebin in this PR: https://github.com/NixOS/nixpkgs/pull/344014

@drupol:matrix.org Do please have another look whenever you get the time. I’ve responded to your comments.

06:10:58
@drupol:matrix.orgPol Genghiz: The PR title needs to be updated. NixOS module needs a specific format. Also, when using finalAttrs, you don't need the let...in clause anymore. 09:32:46
@genghiz:cdw.go7box.xyzGenghiz
In reply to @drupol:matrix.org
Genghiz: The PR title needs to be updated. NixOS module needs a specific format. Also, when using finalAttrs, you don't need the let...in clause anymore.
I put it through nixfmt and it gave me that as an output. Should I change that?
09:54:21
@genghiz:cdw.go7box.xyzGenghizAnd I’ll remove the let in from there. 09:54:34
@genghiz:cdw.go7box.xyzGenghizMade the changes, do have a look10:04:28
28 Sep 2024
@ma27:nicht-so.sexyma27 Pol uhm, the three updates apply cleanly (it's just the revert of the soap fix that didn't apply). Am I missing something? 20:24:53
@drupol:matrix.orgPol ma27: Feel free to take over, I have to leave the laptop 20:30:19
@ma27:nicht-so.sexyma27on it, just waiting for the builds to finish :)20:30:44
@drupol:matrix.orgPolOki, thanks20:30:54
@drupol:matrix.orgPolI'll review it tomorrow20:31:01
@tgerbet:matrix.orgtgerbetThanks, to be honest I just opened the PR because it "popped" on my security radar and I saw the usual PHP folks were not it20:35:20
@tgerbet:matrix.orgtgerbetI can dedicate some capacity to work on the backport if needed 🙂20:36:05
@ma27:nicht-so.sexyma27 what confuses me about #345177 is that all the patches are gated behind versionOlder clauses that don't apply for the PHPs we've packaged there. We now have 8.2.24 and 8.3.11, so none of these patches are applied. 20:40:44
@drupol:matrix.orgPolIgnore the PR, I was just trying to backport all the things, without really checking carefully.20:49:47
@drupol:matrix.orgPolI'm also making experimentation with jujutsu ;)20:50:03
29 Sep 2024
@genghiz:cdw.go7box.xyzGenghiz Pol: Is there anything I should change in the privatebin PR? 08:33:01
@drupol:matrix.orgPolyes08:58:45
@drupol:matrix.orgPolIt's missing a test (using runTest)08:58:57

Show newer messages


Back to Room ListRoom Version: 6