In-depth lesson · Dependency confusion and supply chain
Typical fixes
Every point the Dependency confusion and supply chain reports back under this heading, best-backed first, each with the reports it is seen in.
-
Register internal package names on public registries, or scope them so they cannot be shadowed.
Seen in 6 reports
-
Fetch dependencies over HTTPS and verify their checksums.
Seen in 2 reports
-
Configure the build server to resolve dependencies only from the internal registry.
Seen in 1 report
-
Restrict the default gem source to the internal repository.
Seen in 1 report
-
Do not rely on slug matching for plugins that are absent from the official directory.
Seen in 1 report
-
Remove dangling references to decommissioned buckets and avoid unsafe unzipping.