Skip to content

Field "email" is not populated during Airlock Import creation #3506

Open
@migldasilva

Description

Describe the bug

I'm working with a deployment of AzureTRE and have installed Airlock Notifier. I was reviewing the JSON data used as input for Airlock Notifier. I could check that the structure is populated the following way:

{
  "event_type": "status_changed",
  "recipient_emails_by_role": {
    "workspace_researcher": [
      "[email protected]",
      "[email protected]",
      ...
      "[email protected]"
    ],
    "workspace_owner": [
      "[email protected]",
      "[email protected]",
      ...
      "[email protected]"
    ],
    "airlock_manager": [
      "[email protected]",
      "[email protected]",
      ...
      "[email protected]"
    ]
  },
  "request": {
    "id": "11111111-2222-3333-4444-555555555555",
    "created_when": 1684400625.173648,
    "created_by": {
      "name": "Miguel Dasilva",
      "email": ""
    },
    "updated_when": 1684400746.058016,
    "updated_by": {
      "name": "Airlock Admin User",
      "email": ""
    },
    "request_type": "import",
    "files": [
      {
        "name": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/random_text_file.txt",
        "size": 0
      }
    ],
    "status": "approved",
    "business_justification": "Testing import"
  },
  "workspace": {
    "id": "kkkkkkkk-2323-5454-7777-1234567890ab",
    "display_name": "My workspace name",
    "description": "My workspace description"
  }
}

Checking the JSON returned, is it not expected that the email fields in created_byand updated_by should store the emails of the given users. I supposed that this email (just like the real name) is stored and retrieved from AAD.

I have been reviewing the code for the Airlock Notifier, and Airlock Processor, but couldn't find the code responsible for generating the JSON data. I could verify that messages are correctly sent through the Service Bus' topics (theses messages are generated by the Airlock Notifier).

Are those fields supposed to be empty? Or should they really store email addresses?

Steps to reproduce

  1. Create an import request
  2. Check the workflow runs for the Logic App responsible for sending notifications

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    airlockbugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions