Skip to Content

Migrate from previous-generation Bytesafe

Move private packages to a repository manager, recreate policies as firewall rules, and test before switching.

Previous generation ends December 31, 2026

Keep your existing Bytesafe registries in use while you set up and test the Dependency Firewall. For migration help, email support@bytesafe.dev.

Start 14-day trial

What changes

Previous-generation Bytesafe combined package management and policy enforcement in hosted registries. Teams could publish, store, and manage private packages in Bytesafe.

With the Dependency Firewall, a repository manager hosts your private packages. The firewall applies rules to package requests that pass through it. Connect your existing repository manager if it already hosts your packages, and move packages stored only in Bytesafe.

Previous generation: Bytesafe
Developers and CI
install
Bytesafe registry

hosts packages and enforces policies

fetch
Public registry
Dependency Firewall
Developers and CI
install
Dependency Firewall

rules on every request

fetch
Public registry
fetch
Repository managerstores private packages

The migration

Review your current Bytesafe setup

For each registry, inventory its ecosystem, private packages, policies and plugins, upstreams and credentials, and access for users, teams, and CI. Record what each policy is meant to enforce.

Search for your <workspace>.bytesafe.dev URL in repositories, CI configuration, and build images. Use the results to plan the switch.

Create your firewalls

In the dashboard, create a firewall for each ecosystem you use. A firewall created from scratch gets its ecosystem's default public upstream. Create separate firewalls for teams or environments that need different rules.

Use Inherit configuration from to share rules, exceptions, and upstreams with a parent firewall. Use Template for a one-time copy. See Share configuration across firewalls.

Connect your repository manager

If you use only public packages, skip to Recreate policies and plugins as rules.

On the firewall's Upstreams tab, add your private repository URL and credentials. Enable Internal registry so packages found there are resolved from internal upstreams. If developers or CI publish through the firewall, choose a publish target.

See Integrate with repository managers for vendor-specific setup.

Move private packages out of Bytesafe

Resolve any pending package reviews in your old Bytesafe registry before moving packages. Add the destination repository as an upstream with publish credentials, then push the packages stored only in Bytesafe.

  • One version: open the version and select Push. Test with one version first and confirm it installs.
  • One package: open the package and select Push all versions.
  • Whole registry: on the Packages tab, select Push all, choose the target upstream, and enable Push internal packages only to limit the push to versions marked internal.

Bulk pushes skip versions already at the destination. Check that the destination has the private packages and versions you need.

If you used the old Promote action to release a new version, set the release version in your CI workflow.

Recreate policies and plugins as rules

On the firewall's Rules tab, add the rules from your inventory. Each rule has an execution phase, a selector, and an effect.

Bytesafe policyReplacement
Allow-onlyBlock all packages and add exceptions for approved packages or versions.
BlockMatch the package name and optional version, then enable Block. For npm, copy an existing SemVer expression into Version range and leave Version empty. See version ranges by ecosystem.
Block downstreamAdd a rule that matches all packages. Choose Uploading a package as the execution phase and enable Block.
Block install scriptsBlock install-time code execution.
Quarantine newBlock unapproved versions and add an exception after review.
Delay upstreamDelay new versions.
FreezeMake the repository read-only in your repository manager. Use allow-only rules with exceptions if you also need to pin which versions can be installed.
Immutable versionsConfigure overwrite protection in your repository manager.
Bytesafe pluginReplacement
Vulnerability scannerBlock vulnerable packages.
License ComplianceBlock or log packages by license.
Deprecated packagesBlock deprecated packages.
ForwardSet one publish target for publishes that pass the firewall's rules.
Version auto incrementSet the version in your CI release workflow.

Configure developers and CI for the pilot

Create Personal Access Tokens for pilot developers and a Service Access Token for each pilot CI system. GitHub Actions can use a trusted builder.

For direct setup, find the endpoint on the firewall's Setup tab and follow the setup guide for your ecosystem. To try a single install with a supported package manager, use the CLI wrapper. It routes that command's registry requests through the firewall and reports which rules fired.

Test before switching

Run a pilot build against the new firewall. To preview a rule's matches, turn on Log and leave Block off. Review the firewall log, add any needed exceptions, then enable Block and retest.

  • Install a public package and, if applicable, a private package through the firewall.
  • Check that each migrated rule matches the package or version you expect in Logs.
  • Verify that a version you intend to block cannot be installed. For a download block, use the request ID to find the log entry.
  • Test that an exception allows the intended version and that the rule still blocks a version outside the exception.

Switch over

Push any private package versions added since the pilot. Update the developer and CI configurations from your inventory to use the firewall endpoints and access tokens.

If npm's lockfile still points to the old Bytesafe registry, regenerate it with npm configured to use the firewall.

Check builds and firewall logs after switching. Keep the old registries and access tokens available as a fallback until you verify the switch. Retire them before the end-of-life date.

Frequently asked questions

No. The firewall is an enforcement layer. It applies your rules to package requests and forwards allowed requests to its upstreams, but it hosts no packages of its own.

Store private packages in a repository manager and connect it to the firewall as an upstream.

If you only install public packages, the firewall can fetch them directly from public registries.

Yes, for ecosystems that support publishing. Set your repository as the firewall's publish target. The firewall checks the upload against your rules before forwarding it.

Start a 14-day trial and run a pilot build while production keeps using your existing Bytesafe registries.