~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
#
# Possible permissions: SELECT, INSERT, UPDATE, EXECUTE
#
# Note that we can't have INSERT only tables if we are using SQLObject, as it
# creates new entries by first doing an insert (to get the id) and then
# issuing an update
[DEFAULT]
# Objects in these schemas are publicly readable or executable. *not* writable
public_schemas=ts2

[public]
# The pubic role is automatically granted to all users by PostgreSQL
type=group
public.valid_name(text)                 = EXECUTE
public.valid_bug_name(text)             = EXECUTE
public.valid_version(text)              = EXECUTE
public.valid_cve(text)                  = EXECUTE
public.valid_absolute_url(text)         = EXECUTE
public.valid_fingerprint(text)          = EXECUTE
public.valid_keyid(text)                = EXECUTE
public.sha1(text)                       = EXECUTE
public.you_are_your_own_member()        = EXECUTE
public.plpgsql_call_handler()           =
public.plpython_call_handler()          =
public.sourcesourcebackup               =

[ro]
# A user will full readonly access to the database. Generally used for
# interactive querying
type=user
groups=read

[launchpad]
# The main Z3 application
type=user
groups=write
public.bountysubscription               = SELECT, INSERT, UPDATE
public.emailaddress                     = SELECT, INSERT, UPDATE, DELETE
public.distrobounty                     = SELECT, INSERT, UPDATE
public.logintoken                       = SELECT, INSERT, UPDATE, DELETE
public.personlanguage                   = SELECT, INSERT, UPDATE, DELETE
public.productbounty                    = SELECT, INSERT, UPDATE
public.projectbounty                    = SELECT, INSERT, UPDATE
public.maintainership                   = SELECT, INSERT, UPDATE
public.messagechunk                     = SELECT, INSERT
public.poexport                         = SELECT
public.poexportrequest                  = SELECT, INSERT, UPDATE, DELETE
public.packagepublishingpublichistory   = SELECT
public.sourcepackagepublishingpublichistory = SELECT
public.translationgroup                 = SELECT, INSERT, UPDATE
public.translator                       = SELECT, INSERT, UPDATE, DELETE

[librarian]
# The librarian only needs access to two tables, which is has exclusive
# control over. All updates to these tables should go via the librarian.
type=user
public.libraryfilealias                 = SELECT, INSERT
public.libraryfilecontent               = SELECT, INSERT

[poimport]
# Rosetta import script
type=user
groups=write

[poexport]
# Rosetta export script
type=user
public.poexport                         = SELECT
public.potemplate                       = SELECT
public.pofile                           = SELECT
public.pomsgset                         = SELECT
public.potranslationsightingbackup      = SELECT
public.poselection                      = SELECT
public.posubmission                     = SELECT
public.language                         = SELECT
public.potemplatename                   = SELECT
public.distribution                     = SELECT
public.distrorelease                    = SELECT
public.person                           = SELECT
public.poexportrequest                  = SELECT, DELETE
public.libraryfilealias                 = SELECT, INSERT
public.libraryfilecontent               = SELECT, INSERT

[checkwatches]
# Malone bug watch script
type=user
groups=write

[importd]
type=user
groups=write
public.archnamespace                    = SELECT, INSERT, UPDATE, DELETE

[gina]
# Unpack sourcepackages and extract metadata
type=user
groups=write
public.packagepublishinghistory         = SELECT, INSERT, UPDATE, DELETE
public.packagepublishing                = SELECT
public.sourcepackagepublishinghistory   = SELECT, INSERT, UPDATE, DELETE
public.sourcepackagepublishing          = SELECT

[lucille]
type=user
groups=write
public.packagepublishinghistory         = SELECT, INSERT, UPDATE, DELETE
public.packagepublishing                = SELECT
public.sourcepackagepublishinghistory   = SELECT, INSERT, UPDATE, DELETE
public.sourcepackagepublishing          = SELECT

[nicole]
# Pull in product metadata from Freshmeat and other sources
type=user
groups=write

[authserver]
# The authentication server.
type=user
groups=write
#public.pushmirroraccess                 = SELECT, INSERT, UPDATE

[bob]
type=user

[fiera]
type=user
public.buildqueue                       = SELECT, INSERT, UPDATE, DELETE
public.pocketchroot                     = SELECT

