winglang / winglang/wing

Add better auth level to Azure's function

Open
#4,497 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

☁️ azure ✨ enhancement
Dominant language
TypeScript
Stars
5.4k
Forks
215
Avg merge
2h 9m
Merged PRs (30d)
27

Description

Feature Spec

Currently, the function's auth level is "anonymous", which means everyone can invoke it, we need to limit that down.
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=python-v2%2Cisolated-process%2Cnodejs-v3%2Cfunctionsv2&pivots=programming-language-javascript#http-auth

https://github.com/winglang/wing/blob/b684cfd371672fdf2ff4acd9e7c4bf74df1ecd8d/libs/wingsdk/src/target-tf-azure/function.ts#L105

Use Cases

authentication and security

Implementation Notes

please wait until this is merged.

Component

SDK

Community Notes
  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
  • If this issue is labeled needs-discussion, it means the spec has not been finalized yet. Please reach out on the #dev channel in the Wing Slack.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with libs/wingsdk/src/target-tf-azure/function.ts around line 105 and the Azure HTTP trigger authentication documentation. Check issue 1371 first, since the implementation notes say to wait for it to merge. The final auth level and acceptance criteria still need to be defined before this is done.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.