Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76722

Add encrypted mobile notifications

    XMLWordPrintable

Details

    • MOODLE_401_STABLE
    • MDL-76722-master_encrypted_notifications
    • Hide

      Complete testing can't be performed without first setting up a copy of the modified app from MOBILE-4214

      Test existing notifications and those which can't be encrypted (no key) are unaffected:

      1. Login to the site as an administrator
      2. Verify the setting `message_airnotifier | encryptnotifications` is off
      3. Login to the site on the app using a student account
      4. On the site as the admin, send a message to the student account
      5. Verify the expected notification message arrives as normal
      6. Verify the setting `message_airnotifier | encryptnotifications` is on
      7. On the site as the admin, send a message to the student account
      8. Verify the expected notification message arrives as normal
      Show
      Complete testing can't be performed without first setting up a copy of the modified app from MOBILE-4214 Test existing notifications and those which can't be encrypted (no key) are unaffected: Login to the site as an administrator Verify the setting `message_airnotifier | encryptnotifications` is off Login to the site on the app using a student account On the site as the admin, send a message to the student account Verify the expected notification message arrives as normal Verify the setting `message_airnotifier | encryptnotifications` is on On the site as the admin, send a message to the student account Verify the expected notification message arrives as normal

    Description

      Copied from MOBILE-4214

      Encrypt mobile notifications should be encrypted so the AirNotifier server and platform notification service (Firebase/APN) cannot read user data.

      Fields to encrypt:

      • userfromfullname
      • smallmessage,
      • fullmessage
      • fullmessagehtml
      • subject
      • customdata

       

      A key pair should be generated on the device to be stored in the device keychain (Hardware module if possible).
      The public key will be registered against the device in Moodle (user_devices table).
      If the setting `tool_mobile/encryptnotifications` is on the relevant notification fields will be encrypted.
      When the device receives an encrypted notification it will be decrypted using the private key.

      Attachments

        Issue Links

          Activity

            People

              alexmorris Alexander Morris
              alexmorris Alexander Morris
              Juan Leyva Juan Leyva
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              2 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m