Revert "Fix Blob.Created trigger to only handle Blob.Created events (#4044)"
This reverts commit 4334cbcb8f.
Co-authored-by: Tim Allen <tim.allen@cloudkubed.com>
* Fix Blob.Created trigger to only handle Blob.Created events
Related to #3795
Update the `airlock_processor/BlobCreatedTrigger/function.json` to remove the binding for Blob.Deleted events.
* Remove the `dataDeletionEvent` binding from the `airlock_processor/BlobCreatedTrigger/function.json` file.
* Update the `CHANGELOG.md` to include the bug fix for the issue "Delete of in-progress container is triggered twice" (#4035).
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/AzureTRE/issues/3795?shareId=XXXX-XXXX-XXXX-XXXX).
* Increment version
* Update version from 0.7.1 to 0.7.2
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/AzureTRE/issues/3795?shareId=XXXX-XXXX-XXXX-XXXX).
* Update CHANGELOG.md
* Update CHANGELOG.md
---------
Co-authored-by: Tim Allen <tim.allen@cloudkubed.com>
* update function app runtime
* create app rule for airlock
* Increase core version
* Testing e2e shared service fix for failed firewall deployments.
* Add admin_connection_uri as output (#3684)
* remove retention policies from all resources
* update version numbers
* As using dev container base image with none root user this is redundant.
* Revert command changes, try setting user ID, add debug commands
* debug perms current dir
* revert debug commands
---------
Co-authored-by: marrobi <marrobi@microsoft.com>
* remove usage of azure.cli.core from airlock processor
* use urllib for parsing url
* update the way we get webapp_suffix - to match the most recent version of the module
* remove usage of azure.cli.core from resource processor
* remove usage of azure.cli.core from the api
* fix usage of terraform module terraform_azurerm_environment_configuration
* remove ARM_ENVIRONMENT where it's not used
* update versions
* remove unused os import from tests
* add credential_scopes to the config
* fix usage of RESOURCE_MANAGER_ENDPOINT in CREDENTIAL_SCOPES
* change the github source for terraform_azurerm_environment_configuration
* temporarily remove the version for terraform_azurerm_environment_configuration
* temporarily use the hash of the latest commit
* temporarily use the hash of the latest commit instead of version 1.0.1 of terraform_azurerm_environment_configuration
* update core
* hardcoded storage endpoint
* fix unit tests, api hardcoded value
* bump api version
* support arm env in airlock processor
* rename
---------
Co-authored-by: Anat Balzam <anat@example.com>
* add 'previous status' field to 'status changed' message
* add support for container deletion in azure function 'toDeleteTrigger'
* handle request cancellation in StatusChangedQueueTrigger
* fix output event names
* update versions
* clean code by extracting to methods
* update changelog
* fix unit tests
* add unit tests
* use already declared variables instead of request_properties
* update api version
* update changelog
Co-authored-by: Elad Iwanir <13205761+eladiw@users.noreply.github.com>
* update log message
Co-authored-by: Elad Iwanir <13205761+eladiw@users.noreply.github.com>
* rename references of toDelete event to dataDeletion event in statusChanged function
* change toDelete to DataDeletion
* update version and changelog
* rename ToDelete to DataDeletion
* update version
* fix terraform file format
* fix terraform variable values
* update core version
Co-authored-by: Elad Iwanir <13205761+eladiw@users.noreply.github.com>
* add 'previous status' field to 'status changed' message
* add support for container deletion in azure function 'toDeleteTrigger'
* handle request cancellation in StatusChangedQueueTrigger
* fix output event names
* update versions
* clean code by extracting to methods
* update changelog
* fix unit tests
* add unit tests
* use already declared variables instead of request_properties
* update api version
* update changelog
Co-authored-by: Elad Iwanir <13205761+eladiw@users.noreply.github.com>
* update log message
Co-authored-by: Elad Iwanir <13205761+eladiw@users.noreply.github.com>
* rename references of toDelete event to dataDeletion event in statusChanged function
* change toDelete to DataDeletion
* update version and changelog
Co-authored-by: Elad Iwanir <13205761+eladiw@users.noreply.github.com>
* add method to enumerate airlock request files
* add request_files to the output event of BlobCreatedTrigger
* consume request_files in the api
* fix merge conflict and add log
* clean code in BlobCreatedTrigger
* update api and airlock processor versions
* refine comment
* enumerate request files on failures
* add test for get_request_files in StatusChangedQueueTrigger
* add test for get_request_files in BlobCreatedTrigger
* refine log
* remove empty lines
* update changelog
* revet file enumeration in BlobCreatedTrigger
* add file enumeration to StatusChangedQueueTrigger
* add support for concurrent updates of airlock requests and for file enumeration response
* add test for file enumeration in StatusChangedQueueTrigger
* add ETag test case for update_airlock_request
* update api version
* add failed status to airlock
* handle exceptions by sending a failed event to event grid
* fix typo
* do not raise the error in the catch, if the function's status is failed the output binding is not called
* log the exception
* fix "Error exception must derive from BaseException" error thrown
* add error message to failed airlock requests
* add airlock exceptions for a more specific cases
* fix test
* handle specific exceptions instead of handling all exceptions the same way
* update versions and changelog
* add error_message to sample airlock request in test
* fix airlock tests
* move strings to constants.py and rename variable
* Adding missing blocked storage
* opening the Scan result Event grid topic to public access so malware scanning can deliver messages
* adding missing scan_result topic subscription
* Migrations were not running
* Amend build to migrate
* Bump version
* Fixed unit tests
* Bump version
* P1v3 -> P1v2
* Added insecure option for migrate
* Bump version
* Fixed insecure
* Bump Version
* Malware scanning + Refactoring airlock stages
1. Malware scanning can be toggled on/off
2. Added missing stages
3. Fixed TRE API to accommodate new stages
4. Added Scan Result function to handle malware scanning results
5. fixes TF to support the scanning toggle
* Airlock networking, including:
1. Airlock subnet in the core vnet
2. Airlock processor is now vnet integrated
* moving the airlock storage accounts to a dedicated subnet
* adding private endpoint for all event grid topics
* adding inbound rule to allow airlock processor to reach the workspaces
* Adding an AirlockEventSubnet
All eventgrids are in the AirlockEventSubnets
All airlock storage are in the AirlockStorageSubnet
The airlock function is in the AirlockProcessorSubnet
* Handling submitted/approved/rejected statusChangedEvent
terraform support for the az function
* Consolidate blob created queues to single SB topic + two subscriptions
Added support for blob created event handling in the airlock processor
airlock processor uses managed identity to get keys (+ added role assignment to SAs)