[sourcerer]
type=user
public.archarchive                      = SELECT, INSERT
public.archnamespace                    = SELECT, INSERT
public.branch                           = SELECT, INSERT
public.changeset                        = SELECT, INSERT
public.distribution                     = SELECT
public.distrorelease                    = SELECT
public.manifestentry                    = SELECT, INSERT, DELETE
public.manifest                         = SELECT, INSERT, DELETE
public.productrelease                   = SELECT, INSERT
public.product                          = SELECT
public.productseries                    = SELECT
public.sourcepackagename                = SELECT
public.sourcepackagerelease             = SELECT, INSERT

[trebuchet]
# Trebuchet is an XML-RPC backend to HCT. It needs to be audited to
# determine what tables it actually needs access to before being rolled out
# to production. Currently we give it full read-only access to the database
# on the dogfood server.
type=user
groups=read

[write]
type=group
# Full access except for tables that are exclusively updated by
# certain processes, such as the librarian tables. This group is deprecated -
# access should be explicitly granted to users.
public.archarchive                      = SELECT, INSERT, UPDATE
public.archarchivelocation              = SELECT, INSERT, UPDATE
public.archarchivelocationsigner        = SELECT, INSERT, UPDATE
public.archconfig                       = SELECT, INSERT, UPDATE
public.archconfigentry                  = SELECT, INSERT, UPDATE
public.archnamespace                    = SELECT, INSERT, UPDATE
public.archuserid                       = SELECT, INSERT, UPDATE
public.binarypackage                    = SELECT, INSERT, UPDATE
public.binarypackagefile                = SELECT, INSERT, UPDATE
public.binarypackagefilepublishing      = SELECT, INSERT, UPDATE
public.binarypackagename                = SELECT, INSERT, UPDATE
public.binarypackagepublishingview      = SELECT, INSERT, UPDATE
public.bounty                           = SELECT, INSERT, UPDATE
public.branch                           = SELECT, INSERT, UPDATE
public.branchlabel                      = SELECT, INSERT, UPDATE
public.branchrelationship               = SELECT, INSERT, UPDATE
public.bug                              = SELECT, INSERT, UPDATE
public.bugactivity                      = SELECT, INSERT, UPDATE
public.bugattachment                    = SELECT, INSERT, UPDATE
public.bugexternalref                   = SELECT, INSERT, UPDATE
public.buglabel                         = SELECT, INSERT, UPDATE
public.bugmessage                       = SELECT, INSERT, UPDATE
public.bugpackageinfestation            = SELECT, INSERT, UPDATE
public.bugproductinfestation            = SELECT, INSERT, UPDATE
public.bugrelationship                  = SELECT, INSERT, UPDATE
public.bugsubscription                  = SELECT, INSERT, UPDATE
public.bugtask                          = SELECT, INSERT, UPDATE
public.bugtracker                       = SELECT, INSERT, UPDATE
public.bugtrackertype                   = SELECT, INSERT, UPDATE
public.bugwatch                         = SELECT, INSERT, UPDATE
public.build                            = SELECT, INSERT, UPDATE
public.builder                          = SELECT, INSERT, UPDATE
public.changeset                        = SELECT, INSERT, UPDATE
public.changesetfile                    = SELECT, INSERT, UPDATE
public.changesetfilehash                = SELECT, INSERT, UPDATE
public.changesetfilename                = SELECT, INSERT, UPDATE
public.component                        = SELECT, INSERT, UPDATE
public.componentselection               = SELECT, INSERT, UPDATE
public.country                          = SELECT, INSERT, UPDATE
public.cveref                           = SELECT, INSERT, UPDATE
public.distribution                     = SELECT, INSERT, UPDATE
public.distroarchrelease                = SELECT, INSERT, UPDATE
public.distrorelease                    = SELECT, INSERT, UPDATE
public.distroreleasequeue               = SELECT, INSERT, UPDATE
public.distroreleasequeuebuild          = SELECT, INSERT, UPDATE
public.distroreleasequeuesource         = SELECT, INSERT, UPDATE
public.emailaddress                     = SELECT, INSERT, UPDATE
public.gpgkey                           = SELECT, INSERT, UPDATE
public.ircid                            = SELECT, INSERT, UPDATE
public.jabberid                         = SELECT, INSERT, UPDATE
public.karma                            = SELECT, INSERT, UPDATE
public.label                            = SELECT, INSERT, UPDATE
public.language                         = SELECT, INSERT, UPDATE
public.launchpaddatabaserevision        = SELECT, INSERT, UPDATE
public.libraryfilealias                 = SELECT, INSERT
public.libraryfilecontent               = SELECT, INSERT
public.license                          = SELECT, INSERT, UPDATE
public.logintoken                       = SELECT, INSERT, UPDATE
public.manifest                         = SELECT, INSERT, UPDATE
public.manifestentry                    = SELECT, INSERT, UPDATE
public.mirror                           = SELECT, INSERT, UPDATE, DELETE
public.mirrorcontent                    = SELECT, INSERT, UPDATE, DELETE
public.mirrorsourcecontent              = SELECT, INSERT, UPDATE, DELETE
public.teammembership                   = SELECT, INSERT, UPDATE
public.message                          = SELECT, INSERT, UPDATE
public.milestone                        = SELECT, INSERT, UPDATE
public.osfile                           = SELECT, INSERT, UPDATE
public.osfileinpackage                  = SELECT, INSERT, UPDATE
public.packagepublishing                = SELECT
public.packagepublishinghistory         = SELECT, INSERT, UPDATE
public.packageselection                 = SELECT, INSERT, UPDATE
public.packaging                        = SELECT, INSERT, UPDATE
public.person                           = SELECT, INSERT, UPDATE
public.personlabel                      = SELECT, INSERT, UPDATE
public.personlanguage                   = SELECT, INSERT, UPDATE
public.pocomment                        = SELECT, INSERT, UPDATE
public.pofile                           = SELECT, INSERT, UPDATE
public.pomsgid                          = SELECT, INSERT, UPDATE
public.pomsgidsighting                  = SELECT, INSERT, UPDATE
public.pomsgset                         = SELECT, INSERT, UPDATE
public.posubscription                   = SELECT, INSERT, UPDATE
public.potemplate                       = SELECT, INSERT, UPDATE
public.potemplatename                   = SELECT, INSERT, UPDATE
public.potmsgset                        = SELECT, INSERT, UPDATE
public.potranslation                    = SELECT, INSERT, UPDATE
public.potranslationsightingbackup      = SELECT, INSERT, UPDATE
public.poselection                      = SELECT, INSERT, UPDATE
public.posubmission                     = SELECT, INSERT, UPDATE
public.processor                        = SELECT, INSERT, UPDATE
public.processorfamily                  = SELECT, INSERT, UPDATE
public.product                          = SELECT, INSERT, UPDATE
public.productbkbranch                  = SELECT, INSERT, UPDATE
public.productbranchrelationship        = SELECT, INSERT, UPDATE
public.productcvsmodule                 = SELECT, INSERT, UPDATE
public.productlabel                     = SELECT, INSERT, UPDATE
public.productrelease                   = SELECT, INSERT, UPDATE
public.productreleasefile               = SELECT, INSERT, UPDATE
public.productseries                    = SELECT, INSERT, UPDATE
public.productsvnmodule                 = SELECT, INSERT, UPDATE
public.project                          = SELECT, INSERT, UPDATE
public.projectbugtracker                = SELECT, INSERT, UPDATE
public.projectrelationship              = SELECT, INSERT, UPDATE
public.publishedpackageview             = SELECT, INSERT, UPDATE
public.pushmirroraccess                 = SELECT, INSERT, UPDATE
public.schema                           = SELECT, INSERT, UPDATE
public.section                          = SELECT, INSERT, UPDATE
public.sectionselection                 = SELECT, INSERT, UPDATE
public.signedcodeofconduct              = SELECT, INSERT, UPDATE
public.sourcepackagefilepublishing      = SELECT, INSERT, UPDATE
public.sourcepackagename                = SELECT, INSERT, UPDATE
public.sourcepackagepublishing          = SELECT
public.sourcepackagepublishinghistory   = SELECT, INSERT, UPDATE
public.sourcepackagepublishingview      = SELECT
public.sourcepackagerelease             = SELECT, INSERT, UPDATE
public.sourcepackagereleasefile         = SELECT, INSERT, UPDATE
public.spokenin                         = SELECT, INSERT, UPDATE
public.sshkey                           = SELECT, INSERT, UPDATE, DELETE
public.teamparticipation                = SELECT, INSERT, UPDATE, DELETE
public.translationeffort                = SELECT, INSERT, UPDATE
public.translationeffortpotemplate      = SELECT, INSERT, UPDATE
public.vsourcepackageindistro           = SELECT
public.vsourcepackagereleasepublishing  = SELECT
public.wikiname                         = SELECT, INSERT, UPDATE

# This group is now created automatically
# Readonly access to everything
#[read]
#type=group

# This group is now created automatically
# Full access to everything.
# [admin]
# type=group