Skip to content

feat(unstable): --allow-net subdomain wildcards #29327

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nayeemrmn
Copy link
Contributor

@nayeemrmn nayeemrmn commented May 16, 2025

Closes #6532.

// deno run --unstable-subdomain-wildcards --allow-net=*.github-proxy.voidd.workers.dev main.ts

await fetch("https://foo.github.com");

Supports one wildcard which must be the first label. Doesn't support wildcards in a middle label like cloudformation.*.amazonaws.com as one user requested. Based on https://developers.cloudflare.com/dns/manage-dns-records/reference/wildcard-dns-records/#aspects-to-consider.

https only
deno run --allow-net=https://* server.js
or
deno run --allow-net=*/**:443 server.js

Let's decline these ones.

@nayeemrmn nayeemrmn changed the title feat(permissions): subdomain wildcards feat(permissions): net subdomain wildcards May 16, 2025
@nayeemrmn nayeemrmn changed the title feat(permissions): net subdomain wildcards feat(unstable): --allow-net subdomain wildcards May 16, 2025
@Hajime-san
Copy link
Contributor

IMO, users may need to be concerned about attacks via dangling records, while this feature is safe to use in most cases.

https://www.form3.tech/blog/engineering/dangling-danger
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/protection-from-dangling-dns.html

@bartlomieju bartlomieju requested a review from littledivy May 27, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow wildcards in --allow-net allow lists.
2 participants