!zghijEASpYQWYFzriI:nixos.org

Hydra

377 Members
109 Servers

Load older messages


SenderMessageTime
30 Oct 2022
@rimuru:gentoo.chat@rimuru:gentoo.chat changed their profile picture.23:34:06
@rimuru:gentoo.chat@rimuru:gentoo.chat changed their display name from Rimuru to spooky spook 🎃.23:45:35
31 Oct 2022
@tinybronca:sibnsk.net@tinybronca:sibnsk.net changed their display name from underpantsgnome! to underpantsgnome.20:18:56
@kiber_ogur4ik:matrix.orgkiber_ogur4ik joined the room.20:24:29
1 Nov 2022
@rimuru:gentoo.chat@rimuru:gentoo.chat removed their display name spooky spook 🎃.23:45:13
@rimuru:gentoo.chat@rimuru:gentoo.chat set their display name to rimuru.23:48:46
@rimuru:gentoo.chat@rimuru:gentoo.chat changed their profile picture.23:52:40
8 Nov 2022
@pederbs:pvv.ntnu.nopbsds changed their profile picture.00:46:21
@rimuru:gentoo.chat@rimuru:gentoo.chat changed their profile picture.12:32:37
13 Nov 2022
@penglei:matrix.orgpenglei joined the room.16:54:09
@nahfe:nahfe.xyz@nahfe:nahfe.xyz joined the room.19:35:28
15 Nov 2022
@aciceri:nixos.devaciceri joined the room.10:31:32
@aciceri:nixos.devaciceriSomeone knows if there is a way to configure which jobsets a user can restart?10:39:01
@aciceri:nixos.devaciceriOr more generally permissions management for for single jobsets10:39:54
@aciceri:nixos.devaciceriOr even by project10:41:02
@janne.hess:helsinki-systems.dedas_jI only know of the db table, I'm not aware of config in the frontend10:41:24
@aciceri:nixos.devaciceriDo you mean that the table has a schema that captures these informations?10:42:00
@aciceri:nixos.devaciceriI mean permissions per jobsets10:42:14
@janne.hess:helsinki-systems.dedas_j
hydra=# table projectmembers ;
 project | username
---------+----------
(0 rows)
10:42:35
@janne.hess:helsinki-systems.dedas_jthat's the best I know10:42:45
@aciceri:nixos.devaciceridoes this mean that the a user cannot have different permissions o10:44:53
@aciceri:nixos.devaciceri * does this mean that the a user cannot have different permissions for different projects?10:45:02
@aciceri:nixos.devaciceri * does this mean that the an user cannot have different permissions for different projects?10:45:10
@janne.hess:helsinki-systems.dedas_jI have no idea tbh10:45:29
@aciceri:nixos.devaciceri Frankly I'm only interested into the restart-jobs role, I would like to have the same user able to restart jobs from jobsets from a project but not from another project 10:46:28
@aciceri:nixos.devaciceriI would like to manage these users (and which which jobsets they can restart) declaratively using an module option10:50:33
@linus:schreibt.jetzt@linus:schreibt.jetzt
sub mayRestartJobs {
    my ($c, $project) = @_;
    return
        $c->user_exists &&
        (isAdmin($c) ||
         hasRestartJobsRole($c) ||
         isProjectOwner($c, $project));
}
10:54:01
@linus:schreibt.jetzt@linus:schreibt.jetztThat's the entire logic Hydra uses to determine whether a user can restart jobs.10:54:16
@aciceri:nixos.devaciceri
In reply to @janne.hess:helsinki-systems.de
hydra=# table projectmembers ;
 project | username
---------+----------
(0 rows)
suppose there is only a row which puts in relation 'alice' to project and suppose that alice has the restart-jobs role. What happens when another project is created (without writing a new row in projectmembers I mean)? alice is able to restart jobs from this other project?
10:54:24
@linus:schreibt.jetzt@linus:schreibt.jetzt (/src/lib/Hydra/Helper/CatalystUtils.pm) 10:54:52

Show newer messages


Back to Room ListRoom Version: 6