Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/firewall/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Sets up an iptables-based firewall that restricts network access to only specifi
| githubIps | GitHub IP ranges (fetched at runtime) | boolean | false |
| npmRegistry | npm registry | boolean | false |
| pypi | Python Package Index | boolean | false |
| packagist | PHP Package Repository | boolean | false |
| cratesIoRegistry | Rust crates.io registry | boolean | false |
| vscodeMarketplace | VS Code marketplace | boolean | false |
| dockerRegistry | Docker Hub registry | boolean | false |
Expand Down
5 changes: 5 additions & 0 deletions src/firewall/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
"default": false,
"description": "Python Package Index"
},
"packagist": {
"type": "boolean",
"default": false,
"description": "PHP Package Repository"
},
"cratesIoRegistry": {
"type": "boolean",
"default": false,
Expand Down
3 changes: 3 additions & 0 deletions src/firewall/hosts.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"pypi.org",
"files.pythonhosted.org"
],
"packagist": [
"packagist.org"
],
"vscodeMarketplace": [
"marketplace.visualstudio.com",
"vscode.blob.core.windows.net",
Expand Down
2 changes: 2 additions & 0 deletions src/firewall/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ OPENROUTERAPI="${OPENROUTERAPI:-"false"}"

NPMREGISTRY="${NPMREGISTRY:-"false"}"
PYPI="${PYPI:-"false"}"
PACKAGIST="${PACKAGEIST:-"false"}"
VSCODEMARKETPLACE="${VSCODEMARKETPLACE:-"false"}"
DNSPUBLIC="${DNSPUBLIC:-"false"}"
GITHUBDOMAINS="${GITHUBDOMAINS:-"false"}"
Expand Down Expand Up @@ -134,6 +135,7 @@ add_hosts_if_enabled "OPENROUTERAPI" "openrouterApi"

add_hosts_if_enabled "NPMREGISTRY" "npmRegistry"
add_hosts_if_enabled "PYPI" "pypi"
add_hosts_if_enabled "PACKAGIST" "packagist"
add_hosts_if_enabled "VSCODEMARKETPLACE" "vscodeMarketplace"
add_hosts_if_enabled "DNSPUBLIC" "dnsPublic"
add_hosts_if_enabled "GITHUBDOMAINS" "githubDomains"
Expand Down