Commit Graph
550023 Commits
Author SHA1 Message Date
Fabian AffolterandGitHub 2a8854d628 Merge pull request #267233 from fabaff/dvc-data-bump
python311Packages.dvc-data: 2.20.0 -> 2.21.0
2023-11-13 17:25:23 +01:00
R. Ryantm ac7490f1fe kaniko: 1.17.0 -> 1.18.0 2023-11-13 16:18:11 +00:00
Raito Bezarius d57926c0b6 nixos/postgresql: improve the assertions for equality of DB user and DB name
It is hard to figure out which one is offending without the database name.
2023-11-13 17:16:25 +01:00
Raito Bezarius 12797a6a39 nixos/postgresql: restore ensurePermissions and strong-deprecate it
As it is technically a breaking change, we should at least make a strong deprecation
of `ensurePermissions` and leave it in the broken state it is, for out of tree users.

We give them a 6 months notice to migrate away by doing so, which is honest.
In the meantime, we forbid usage of `ensurePermissions` inside of nixpkgs.
2023-11-13 17:16:25 +01:00
Maximilian BoschandRaito Bezarius 48459567ae nixos/postgresql: drop ensurePermissions, fix ensureUsers for postgresql15
Closes #216989

First of all, a bit of context: in PostgreSQL, newly created users don't
have the CREATE privilege on the public schema of a database even with
`ALL PRIVILEGES` granted via `ensurePermissions` which is how most of
the DB users are currently set up "declaratively"[1]. This means e.g. a
freshly deployed Nextcloud service will break early because Nextcloud
itself cannot CREATE any tables in the public schema anymore.

The other issue here is that `ensurePermissions` is a mere hack. It's
effectively a mixture of SQL code (e.g. `DATABASE foo` is relying on how
a value is substituted in a query. You'd have to parse a subset of SQL
to actually know which object are permissions granted to for a user).

After analyzing the existing modules I realized that in every case with
a single exception[2] the UNIX system user is equal to the db user is
equal to the db name and I don't see a compelling reason why people
would change that in 99% of the cases. In fact, some modules would even
break if you'd change that because the declarations of the system user &
the db user are mixed up[3].

So I decided to go with something new which restricts the ways to use
`ensure*` options rather than expanding those[4]. Effectively this means
that

* The DB user _must_ be equal to the DB name.
* Permissions are granted via `ensureDBOwnerhip` for an attribute-set in
  `ensureUsers`. That way, the user is actually the owner and can
  perform `CREATE`.
* For such a postgres user, a database must be declared in
  `ensureDatabases`.

For anything else, a custom state management should be implemented. This
can either be `initialScript`, doing it manual, outside of the module or
by implementing proper state management for postgresql[5], but the
current state of `ensure*` isn't even declarative, but a convergent tool
which is what Nix actually claims to _not_ do.

Regarding existing setups: there are effectively two options:

* Leave everything as-is (assuming that system user == db user == db
  name): then the DB user will automatically become the DB owner and
  everything else stays the same.

