Debian Codegraph @

gavo/resources/inputs/__system__/users.rd

raw
1 <resource resdir="__system" schema="dc">
2 <meta name="creationDate">2009-01-15T12:00:00</meta>
3 <meta name="description">Tables used for DaCHS user management.</meta>
4 <meta name="subject">virtual-observatories</meta>
5
6 <!-- This has to match whatever is done in gavo.web.creds.
7 -->
8 <table id="users" primary="username" onDisk="True" system="True">
9 <meta name="description">
10 Users known to the data center, together with their credentials.
11
12 Right now, DaCHS only supports user/password credentials. Passwords
13 are stored as scrypt hashes in a custom format combining the
14 id scrypt:, 16 bytes of salt, and finally the hash.
15
16 Manipulate this table through gavo admin adduser, gavo admin
17 deluser, and gavo admin listusers.
18 </meta>
19 <!-- prevent "normal" (e.g., ADQL) users from accessing this table -->
20 <readProfiles/>
21 <column name="username" type="text" tablehead="Username"
22 description="Name of the user."/>
23 <column name="password" type="text" displayHint="type=suppress"
24 description="Password in clear text."/>
25 <!-- This is a plain text password. We could store md5s, but
26 then I guess it's more likely that people will ask for pws
27 than that any unauthorized entity will be interested in them.
28 If that assessment changes, by all means store md5s, since
29 this table is largely unprotected -->
30 <column name="remarks" type="text" description="Free text
31 mainly intended to explain what the user is supposed to
32 be/do"/>
33 </table>
34
35 <table id="groups" onDisk="True" system="True" namePath="users">
36 <meta name="description">
37 Assignment of users to groups.
38
39 Conceptually, each user has an associated group of the same name.
40 A user always is a member of her group. Other users can be added
41 to that group, essentially as in the classic Unix model.
42
43 Manipulate this table through gavo admin addtogroup and gavo admin
44 delfromgroup.
45 </meta>
46 <readProfiles/>
47 <foreignKey inTable="users" source="username"/>
48 <column original="username" description="Name of the user belonging
49 to the group"/>
50 <column name="groupname" type="text" description="Name of the group"/>
51 </table>
52
53 <data id="maketables">
54 <nullGrammar/>
55 <make table="users"/>
56 <make table="groups"/>
57
58 </data>
59 </resource>