Open kallewesterling opened 4 months ago
While updating the Azure backend storage, @cptanalatriste + @RichGriff -- can you make sure to document this somewhere, which would have knock-on effects for this issue!
Related to current bug https://github.com/alan-turing-institute/AssurancePlatform/issues/473
Bug fixed this was due to my account being inactive and not the code using the storage account.
@cptanalatriste you should be able to follow the below steps and to get a storage account set up:
Create a storage account in Azure You should be able to create a normal storage account, nothing special here.
Create a container
for your new storage account
Once you have a storage account set up you will need to have a container where all the images will be stored.
Create a SAS (Shared Access Signature) token for the account
In order for our application to be able to connect to this storage account we need to have a token that allows us to write files to it. You should be able to search sas
to get access from the portal its under security & networking. Copy the below settings, however dont forget to set the correct dates.
select Generate SAS token
and make sure you take a copy of it.
Finally allow public access to the storage account
This step is ensure we can access the images with a url we generate in the app to fetch the image to render. Navigate back the networking and ensure that Enable form all networks
is checked
Any issue happy to help.
@chrisdburr I noticed that the URLs to the case previews are not secured: If you have the link, you can access the image preview of any case (try this).
Is this acceptable? Otherwise, we might need to change the approach for storing this files.
Is this acceptable? Otherwise, we might need to change the approach for storing this files.
No, they should only be accessible to the case owners or others who have been granted access.
Role
As someone deploying the TEA platform in a local environment
Desired Feature
I want detailed instructions on setting up Azure backend storage for storing images and screenshots
Benefit
so that I can ensure a robust and correctly configured storage solution for my deployment of the TEA platform
Acceptance Criteria
GIVEN I am setting up the TEA platform in a local environment, WHEN I follow the provided documentation for setting up Azure backend storage, THEN I should be able to configure the storage without external assistance, AND the platform should successfully connect to and utilize Azure storage for managing images and screenshots.
Dependencies
No response
Technical Notes
Definition of Done