* Drop the `createDatabase = true;` declarations: nothing will change
  because a removal of `ensure*` statements is ignored, so it doesn't
  matter at all whether this option is kept after the first deploy (and
  later on you'd usually restore from backups anyways).

  The DB user isn't the owner of the DB then, but for an existing setup
  this is irrelevant because CREATE on the public schema isn't revoked
  from existing users (only not granted for new users).

[1] not really declarative though because removals of these statements
    are simply ignored for instance: https://github.com/NixOS/nixpkgs/issues/206467
[2] `services.invidious`: I removed the `ensure*` part temporarily
    because it IMHO falls into the category "manage the state on your
    own" (see the commit message). See also
    https://github.com/NixOS/nixpkgs/pull/265857
[3] e.g. roundcube had `"DATABASE ${cfg.database.username}" = "ALL PRIVILEGES";`
[4] As opposed to other changes that are considered a potential fix, but
    also add more things like collation for DBs or passwords that are
    _never_ touched again when changing those.
[5] As suggested in e.g. https://github.com/NixOS/nixpkgs/issues/206467
2023-11-13 17:16:25 +01:00
DemineandGitHub a77b0d6665 kew: init at 1.5.2 (#267234) 2023-11-13 20:02:29 +04:00
Jonas HeinrichandYt 3c19b6d4c2 python3Packages.django-crontab: init at 0.7.1 2023-11-13 15:53:00 +00:00
R. RyantmandYt 2b7e21b32c op-geth: 1.101301.1 -> 1.101304.0 2023-11-13 15:47:55 +00:00
happysalada 0cf0e67134 python311Packages.bentoml: 1.1.7 -> 1.1.9 2023-11-13 16:42:58 +01:00
OTABI TomoyaandGitHub ed1b0e4807 Merge pull request #267036 from r-ryantm/auto-update/reaper
reaper: 7.02 -> 7.03
2023-11-14 00:32:06 +09:00
Fabian AffolterandGitHub 806d915d4b Merge pull request #267203 from fabaff/webdav4-fix
python311Packages.webdav4: disable CLI tests
2023-11-13 16:25:52 +01:00
Nikolay KorotkiyandGitHub 4bec70f7c9 Merge pull request #267095 from Stekke/monocypher-update
monocypher: 3.1.3 -> 4.0.2
2023-11-13 19:23:19 +04:00
OTABI TomoyaandGitHub e17dacc398 Merge pull request #266948 from r-ryantm/auto-update/pdfhummus
pdfhummus: 4.6 -> 4.6.1
2023-11-14 00:20:02 +09:00
OTABI TomoyaandGitHub 435b4b1411 Merge pull request #266874 from r-ryantm/auto-update/python310Packages.ring-doorbell
python310Packages.ring-doorbell: 0.7.7 -> 0.8.0
2023-11-14 00:19:20 +09:00
OTABI TomoyaandGitHub 25eead4fcc python311Packages.qcelemental: update meta 2023-11-14 00:16:23 +09:00
Stefan Frijters 0374da07c9 hurl: set meta.mainProgram 2023-11-13 16:15:19 +01:00
Fabian Affolter c8fcb5f50f python311Packages.dvc-data: 2.20.0 -> 2.21.0
Diff: https://github.com/iterative/dvc-data/compare/refs/tags/2.20.0...2.21.0

Changelog: https://github.com/iterative/dvc-data/releases/tag/2.21.0
2023-11-13 16:11:59 +01:00
Molly MillerandAlyssa Ross 9cec5c807a nixos/mailman: restart services on failure and increase mailman timeouts 2023-11-13 16:10:55 +01:00
OTABI TomoyaandGitHub c4715cf476 Merge pull request #266315 from DeeUnderscore/update/listenbrainz-mpd-2.3.1
listenbrainz-mpd: 2.2.0 -> 2.3.1
2023-11-14 00:09:34 +09:00
OTABI TomoyaandGitHub e86b25c51f Merge pull request #267218 from Atemu/numbat-maintainer
numbat: add myself as maintainer
2023-11-14 00:07:25 +09:00
Stephen Huan 22211cbeb6 amd-libflame: enable withAMDOpt by default 2023-11-13 10:01:17 -05:00
Stephen Huan dd79cbcd2f amd-libflame: fix cmakeFlags options 2023-11-13 10:00:51 -05:00
OTABI TomoyaandGitHub 92663b6153 Merge pull request #266903 from GaetanLepage/manim
manim: 0.17.3 -> 0.18.0
2023-11-13 23:59:45 +09:00
OTABI TomoyaandGitHub 61b95ec6b0 Merge pull request #266881 from natsukium/pyglm/update
python311Packages.pyglm: 2.7.0 -> 2.7.1
2023-11-13 23:58:55 +09:00
DemineandGitHub d1df76655e tplay: init at 0.4.5 (#266300)
* maintainers: add demine

* tplay: init at 0.4.5
2023-11-13 18:57:48 +04:00
Alyssa Ross 771cae0903 python3.pkgs.django-q: fix for Hyperkitty
mailmanPackages.hyperkitty was marked transiently broken, since it
depends on django-q, even though its Python package set overrides
redis to a verison compatible with django-q.

At the same time, hiredis was moved to being an optional dependency of
django-redis.  It's required by django-q, so use it here.

Fixes: 5cebbd4be4 ("python311Packages.django-q: mark as broken")
2023-11-13 15:36:40 +01:00
Alyssa Ross 92fb22dc0a carla: add missing lib for carla-bridge-lv2-gtk2
Previously, attempting to open calf plugin UIs in Carla would fail,
due to this library not being found when Carla tried to dlopen() it.
2023-11-13 15:36:08 +01:00
Alyssa Ross d0e0f196fe linux-rt_5_10: 5.10.197-rt96 -> 5.10.199-rt97 2023-11-13 15:33:39 +01:00
Alyssa Ross 2e891693f2 linux_testing: 6.6-rc7 -> 6.7-rc1
ZSMALLOC is now the default allocator for ZSWAP, so if the allocator
isn't changed, ZSMALLOC must be y on 6.7 (and will default to that).
The script will set all options that can be modules to m anyway, so
there was no need for us to be explicitly setting it to module before
anyway.
2023-11-13 15:33:39 +01:00
8aedandAlyssa Ross ee137e017c linux: enable the NIST SP800-90A DRBG 2023-11-13 15:33:33 +01:00
emilylange f592d28bcd miniflux: 2.0.49 -> 2.0.50
https://github.com/miniflux/v2/releases/tag/2.0.50
diff: https://github.com/miniflux/v2/compare/2.0.49...2.0.50
2023-11-13 15:33:08 +01:00
Bernardo MeurerandGitHub edfad58322 Merge pull request #267200 from klchen0112/raycast
raycast: 1.60.1 -> 1.61.2
2023-11-13 11:09:30 -03:00
Ryan LahfaandGitHub 8f1753206f Merge pull request #267093 from ElvishJerricco/testing-backdoor-fix-ordering 2023-11-13 15:07:48 +01:00
R. Ryantm 8e96c7e227 sbt-extras: 2023-09-18 -> 2023-10-24 2023-11-13 14:06:52 +00:00
Atemu d992fbfdb6 numbat: add myself as maintainer 2023-11-13 14:58:19 +01:00
Nick CaoandGitHub 0724ba85e6 Merge pull request #267130 from aaronjheng/wgo
wgo: disable flaky tests
2023-11-13 08:53:52 -05:00
Irene Knapp 97a3593893 tenacity: 1.3.2 -> 1.3.3 2023-11-13 05:53:46 -08:00
Nick CaoandGitHub ea0ba50292 Merge pull request #267128 from khaneliman/sketchybar
sketchybar: 2.19.1 -> 2.19.2
2023-11-13 08:53:33 -05:00
Nick CaoandGitHub c606cd4ef1 Merge pull request #267096 from r-ryantm/auto-update/qownnotes
qownnotes: 23.10.1 -> 23.11.1
2023-11-13 08:51:12 -05:00
Nick CaoandGitHub 14c6346266 Merge pull request #267175 from Grafcube/update-scrcpy-2.2
scrcpy: 2.1.1 -> 2.2
2023-11-13 08:49:13 -05:00
Nick CaoandGitHub deca2d61ca Merge pull request #267167 from dotlambda/gitmoji-cli-9.0.0
gitmoji-cli: 8.5.0 -> 9.0.0
2023-11-13 08:45:27 -05:00
Nick CaoandGitHub 2fcdb325de Merge pull request #267150 from r-ryantm/auto-update/krabby
krabby: 0.1.7 -> 0.1.8
2023-11-13 08:43:40 -05:00
Nick CaoandGitHub 4ed9fbd203 Merge pull request #267149 from r-ryantm/auto-update/i3bar-river
i3bar-river: 0.1.3 -> 0.1.5
2023-11-13 08:43:10 -05:00
Nick CaoandGitHub c42941c549 Merge pull request #267148 from r-ryantm/auto-update/moonlight-qt
moonlight-qt: 5.0.0 -> 5.0.1
2023-11-13 08:41:31 -05:00
Nick CaoandGitHub f14a0a7724 Merge pull request #267139 from mfrw/mfrw/pyenv-2.3.32
pyenv: 2.3.31 -> 2.3.32
2023-11-13 08:39:40 -05:00
Nick CaoandGitHub 25116fd3e2 Merge pull request #267183 from r-ryantm/auto-update/cargo-binstall
cargo-binstall: 1.4.4 -> 1.4.5
2023-11-13 08:37:09 -05:00
Nick CaoandGitHub a18e4aaff8 Merge pull request #267184 from aaronjheng/svtplay-dl
svtplay-dl: use nose3 for Python 3.11
2023-11-13 08:36:35 -05:00
Nick CaoandGitHub 8f7a6554c0 Merge pull request #267187 from urish/magic_vlsi_8.3.447
magic-vlsi: 8.3.446 -> 8.3.447
2023-11-13 08:35:40 -05:00
Nick CaoandGitHub 1d0af2a585 Merge pull request #267190 from oluceps/update-fscan
fscan: 1.8.2 -> 1.8.3
2023-11-13 08:34:51 -05:00
Nick CaoandGitHub 8e8b397526 Merge pull request #267192 from wrbbz/pulumi-bin-3.93.0
pulumi-bin: 3.92.0 -> 3.93.0
2023-11-13 08:33:58 -05:00