Commit cb5cb5b
authored
Fix group settings to allow external member into oss-fuzz cc groups (#5155)
Creating groups through the cloud identity API uses a default set of
access settings. We need to change these in order for them to work as CC
groups for OSS-Fuzz projects. Mainly, allowing external members to be
added to the group. These changes cannot be done through the identity
API, so we need to use the groups settings API (which I enabled for the
clusterfuzz-external deployment).
I added some other settings as safeguard to avoid issues with these
groups (as they will be in the public tracker), such as who can
view/post/contact/manage the group to only owners/managers. Also, fixed
some single/double quote style.
**Tests**
* Added unit test.
* Run locally impersonating the clusterfuzz-external service account.
* Output: https://paste.googleplex.com/4898709642018816 (errors in the
first run are expected as googleapiclient logs an error when the
checking for the group and it does not exist).
* Group settings after executing it:
https://screenshot.googleplex.com/5ymqVPoFMwHYraN.png
Context: b/4779641281 parent f96a469 commit cb5cb5b
File tree
3 files changed
+89
-21
lines changed- src/clusterfuzz/_internal
- cron
- google_cloud_utils
- tests/appengine/handlers/cron
3 files changed
+89
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
| |||
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| 76 | + | |
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
| |||
Lines changed: 56 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
52 | | - | |
| 62 | + | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
| |||
58 | 68 | | |
59 | 69 | | |
60 | 70 | | |
61 | | - | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
65 | | - | |
| 75 | + | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
| |||
71 | 81 | | |
72 | 82 | | |
73 | 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 | + | |
74 | 113 | | |
75 | 114 | | |
76 | 115 | | |
| |||
84 | 123 | | |
85 | 124 | | |
86 | 125 | | |
87 | | - | |
| 126 | + | |
88 | 127 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
93 | 132 | | |
94 | | - | |
95 | | - | |
| 133 | + | |
| 134 | + | |
96 | 135 | | |
97 | 136 | | |
98 | 137 | | |
99 | 138 | | |
100 | | - | |
| 139 | + | |
101 | 140 | | |
102 | 141 | | |
103 | 142 | | |
| |||
131 | 170 | | |
132 | 171 | | |
133 | 172 | | |
134 | | - | |
135 | | - | |
| 173 | + | |
| 174 | + | |
136 | 175 | | |
137 | | - | |
138 | | - | |
| 176 | + | |
| 177 | + | |
139 | 178 | | |
140 | 179 | | |
141 | 180 | | |
| |||
159 | 198 | | |
160 | 199 | | |
161 | 200 | | |
162 | | - | |
| 201 | + | |
163 | 202 | | |
164 | | - | |
| 203 | + | |
165 | 204 | | |
166 | 205 | | |
167 | 206 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
77 | 98 | | |
78 | 99 | | |
79 | 100 | | |
| |||
0 commit comments