!zghijEASpYQWYFzriI:nixos.org

Hydra

388 Members
109 Servers

Load older messages


SenderMessageTime
11 May 2022
@linus:schreibt.jetzt@linus:schreibt.jetztSo we might manage to get a version recent enough to include that PR in soon21:52:41
@hexa:lossy.networkhexaneat22:01:25
12 May 2022
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgIs it possible to have multiple people handle a project?07:25:57
13 May 2022
@os:matrix.flyingcircus.ioosnyx (he/him) joined the room.10:17:33
@os:matrix.flyingcircus.ioosnyx (he/him) Hi there.
Question: My Hydra is complaining about is forbidden in restricted mode a eval time. What kind of restricted mode is this referring to?
I cannot find the term restrict* in the hydra docs at all. And while there is the Nix feature of restrict-eval, this is probably not meant here as that feature disables access to network for source fetching (except for an allow list), but my Hydra is doing such fetches just fine.
10:20:37
@linus:schreibt.jetzt@linus:schreibt.jetzt Oliver Schmidt: it probably is restrict-eval, or are you actually fetching sources during evaluation time? 10:21:33
@linus:schreibt.jetzt@linus:schreibt.jetztBecause restrict-eval doesn't affect fixed-output derivations, which are the mechanism through which sources are usually fetched.10:22:04
@os:matrix.flyingcircus.ioosnyx (he/him)Ah. good to know, the docs read otherwise.10:22:23
@os:matrix.flyingcircus.ioosnyx (he/him) The affected path is in the local store though:
error: access to path '/nix/store/p1w78v344m0aaajzr6a4vfy0zm1ppsiz-nix-phps/pkgs/development/interpreters/php/generic.nix' is forbidden in restricted mode
10:22:40
@linus:schreibt.jetzt@linus:schreibt.jetzthow does it get there?10:23:12
@os:matrix.flyingcircus.ioosnyx (he/him) Good question, because this dir should be vendored in our overlay but apparently isn't... 10:24:18
@janne.hess:helsinki-systems.dedas_jHydra doesn't have an option to toggle this for some reason10:24:45
@janne.hess:helsinki-systems.dedas_jhttps://github.com/NixOS/hydra/pull/88810:25:01
@os:matrix.flyingcircus.ioosnyx (he/him) But before looking into that, back to restrict-eval: With that being off by default, I cannot find it being activated in the /etc/nix/nix.conf of the hydra host. 10:25:06
@janne.hess:helsinki-systems.dedas_jthere is also some option that allows you to selectively unrestrict paths… but I have never used that10:25:52
@os:matrix.flyingcircus.ioosnyx (he/him)
In reply to @janne.hess:helsinki-systems.de
Hydra doesn't have an option to toggle this for some reason
Ah, that explains why it's on in Hydr
10:27:45
@os:matrix.flyingcircus.ioosnyx (he/him)
In reply to @janne.hess:helsinki-systems.de
Hydra doesn't have an option to toggle this for some reason
* Ah, that explains why it's on in Hydra
10:27:47
@janne.hess:helsinki-systems.dedas_j ah allowed-uris is the option I was talking about but I have no idea what to do with it. Maybe set it to /nix/store? I really don't know 10:28:42
@os:matrix.flyingcircus.ioosnyx (he/him)
In reply to @linus:schreibt.jetzt
Because restrict-eval doesn't affect fixed-output derivations, which are the mechanism through which sources are usually fetched.
That doesn't read like this in the nix docs: https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-restrict-eval
So if this is true it should better be mentioned there.
10:28:48
@linus:schreibt.jetzt@linus:schreibt.jetztthe key word there is "evaluator"10:29:21
@os:matrix.flyingcircus.ioosnyx (he/him)I first will have a look how that directory is actually created, I guess some tracing comes in handy there.10:29:37
@os:matrix.flyingcircus.ioosnyx (he/him)
In reply to @linus:schreibt.jetzt
the key word there is "evaluator"
Ah, the component that creates the .drv files to be realised by the nix daemon later?
10:31:32
@linus:schreibt.jetzt@linus:schreibt.jetztnot necessarily the daemon, but yes10:31:44
@os:matrix.flyingcircus.ioosnyx (he/him)Understood. Yeah, not always the daemon (see single-user installs), but I wanted to simplify for clarity. Thx.10:32:27
@linus:schreibt.jetzt@linus:schreibt.jetztthe evaluator also talks to the daemon on multi-user installs, in order to actually create the .drvs :)10:33:10
@os:matrix.flyingcircus.ioosnyx (he/him) das_j: Do you think a remark about the naming of "is forbidden in restricted mode" (Hydra error, not found in Hyfra docs) vs. "restrict-eval" (underlying Nix feature) deserves its own issue or shall I mention it in PR #888? 10:34:29
@janne.hess:helsinki-systems.dedas_j
In reply to @os:matrix.flyingcircus.io
das_j: Do you think a remark about the naming of "is forbidden in restricted mode" (Hydra error, not found in Hyfra docs) vs. "restrict-eval" (underlying Nix feature) deserves its own issue or shall I mention it in PR #888?
I don't know, maybe not in #888 since I doubt this will ever get merged or looked at again
10:35:00
@os:matrix.flyingcircus.ioosnyx (he/him)It could be mentioned in the Hydra docs that the "restricted mode" is derived from "restrict-eval", or the error message could be rephrased10:35:40
@os:matrix.flyingcircus.ioosnyx (he/him)Or if #888 is abandoned than someone (I?) might just document that restricted mode == restrict-eval is always switched on.10:36:22
@janne.hess:helsinki-systems.dedas_j
In reply to @os:matrix.flyingcircus.io
Or if #888 is abandoned than someone (I?) might just document that restricted mode == restrict-eval is always switched on.
It's not abandoned, we do rebase it to master when needed because it's one of the 20 patches we pick into our downstream hydra :D
10:37:01

Show newer messages


Back to Room ListRoom Version: 6