[12829] | 1 | .. _security_policy: |
---|
| 2 | |
---|
| 3 | Security |
---|
| 4 | ******** |
---|
| 5 | |
---|
[12849] | 6 | Kofa has a very efficient security machinery. The machinery does not |
---|
| 7 | perform authorization checks on the content objects themselves stored |
---|
| 8 | in the database but restricts the usage of views, i.e. web pages and |
---|
| 9 | forms which are needed to view or edit data. Views are protected by |
---|
| 10 | permissions the user must have to use the view. Instead of assigning |
---|
| 11 | permissions seperately to users, permissions are bundled into sets of |
---|
| 12 | permissions, so-called roles which can be assigned to users through |
---|
| 13 | the web interface. |
---|
[12829] | 14 | |
---|
[12849] | 15 | It is important to note that permissions do not include other |
---|
| 16 | permissions. Only roles 'include' permissions. A 'manage' permission, |
---|
| 17 | for example, does not automatically enable users to open pages which |
---|
| 18 | merely display the data. These pages have their own 'view' |
---|
| 19 | permission. Another example is the ManagePortal permission described |
---|
| 20 | below. The name of the permission may lead to believe that users can |
---|
| 21 | do everything with this permssions. This is not true. It does only |
---|
| 22 | give access to certain pages which are dedicated to portal managers |
---|
| 23 | and must not be accessed by any other user. |
---|
[12829] | 24 | |
---|
| 25 | .. contents:: |
---|
| 26 | |
---|
| 27 | Permissions |
---|
| 28 | =========== |
---|
| 29 | |
---|
[12849] | 30 | The whole set of permission and role classes are described in the |
---|
| 31 | :py:mod:`Permissions and Roles Module<waeup.kofa.permissions>`. Here |
---|
| 32 | we describe only a subset of permission classes which are essential |
---|
| 33 | for the security settings configuration. |
---|
[12829] | 34 | |
---|
| 35 | General Permissions |
---|
| 36 | ------------------- |
---|
| 37 | |
---|
[12843] | 38 | .. autoclass:: waeup.kofa.permissions.Public() |
---|
[12829] | 39 | :noindex: |
---|
| 40 | |
---|
[12843] | 41 | .. autoclass:: waeup.kofa.permissions.Anonymous() |
---|
[12829] | 42 | :noindex: |
---|
| 43 | |
---|
[12843] | 44 | .. autoclass:: waeup.kofa.permissions.Authenticated() |
---|
[12829] | 45 | :noindex: |
---|
| 46 | |
---|
[12843] | 47 | .. autoclass:: waeup.kofa.permissions.ManageUsers() |
---|
[12829] | 48 | :noindex: |
---|
| 49 | |
---|
[12843] | 50 | .. autoclass:: waeup.kofa.permissions.EditUser() |
---|
[12829] | 51 | :noindex: |
---|
| 52 | |
---|
[12843] | 53 | .. autoclass:: waeup.kofa.permissions.ManagePortal() |
---|
[12829] | 54 | :noindex: |
---|
| 55 | |
---|
[12843] | 56 | .. autoclass:: waeup.kofa.permissions.ViewAcademics() |
---|
[12829] | 57 | :noindex: |
---|
| 58 | |
---|
[12843] | 59 | .. autoclass:: waeup.kofa.permissions.ManageAcademics() |
---|
[12829] | 60 | :noindex: |
---|
| 61 | |
---|
[12843] | 62 | .. autoclass:: waeup.kofa.permissions.ManagePortalConfiguration() |
---|
[12829] | 63 | :noindex: |
---|
| 64 | |
---|
[12843] | 65 | .. autoclass:: waeup.kofa.permissions.ManageDataCenter() |
---|
[12829] | 66 | :noindex: |
---|
| 67 | |
---|
[12843] | 68 | .. autoclass:: waeup.kofa.permissions.ExportData() |
---|
[12829] | 69 | :noindex: |
---|
| 70 | |
---|
[12843] | 71 | .. autoclass:: waeup.kofa.permissions.ImportData() |
---|
[12829] | 72 | :noindex: |
---|
| 73 | |
---|
[12843] | 74 | .. autoclass:: waeup.kofa.permissions.TriggerTransition() |
---|
| 75 | :noindex: |
---|
| 76 | |
---|
| 77 | .. autoclass:: waeup.kofa.permissions.ShowStudents() |
---|
| 78 | :noindex: |
---|
| 79 | |
---|
[12844] | 80 | .. autoclass:: waeup.kofa.reports.ManageReports() |
---|
| 81 | :noindex: |
---|
| 82 | |
---|
[12843] | 83 | Application Section Permissions |
---|
| 84 | ------------------------------- |
---|
| 85 | |
---|
| 86 | .. autoclass:: waeup.kofa.applicants.permissions.ViewApplication() |
---|
| 87 | :noindex: |
---|
| 88 | |
---|
| 89 | .. autoclass:: waeup.kofa.applicants.permissions.HandleApplication() |
---|
| 90 | :noindex: |
---|
| 91 | |
---|
| 92 | .. autoclass:: waeup.kofa.applicants.permissions.ManageApplication() |
---|
| 93 | :noindex: |
---|
| 94 | |
---|
| 95 | .. autoclass:: waeup.kofa.applicants.permissions.PayApplicant() |
---|
| 96 | :noindex: |
---|
| 97 | |
---|
| 98 | .. autoclass:: waeup.kofa.applicants.permissions.ViewApplicationStatistics() |
---|
| 99 | :noindex: |
---|
| 100 | |
---|
[12829] | 101 | Student Section Permissions |
---|
| 102 | --------------------------- |
---|
| 103 | |
---|
[12843] | 104 | .. autoclass:: waeup.kofa.students.permissions.ViewStudent() |
---|
[12829] | 105 | :noindex: |
---|
| 106 | |
---|
[12843] | 107 | .. autoclass:: waeup.kofa.students.permissions.HandleStudent() |
---|
| 108 | :noindex: |
---|
[12829] | 109 | |
---|
[12843] | 110 | .. autoclass:: waeup.kofa.students.permissions.ViewStudentsContainer() |
---|
| 111 | :noindex: |
---|
| 112 | |
---|
| 113 | .. autoclass:: waeup.kofa.students.permissions.ManageStudent() |
---|
| 114 | :noindex: |
---|
| 115 | |
---|
| 116 | .. autoclass:: waeup.kofa.students.permissions.PayStudent() |
---|
| 117 | :noindex: |
---|
| 118 | |
---|
| 119 | .. autoclass:: waeup.kofa.students.permissions.HandleAccommodation() |
---|
| 120 | :noindex: |
---|
| 121 | |
---|
| 122 | .. autoclass:: waeup.kofa.students.permissions.UploadStudentFile() |
---|
| 123 | :noindex: |
---|
| 124 | |
---|
| 125 | .. autoclass:: waeup.kofa.students.permissions.ClearStudent() |
---|
| 126 | :noindex: |
---|
| 127 | |
---|
| 128 | .. autoclass:: waeup.kofa.students.permissions.LoginAsStudent() |
---|
| 129 | :noindex: |
---|
| 130 | |
---|
| 131 | .. autoclass:: waeup.kofa.students.permissions.EditStudyLevel() |
---|
| 132 | :noindex: |
---|
| 133 | |
---|
| 134 | .. autoclass:: waeup.kofa.students.permissions.ClearStudent() |
---|
| 135 | :noindex: |
---|
| 136 | |
---|
| 137 | .. autoclass:: waeup.kofa.students.permissions.ValidateStudent() |
---|
| 138 | :noindex: |
---|
| 139 | |
---|
[12829] | 140 | Global Roles |
---|
| 141 | ============ |
---|
| 142 | |
---|
[12849] | 143 | Global or site roles are assigned portal-wide. In contrast to local |
---|
| 144 | roles, users have this role in every context. |
---|
[12829] | 145 | |
---|
[12849] | 146 | Many global roles do only bundle one or two permissions. The objective |
---|
| 147 | behind is to share responsibilities and distribute tasks. |
---|
[12829] | 148 | |
---|
[12847] | 149 | Global roles are being assigned via the user manage form page. |
---|
| 150 | |
---|
[12844] | 151 | Global General Roles |
---|
| 152 | -------------------- |
---|
[12829] | 153 | |
---|
[12843] | 154 | .. autoclass:: waeup.kofa.permissions.AcademicsOfficer() |
---|
[12829] | 155 | :noindex: |
---|
| 156 | |
---|
[12843] | 157 | .. autoclass:: waeup.kofa.permissions.AcademicsManager() |
---|
[12829] | 158 | :noindex: |
---|
| 159 | |
---|
[12843] | 160 | .. autoclass:: waeup.kofa.permissions.DataCenterManager() |
---|
[12829] | 161 | :noindex: |
---|
| 162 | |
---|
[12843] | 163 | .. autoclass:: waeup.kofa.permissions.ImportManager() |
---|
[12829] | 164 | :noindex: |
---|
| 165 | |
---|
[12843] | 166 | .. autoclass:: waeup.kofa.permissions.ExportManager() |
---|
[12829] | 167 | :noindex: |
---|
| 168 | |
---|
[12843] | 169 | .. autoclass:: waeup.kofa.permissions.ACManager() |
---|
[12829] | 170 | :noindex: |
---|
| 171 | |
---|
[12843] | 172 | .. autoclass:: waeup.kofa.permissions.UsersManager() |
---|
[12829] | 173 | :noindex: |
---|
| 174 | |
---|
[12843] | 175 | .. autoclass:: waeup.kofa.permissions.WorkflowManager() |
---|
[12829] | 176 | :noindex: |
---|
| 177 | |
---|
[12844] | 178 | .. autoclass:: waeup.kofa.reports.ReportsManager() |
---|
| 179 | :noindex: |
---|
| 180 | |
---|
[12849] | 181 | In contrast to these specialized sets of permissions, there are two |
---|
| 182 | sets which delegate extensive powers on portal managers. |
---|
[12829] | 183 | |
---|
[12844] | 184 | .. autoclass:: waeup.kofa.permissions.PortalManager() |
---|
[12829] | 185 | :noindex: |
---|
| 186 | |
---|
[12843] | 187 | .. autoclass:: waeup.kofa.permissions.CCOfficer() |
---|
[12829] | 188 | :noindex: |
---|
| 189 | |
---|
[12844] | 190 | Global Application Section Roles |
---|
| 191 | -------------------------------- |
---|
| 192 | |
---|
[12849] | 193 | Global Application Section Roles are assigned portal-wide (globally) |
---|
| 194 | but do actually only allocate permissions in the Application Section. |
---|
[12847] | 195 | |
---|
[12844] | 196 | .. autoclass:: waeup.kofa.applicants.permissions.ApplicantRole() |
---|
| 197 | :noindex: |
---|
| 198 | |
---|
| 199 | .. autoclass:: waeup.kofa.applicants.permissions.ApplicationsOfficer() |
---|
| 200 | :noindex: |
---|
| 201 | |
---|
| 202 | .. autoclass:: waeup.kofa.applicants.permissions.ApplicationsManager() |
---|
| 203 | :noindex: |
---|
| 204 | |
---|
| 205 | Global Student Section Roles |
---|
| 206 | ---------------------------- |
---|
| 207 | |
---|
[12849] | 208 | Global Student Section Roles are assigned portal-wide (globally) but |
---|
| 209 | do actually only allocate permissions in the Student Section. |
---|
[12847] | 210 | |
---|
[12844] | 211 | .. autoclass:: waeup.kofa.students.permissions.StudentRole() |
---|
| 212 | :noindex: |
---|
| 213 | |
---|
| 214 | .. autoclass:: waeup.kofa.students.permissions.StudentsOfficer() |
---|
| 215 | :noindex: |
---|
| 216 | |
---|
| 217 | .. autoclass:: waeup.kofa.students.permissions.StudentsManager() |
---|
| 218 | :noindex: |
---|
| 219 | |
---|
| 220 | .. autoclass:: waeup.kofa.students.permissions.StudentsClearanceOfficer() |
---|
| 221 | :noindex: |
---|
| 222 | |
---|
| 223 | .. autoclass:: waeup.kofa.students.permissions.StudentsCourseAdviser() |
---|
| 224 | :noindex: |
---|
| 225 | |
---|
| 226 | .. autoclass:: waeup.kofa.students.permissions.StudentImpersonator() |
---|
| 227 | :noindex: |
---|
| 228 | |
---|
[12847] | 229 | Local Roles and Dynamic Role Assignment |
---|
| 230 | ======================================= |
---|
[12829] | 231 | |
---|
[12849] | 232 | In contrast to global roles, which are assigned portal-wide, local |
---|
| 233 | role permissions are gained for a specific context. |
---|
[12847] | 234 | |
---|
[12849] | 235 | Some local roles serve a second purpose. At first glance it appears |
---|
| 236 | strange that some of these 'odd' roles do not give more permissions |
---|
| 237 | than the user already has due to other roles. Their real purpose is to |
---|
| 238 | delegate permissions to the students or application section. If a user |
---|
| 239 | has for example the LocalStudentsManager role described below at |
---|
| 240 | department level, s/he automatically gets the StudentsManager role for |
---|
| 241 | those students studying in this department. We call this a **dynamic |
---|
| 242 | role**. In contrast to static global or local roles, dynamic roles are |
---|
| 243 | not stored in the database, they are dynamically assigned. |
---|
[12847] | 244 | |
---|
[12849] | 245 | Local roles are assigned either automatically by the system during |
---|
| 246 | user object setup or manually through the web interface. The |
---|
| 247 | automatically assigned local roles are: |
---|
[12847] | 248 | |
---|
| 249 | .. autoclass:: waeup.kofa.permissions.Owner() |
---|
| 250 | :noindex: |
---|
| 251 | |
---|
| 252 | .. autoclass:: waeup.kofa.applicants.permissions.ApplicationOwner() |
---|
| 253 | :noindex: |
---|
| 254 | |
---|
| 255 | .. autoclass:: waeup.kofa.students.permissions.StudentRecordOwner() |
---|
| 256 | :noindex: |
---|
| 257 | |
---|
| 258 | All other local roles must be assigned manually via context manage form pages. |
---|
| 259 | |
---|
[12850] | 260 | .. autoclass:: waeup.kofa.permissions.ApplicationsManager() |
---|
[12847] | 261 | :noindex: |
---|
| 262 | |
---|
| 263 | .. autoclass:: waeup.kofa.permissions.DepartmentOfficer() |
---|
| 264 | :noindex: |
---|
| 265 | |
---|
| 266 | .. autoclass:: waeup.kofa.permissions.DepartmentManager() |
---|
| 267 | :noindex: |
---|
| 268 | |
---|
| 269 | .. autoclass:: waeup.kofa.permissions.Lecturer() |
---|
| 270 | :noindex: |
---|
| 271 | |
---|
[12849] | 272 | The following local roles do also delegate permissions to the student |
---|
| 273 | section. In other words, dynamic roles are assigned. |
---|
[12847] | 274 | |
---|
| 275 | .. autoclass:: waeup.kofa.permissions.ClearanceOfficer() |
---|
| 276 | :noindex: |
---|
| 277 | |
---|
| 278 | .. autoclass:: waeup.kofa.permissions.LocalStudentsManager() |
---|
| 279 | :noindex: |
---|
| 280 | |
---|
| 281 | .. autoclass:: waeup.kofa.permissions.LocalWorkflowManager() |
---|
| 282 | :noindex: |
---|
| 283 | |
---|
| 284 | .. autoclass:: waeup.kofa.permissions.UGClearanceOfficer() |
---|
| 285 | :noindex: |
---|
| 286 | |
---|
| 287 | .. autoclass:: waeup.kofa.permissions.PGClearanceOfficer() |
---|
| 288 | :noindex: |
---|
| 289 | |
---|
| 290 | .. autoclass:: waeup.kofa.permissions.CourseAdviser100() |
---|
| 291 | :noindex: |
---|