chore: security updates
This commit is contained in:
Generated
+25
-25
@@ -320,11 +320,11 @@
|
||||
"treefmt-nix": "treefmt-nix_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1791368707,
|
||||
"narHash": "sha256-HmIA3HZYBSBhzUF7TZ0HDx0+DyVg4iNWJhqRoG8xZjQ=",
|
||||
"lastModified": 1792485075,
|
||||
"narHash": "sha256-o04WvscL+MhtarpbluifQZLA6lIP3B0g6NDUWaM/asc=",
|
||||
"owner": "mulatta",
|
||||
"repo": "buzz.nix",
|
||||
"rev": "3feda8d4f2435d430e46b204d88569d99e821839",
|
||||
"rev": "22a9f566d21317181b4b40601570e81a02ff2d8c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -795,11 +795,11 @@
|
||||
"opencode": "opencode_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1791983185,
|
||||
"narHash": "sha256-GTgMSMeySQwm16olGkf9K6aC+zwLpY4SW6zGfow1Ty8=",
|
||||
"lastModified": 1792657078,
|
||||
"narHash": "sha256-JPnFfj9FT55SdjXICFCEOQwaXfxv0YPqlGdCOmHXpzo=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "cbd7d982ef6f8f71bf6b8ac95d216bdf2a7a8edb",
|
||||
"revCount": 405,
|
||||
"rev": "239450162efbe04e0a5ab2804daa197407d97690",
|
||||
"revCount": 409,
|
||||
"type": "git",
|
||||
"url": "https://code.m3ta.dev/m3tam3re/nixpkgs"
|
||||
},
|
||||
@@ -1038,11 +1038,11 @@
|
||||
},
|
||||
"nixpkgs-master_2": {
|
||||
"locked": {
|
||||
"lastModified": 1791717656,
|
||||
"narHash": "sha256-NHZsKA3fUek3FlFk9yIAdM/+C3JlUxqHHFini7BevD0=",
|
||||
"lastModified": 1792653584,
|
||||
"narHash": "sha256-vniEjRZ2skWqpreoaSJt7MCXDc/uZI/+ZDdLSa1/h6I=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f38d30d14a7442201671d50c86a2ec719978168e",
|
||||
"rev": "6c21ae394d8839a9d4cad6e2fb2f312ebef0447b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -1198,11 +1198,11 @@
|
||||
},
|
||||
"nixpkgs_7": {
|
||||
"locked": {
|
||||
"lastModified": 1791594108,
|
||||
"narHash": "sha256-XK4KceonkwD8LuMAt/vNrz982mXJM5jeHAxMwsUXXAQ=",
|
||||
"lastModified": 1792502884,
|
||||
"narHash": "sha256-IoNisKcGbUjdd45qCqywGMCYmZ5EnkxezvLII0FWwNA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "6510408d147d8c5e6d76043e899e9251756f6a75",
|
||||
"rev": "02c087f3fe673c9e317f206a627cb6b910336dbe",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -1230,11 +1230,11 @@
|
||||
},
|
||||
"nixpkgs_9": {
|
||||
"locked": {
|
||||
"lastModified": 1791765022,
|
||||
"narHash": "sha256-ZGq3ptZzA+oO0N/Wi/F+GbuTijLkYExD01LvpNFAvr0=",
|
||||
"lastModified": 1792615934,
|
||||
"narHash": "sha256-MlvRfa1O5Cqc2/a+gG+l9TSuowEoCKCmrJ1d9oAVm0I=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "7993f34ee47e28a3d607a525aadc6c94b73be728",
|
||||
"rev": "da6dc0e7b26060f2f71ce3ef7088fb56ee44fa36",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -1330,11 +1330,11 @@
|
||||
"nixpkgs": "nixpkgs_8"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1791710828,
|
||||
"narHash": "sha256-Kk5uJmhse0sKaAWg2fUC7GiAJDPIdzm9xyBLjvh5EUc=",
|
||||
"lastModified": 1792644899,
|
||||
"narHash": "sha256-ub192yT1SwxVyf2DHKW34xHJnL/LXRi2jm1IFyZMkqQ=",
|
||||
"owner": "anomalyco",
|
||||
"repo": "opencode",
|
||||
"rev": "d21b0790a6c146815f28fea604e41e922f009590",
|
||||
"rev": "c93aaae37157d785f76a8e9a9243a6560e286468",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -1495,11 +1495,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1791013993,
|
||||
"narHash": "sha256-BiFPwFsbFnZH5GfWbQFKYuQNg+67aNQCoRSRNTeJFQc=",
|
||||
"lastModified": 1792219666,
|
||||
"narHash": "sha256-RMO08tKD+hFIL5ryWi85VY4aHE5oIpdV1h4kVFctOkw=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "7470661ba2b51156048af08464b82020223dc942",
|
||||
"rev": "a110337465cfb76e3806b81b9db3094c3e6e770a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -1622,11 +1622,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1790542030,
|
||||
"narHash": "sha256-U6m0B5+ALyOLYG4OVvtguLdem7iYgN6cIP5Q1RhM+g8=",
|
||||
"lastModified": 1791885023,
|
||||
"narHash": "sha256-C3alQ2MEt0zVrUSho5NUDo3jmhbff72++bfwoqT9Omo=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "6aca3b3649eb1edf472eca3e91e6bcc0c84a6ad3",
|
||||
"rev": "0d6d739a833ba9a9c93034862e4a7b061a062a1c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -48,6 +48,29 @@
|
||||
lib.listToAttrs (map (db:
|
||||
lib.nameValuePair db "host=127.0.0.1 port=${toString pgPort} dbname=${db}")
|
||||
dbs);
|
||||
|
||||
# Boot-Race (Vorfall 2026-10-18): netavark legt die Bridge-IP des Podman-
|
||||
# Netzwerks „web" (podman1, 10.89.0.1/24) erst an, wenn der erste Container
|
||||
# des Netzwerks startet. pgbouncer startet beim Boot aber VOR den
|
||||
# Container-Diensten → bind() auf 10.89.0.1 schlägt fehl („Cannot assign
|
||||
# requested address"). pgbouncer läuft danach trotzdem weiter (nur auf
|
||||
# 127.0.0.1) und systemd zeigt beide Dienste „active" — alle Container-Apps
|
||||
# erhalten auf der Bridge connection refused und fallen in den
|
||||
# Wartungsmodus. Erst ein manueller Dienst-Restart (Bridge existiert
|
||||
# inzwischen) behebt es.
|
||||
#
|
||||
# Fix: vor dem Start auf die Bridge-IP warten. Nach Ablauf des Timeouts
|
||||
# trotzdem starten (Warnung ins Journal) — sonst wären auch localhost-
|
||||
# Clients (z. B. vaultwarden) ganz ohne Dienst, wie heute auch.
|
||||
waitForBridge = pkgs.writeShellScript "pgbouncer-wait-for-bridge" ''
|
||||
for _ in $(seq 1 120); do
|
||||
if ${pkgs.iproute2}/bin/ip -4 -o addr show | ${pkgs.gnugrep}/bin/grep -q "inet ${hostBridgeIP}/"; then
|
||||
exit 0
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
echo "WARNING: ${hostBridgeIP} (Podman-Bridge podman1) nach 120s nicht vorhanden — pgbouncer lauscht nur auf 127.0.0.1!" >&2
|
||||
'';
|
||||
in {
|
||||
services.pgbouncer = {
|
||||
enable = true;
|
||||
@@ -81,6 +104,7 @@ in {
|
||||
systemd.services.pgbouncer = {
|
||||
after = ["postgresql.service"];
|
||||
requires = ["postgresql.service"];
|
||||
serviceConfig.ExecStartPre = lib.mkBefore waitForBridge;
|
||||
};
|
||||
|
||||
environment.etc."pgbouncer/pgbouncer-session.ini".text = let
|
||||
@@ -141,6 +165,7 @@ in {
|
||||
User = "pgbouncer";
|
||||
Group = "pgbouncer";
|
||||
RuntimeDirectory = "pgbouncer-session";
|
||||
ExecStartPre = waitForBridge;
|
||||
ExecStart = "${pkgs.pgbouncer}/bin/pgbouncer /etc/pgbouncer/pgbouncer-session.ini";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
|
||||
Reference in New Issue
Block a user