Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] STATv2 preview without public storage account #433

Closed
codeX004 opened this issue Aug 15, 2023 · 1 comment
Closed

[QUESTION] STATv2 preview without public storage account #433

codeX004 opened this issue Aug 15, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@codeX004
Copy link

Hello there, I was just looking into the STAT v2 preview version and really like the possibility to run the playbooks with a user-assigned managed identity and with the use of a function app instead of multiple playbooks compared to version 1.

In a more restrictive environment, we have Azure policies in place that do not allow the provisioning of pubic facing storage accounts, whereby I was not sure if there would be a possibility to restrict the access to the storage account. I assume, that the storage account will be accessed by the function app but unfortunately I can't add the function app as allowed Azure resource for accessing the storage account. Even though if I would add the public facing IP-addresses of the function app to the storage account, I still get an 403 while accessing the blob storage content, even though my playbook that relies on STATV2 still works as expected and is able to fetch the data regarding watchlist, TI etc. That leads me to the following questions:

  • Is there any possibility to restrict the storage account to certain resources / IP-addresses instead of allowing public access?
  • Which resources must access the storage blob content, is it only the function app?
  • Would it possible to provide a more details about the need of the storage account overall? I saw the containers azure-webjob-hosts and azure-webjob-secrets, but I'm still a bit confused for which use case the storage account is needed?

Thank you very much for the clarifications.

@codeX004 codeX004 added the question Further information is requested label Aug 15, 2023
@briandelmsft
Copy link
Owner

briandelmsft commented Aug 16, 2023

Hi @codeX004,

The only documented way I have found to secure a storage account for Azure functions involves using a Premium Function Plan and VNet Integration. This documentation can be found here.

This discussion thread seems to indicate a function may continue to operate without a storage account under some circumstances , one of those being an http trigger (which STAT v2 uses). However, I don't see any official documentation indicating that it is supported. I would certainly think you would want to at least open up the outbound IPs of the function app to the storage account but can't make any guarantees there won't be an undesirable side effect.

What I can say for certain is at this time there is no STAT code that makes use of the storage account, so if the function itself isn't impacted, STAT will not be. I say at this time because we may at some point in the future make use of the storage account, but there is nothing at this time, or in the short term that will be put there.

@briandelmsft briandelmsft self-assigned this Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants