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