> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure the Package Firewall with direct integration

> Configure a direct integration to route package installation requests through the Package Firewall without a private package registry. Includes an interactive package manager configuration wizard.

Direct integration routes package installation requests from your package manager clients through Package Firewall directly, without a private package registry such as JFrog Artifactory, Google Artifact Registry, or Sonatype Nexus Repository. Package Firewall evaluates each package request based on the malware check and the configured [Package Firewall policy](https://docs.endorlabs.com/package-firewall/policy.md) conditions, and handles each request in one of three ways:

* Block the installation and return an `HTTP 403` when the package is in the Endor Labs malware database, or a policy condition matches **Block**. The developer sees a generic `403` response without the specific reason. Package Firewall records a log with the package, version, and reason.
* Allow the installation if a policy condition matches with **Warn**. Package Firewall records a warning log with the package, version, and reason.
* Allow the installation if no malware is detected. No log is recorded.

Package Firewall records one of the following reasons in the log when it blocks a package:

* `malware detected for package <name>@<version>`: Endor Labs classified the package as malware.
* `package has a CVSS vulnerability at or above the configured severity threshold`: The package has a known vulnerability at or above the CVSS severity threshold set in your policy. Endor Labs uses CVSS 3.x by default and evaluates vulnerability severity using that version. You can change the CVSS version for your namespace in [system settings](https://docs.endorlabs.com/platform-administration/configure-system-settings.md#configure-cvss-score-version).
* `package license is restricted`: The license violates your Package Firewall policy.
* `package does not meet min_age_hours requirement`: The package is newer than the minimum age set in your policy.

A package that Package Firewall cannot evaluate returns the same `HTTP 403` block response if your policy sets the [action for packages that cannot be evaluated](https://docs.endorlabs.com/package-firewall/policy.md#action-when-a-policy-cannot-be-evaluated) to **Block (Fail-close)**. Review the [Package Firewall logs](https://docs.endorlabs.com/package-firewall/logs.md) to confirm the reason.

Configure the direct integration for Package Firewall if your organization does not use a private package registry such as JFrog Artifactory, Google Artifact Registry, or Sonatype Nexus Repository.

IT administrators can use Mobile Device Management (MDM) scripts to deploy Package Firewall configurations to developer machines, eliminating the need for manual setup on each machine. These scripts update package manager configuration files with the Package Firewall URL and credentials. They also encode an attribution label into those credentials, so the firewall attributes every request to a developer and machine instead of the shared API key. The label defaults to `<user>@<machine>`, and you can customize it. See [User attribution](https://docs.endorlabs.com/package-firewall/user-attribution.md) to learn how the label works.

The Package Firewall logs show the attributed user on each event, so you can identify who requested a warned or blocked package. See [View Package Firewall logs](https://docs.endorlabs.com/package-firewall/logs.md) to learn more.

## Package Firewall support matrix

The following table outlines the package manager clients and ecosystems Package Firewall supports through direct integration.


&#x20; \- Package\_manager\_client: npm
&#x20; Ecosystem: JavaScript
&#x20; Public\_registry: npm
&#x20; Configuration\_files: \`.npmrc\`

&#x20; \- Package\_manager\_client: pnpm
&#x20; Ecosystem: JavaScript
&#x20; Public\_registry: npm
&#x20; Configuration\_files: \`.npmrc\`

&#x20; \- Package\_manager\_client: Yarn Classic
&#x20; Ecosystem: JavaScript
&#x20; Public\_registry: npm
&#x20; Configuration\_files: \`.npmrc\`, \`.yarnrc\`

&#x20; \- Package\_manager\_client: Yarn Berry
&#x20; Ecosystem: JavaScript
&#x20; Public\_registry: npm
&#x20; Configuration\_files: \`.yarnrc.yml\`

&#x20; \- Package\_manager\_client: Bun
&#x20; Ecosystem: JavaScript
&#x20; Public\_registry: npm
&#x20; Configuration\_files: \`.npmrc\`

&#x20; \- Package\_manager\_client: pip
&#x20; Ecosystem: Python
&#x20; Public\_registry: PyPI
&#x20; Configuration\_files: \`pip.conf\`, \`pip.ini\`

&#x20; \- Package\_manager\_client: Poetry
&#x20; Ecosystem: Python
&#x20; Public\_registry: PyPI
&#x20; Configuration\_files: \`pyproject.toml\`

&#x20; \- Package\_manager\_client: uv
&#x20; Ecosystem: Python
&#x20; Public\_registry: PyPI
&#x20; Configuration\_files: \`uv.toml\`, \`pyproject.toml\`

&#x20; \- Package\_manager\_client: Go
&#x20; Ecosystem: Go
&#x20; Public\_registry: Go module proxy
&#x20; Configuration\_files: \`GOPROXY\` in the Go \`env\` file

&#x20; \- Package\_manager\_client: Maven
&#x20; Ecosystem: Java
&#x20; Public\_registry: Maven Central
&#x20; Configuration\_files: \`settings.xml\`

&#x20; \- Package\_manager\_client: NuGet
&#x20; Ecosystem: .NET
&#x20; Public\_registry: NuGet Gallery
&#x20; Configuration\_files: \`nuget.config\`

&#x20; \- Package\_manager\_client: Bundler
&#x20; Ecosystem: Ruby
&#x20; Public\_registry: RubyGems
&#x20; Configuration\_files: \`\~/.bundle/config\`

&#x20; \- Package\_manager\_client: gem
&#x20; Ecosystem: Ruby
&#x20; Public\_registry: RubyGems
&#x20; Configuration\_files: \`.gemrc\`
&#x20;&#x20;

## Configure the Package Firewall

Complete the following steps to configure direct integration with Package Firewall:

1. [Create an API key for the Package Firewall](#create-an-api-key-for-the-package-firewall).
2. [Configure your package manager configuration file](#configure-your-package-manager-configuration-file).
3. [Verify your setup](#verify-your-setup).

> [!NOTE]
>
> If you use Endor Labs with an EU tenant, use `https://factory.eu.endorlabs.com` instead of `https://factory.endorlabs.com`.

### Create an API key for the Package Firewall

Create an API key dedicated to the Package Firewall so that your package manager client can authenticate to it. You can create it through one of the following methods:

* Using the Endor Labs user interface, with the **Package Firewall User** role. See [API keys](https://docs.endorlabs.com/platform-administration/api-keys.md#create-an-api-key-through-the-endor-labs-user-interface) to learn more.
* Using endorctl, with the `SYSTEM_ROLE_PACKAGE_FIREWALL` role. Make sure to [install and configure endorctl](https://docs.endorlabs.com/developers-api/cli/install-and-configure.md) before you create the key.

To create the key using endorctl, run the following command and replace:

* `<namespace>` with your namespace.
* `<API key name>` with the name of the API key for the Package Firewall use case.
* `<YYYY-MM-DDTHH:MM:SSZ>` with the API key expiration in ISO 8601 UTC format, for example `2026-12-31T23:59:59Z`.

```bash theme={null}
export NAMESPACE="<namespace>"
export KEY_NAME="<API key name>"

endorctl api create -r APIKey -n "$NAMESPACE" --data '{
  "meta": { "name": "'"$KEY_NAME"'" },
  "spec": {
    "permissions": { "roles": ["SYSTEM_ROLE_PACKAGE_FIREWALL"] },
    "expiration_time": "<YYYY-MM-DDTHH:MM:SSZ>"
  },
  "propagate": true
}'
```

From the response, save the following values in a secure location. Use them as your Package Firewall credentials when you configure your package manager configuration file.

* **API key:** `spec.key`
* **API secret:** `spec.secret`

### Configure your package manager configuration file

Configure your package manager configuration file with the Package Firewall URL, your API key as the username, and your API secret as the password. Package Firewall authenticates installation requests by validating the username and password pair. Replace `<api-key>` and `<api-secret>` with the credentials you saved in the previous step.

### Package Manager Wizard

Select your operating system and package manager client, then enter your namespace to get setup instructions for your configuration files.

↺ Reset

The configuration that the wizard generates uses your API key as the username, so every event in the Package Firewall logs shows that API key as the user. To record who made each request, use an attributed username. See [Attribute requests from direct integrations](https://docs.endorlabs.com/package-firewall/user-attribution.md#attribute-requests-from-direct-integrations) to learn more.

### Verify your setup

To verify your setup, install a package that Endor Labs has classified as malware. Package Firewall should block the installation and return an `HTTP 403`.

The following examples show the test command for each package manager client.

> [accordion] npm
>
> Run the following command to test Package Firewall with npm.
>
> ```bash theme={null}
> npm install endor-firewall-test@1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `403 Forbidden` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> npm error code E403
> npm error 403 403 Forbidden - GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz - blocked by Endor Labs: malware detected in endor-firewall-test@1.0.0 - see https://docs.endorlabs.com/package-firewall/blocked-responses
> npm error 403 In most cases, you or one of your dependencies are requesting
> npm error 403 a package version that is forbidden by your security policy, or
> npm error 403 on a server you do not have access to.
> npm error A complete log of this run can be found in: /Users/johndoe/.npm/_logs/2026-10-09T06_48_16_569Z-debug-0.log
> ```

> [accordion] pnpm
>
> Run the following command to test Package Firewall with pnpm.
>
> ```bash theme={null}
> pnpm add endor-firewall-test@1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `Forbidden - 403` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> Progress: resolved 1, reused 0, downloaded 0, added 0
> Packages: +1
> +
> [ERR_PNPM_FETCH_403] GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz: Forbidden - 403
>
> This error happened while installing a direct dependency of /Users/johndoe/sample-project
> ```

> [accordion] Yarn Classic (v1)
>
> Run the following command to test Package Firewall with Yarn Classic.
>
> ```bash theme={null}
> yarn add endor-firewall-test@1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `403 Forbidden` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> yarn add v1.22.19
> info No lockfile found.
> [1/4] Resolving packages...
> [2/4] Fetching packages...
> error An unexpected error occurred: "https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz: Request failed \"403 Forbidden\"".
> info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
> ```

> [accordion] Yarn Berry (v2+)
>
> Run the following command to test Package Firewall with Yarn Berry.
>
> ```bash theme={null}
> yarn add endor-firewall-test@1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `403 (Forbidden)` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> ➤ YN0000: · Yarn 4.16.0
> ➤ YN0000: ┌ Resolution step
> ➤ YN0085: │ + endor-firewall-test@npm:1.0.0
> ➤ YN0000: └ Completed
> ➤ YN0000: ┌ Fetch step
> ➤ YN0035: │ endor-firewall-test@npm:1.0.0: The remote server failed to provide the requested resource
> ➤ YN0035: │   Response Code: 403 (Forbidden)
> ➤ YN0035: │   Request Method: GET
> ➤ YN0035: │   Request URL: https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz
> ➤ YN0000: └ Completed in 0s 839ms
> ➤ YN0000: · Failed with errors in 0s 853ms
> ```

> [accordion] Bun
>
> Run the following command to test Package Firewall with Bun.
>
> ```bash theme={null}
> bun add endor-firewall-test@1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `403` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> bun add v1.3.14 (0d9b296a)
> error: GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/npm/endor-firewall-test/-/endor-firewall-test-1.0.0.tgz - 403
> ```

> [accordion] pip
>
> Run the following command to test Package Firewall with pip.
>
> ```bash theme={null}
> pip install endor-firewall-test==1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `403` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> Looking in indexes: https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/simple/
> Collecting endor-firewall-test==1.0.0
> ERROR: HTTP error 403 while getting https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata
> ERROR: 403 Client Error: Forbidden for url: https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata
> ```

> [accordion] uv
>
> Run the following command to test Package Firewall with uv.
>
> ```bash theme={null}
> uv pip install endor-firewall-test==1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `(403 Forbidden)` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> error: Failed to fetch: `https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata`
>   Caused by: Server message: Package blocked by Endor Labs Package Firewall, malware detected in endor-firewall-test==1.0.0; see https://docs.endorlabs.com/package-firewall/blocked-responses
>   Caused by: HTTP status client error (403 Forbidden) for url (https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata)
> ```

> [accordion] Poetry
>
> Run the following command to test Package Firewall with Poetry.
>
> ```bash theme={null}
> poetry add endor-firewall-test==1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `403 Forbidden` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> Updating dependencies
> Resolving dependencies...
> Source (endor-firewall): Failed to retrieve metadata at https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata
> Source (endor-firewall): Failed to retrieve metadata at https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata
> Source (endor-firewall): Failed to retrieve metadata at https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl.metadata
>
> 403 Client Error: Forbidden for url: https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/pypi/packages/61/05/6e99035fec6c7e407fffc052a0060495f6a2fcae2143db3239c7399d5b6e/endor_firewall_test-1.0.0-py3-none-any.whl
> ```

> [accordion] Go
>
> Run the following command to test Package Firewall with Go.
>
> ```bash theme={null}
> go install github.com/endorlabstest/endor-firewall-test@v1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `403 Forbidden` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> go: github.com/endorlabstest/endor-firewall-test@v1.0.0: reading https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/go/github.com/endorlabstest/endor-firewall-test/@v/v1.0.0.info: 403 Forbidden
> ```

> [accordion] Maven
>
> Add `io.github.endorlabs:endor-java-webapp-demo:4.1` as a dependency in your `pom.xml`, then run one of the following commands to test Package Firewall with Maven.
>
> For a project-level `settings.xml` in your project directory, pass it explicitly with `-s`:
>
> ```bash theme={null}
> mvn dependency:resolve -s settings.xml
> ```
>
> For a global `settings.xml` at `${mvn_home}/conf/settings.xml`, Maven picks it up automatically:
>
> ```bash theme={null}
> mvn dependency:resolve
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `Forbidden (403)` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> [INFO] Scanning for projects...
> [INFO]
> [INFO] -----------------------< com.example:my-app >------------------------
> [INFO] Building my-app 1.0.0
> [INFO]   from pom.xml
> [INFO] --------------------------------[ jar ]---------------------------------
> Downloading from endor-firewall: https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/maven/io/github/endorlabs/endor-java-webapp-demo/4.1/endor-java-webapp-demo-4.1.pom
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  1.600 s
> [INFO] Finished at: 2026-06-09T19:37:32+05:30
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project my-app: Could not collect dependencies for project com.example:my-app:jar:1.0.0
> [ERROR] Failed to read artifact descriptor for io.github.endorlabs:endor-java-webapp-demo:jar:4.1
> [ERROR] 	Caused by: The following artifacts could not be resolved: io.github.endorlabs:endor-java-webapp-demo:pom:4.1 (absent): Could not transfer artifact io.github.endorlabs:endor-java-webapp-demo:pom:4.1 from/to endor-firewall (https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/maven): status code: 403, reason phrase: Forbidden (403)
> [ERROR]
> ```

> [accordion] NuGet
>
> Run the following command to test Package Firewall with NuGet.
>
> ```bash theme={null}
> dotnet add package endor-firewall-test --version 1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `403 (Forbidden)` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> info : Adding PackageReference for package 'endor-firewall-test' into project '/Users/johndoe/nuget-firewall-test/app/FirewallProbe.csproj'.
> info : Restoring packages for /Users/johndoe/nuget-firewall-test/app/FirewallProbe.csproj...
> info :     GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/index.json
> info :     OK https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/index.json 533ms
> info :     GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg
> info :     Forbidden https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg 486ms
> log  : Failed to download package 'endor-firewall-test.1.0.0' from 'https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg'.
> log  : Response status code does not indicate success: 403 (Forbidden).
> info :     GET https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg
> info :     Forbidden https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg 535ms
> log  : Failed to download package 'endor-firewall-test.1.0.0' from 'https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg'.
> log  : Response status code does not indicate success: 403 (Forbidden).
> error: Failed to download package 'endor-firewall-test.1.0.0' from 'https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3-flatcontainer/endor-firewall-test/1.0.0/endor-firewall-test.1.0.0.nupkg'.
> error: Response status code does not indicate success: 403 (Forbidden).
> error: The feed 'endor-firewall [https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/nuget/v3/index.json]' lists package 'endor-firewall-test.1.0.0' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again.
> error: Unable to find a resolved package for 'endor-firewall-test'. This is a tooling error. Please file an issue at https://github.com/NuGet/Home.
> ```

> [accordion] Bundler
>
> Run the following commands in an empty directory to test Package Firewall with Bundler.
>
> ```bash theme={null}
> bundle init
> bundle add endor-firewall-test --version 1.0.0
> ```
>
> `bundle add` writes the test gem to the `Gemfile` even though the installation is blocked. Delete the directory after the test, or later Bundler commands try to install the gem again and Package Firewall records a new block event each time.
>
> When Package Firewall blocks the package, the output looks similar to the following. The `Forbidden 403` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> Fetching gem metadata from https://factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/.
> Fetching endor-firewall-test 1.0.0
> Retrying download gem from https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/ due to error (2/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/gems/endor-firewall-test-1.0.0.gem)
> Retrying download gem from https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/ due to error (3/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/gems/endor-firewall-test-1.0.0.gem)
> Retrying download gem from https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/ due to error (4/4): Gem::RemoteFetcher::FetchError bad response Forbidden 403 (https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/gems/endor-firewall-test-1.0.0.gem)
> Bundler::HTTPError: Could not download gem from https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/ due to underlying error <bad response Forbidden 403 (https://<credentials>@factory.endorlabs.com/v1/namespaces/johndoe/firewall/gem/gems/endor-firewall-test-1.0.0.gem)>
> ```

> [accordion] gem
>
> Run the following command to test Package Firewall with gem.
>
> ```bash theme={null}
> gem install endor-firewall-test -v 1.0.0
> ```
>
> When Package Firewall blocks the package, the output looks similar to the following. The `Forbidden 403` response confirms that the firewall blocked the package.
>
> ```bash theme={null}
> ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
>     bad response Forbidden 403 (Gem::RemoteFetcher::FetchError)
> ```

## Next steps

* Install from lockfiles in your pipelines without committing credentials. See [Configure Package Firewall credentials for CI/CD](https://docs.endorlabs.com/package-firewall/ci-cd-credentials.md) to store your credentials as CI/CD secrets.
* Configure which packages the firewall flags and how it responds. See [Package Firewall policy](https://docs.endorlabs.com/package-firewall/policy.md) to learn more.
* Review the events the firewall records. See [View Package Firewall logs](https://docs.endorlabs.com/package-firewall/logs.md) to learn more.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.