diff --git a/src/firewall/README.md b/src/firewall/README.md index 14b063a..748f6cf 100644 --- a/src/firewall/README.md +++ b/src/firewall/README.md @@ -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 | diff --git a/src/firewall/devcontainer-feature.json b/src/firewall/devcontainer-feature.json index fc07173..fad0f5b 100644 --- a/src/firewall/devcontainer-feature.json +++ b/src/firewall/devcontainer-feature.json @@ -45,6 +45,11 @@ "default": false, "description": "Python Package Index" }, + "packagist": { + "type": "boolean", + "default": false, + "description": "PHP Package Repository" + }, "cratesIoRegistry": { "type": "boolean", "default": false, diff --git a/src/firewall/hosts.json b/src/firewall/hosts.json index 02cf5b6..b04f6b8 100644 --- a/src/firewall/hosts.json +++ b/src/firewall/hosts.json @@ -31,6 +31,9 @@ "pypi.org", "files.pythonhosted.org" ], + "packagist": [ + "packagist.org" + ], "vscodeMarketplace": [ "marketplace.visualstudio.com", "vscode.blob.core.windows.net", diff --git a/src/firewall/install.sh b/src/firewall/install.sh index 10c7e85..03ec6d5 100755 --- a/src/firewall/install.sh +++ b/src/firewall/install.sh @@ -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"}" @@ -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"