The Simplest Way to Make Sublime Text and Zerto Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair Sublime Text and Zerto to write and run recovery scripts fast. You edit automation scripts in the editor and send calls to the recovery API. This workflow lets engineers define virtual protection groups as plain text files. It cuts out slow manual clicks during high-stress site outages or routine failover drills. When a site goes down, your code brings servers back online in minutes. Testing your recovery plan becomes a normal part of daily coding work. How Sublime Text and Zerto s

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams pair Sublime Text and Zerto to write and run recovery scripts fast. You edit automation scripts in the editor and send calls to the recovery API.

This workflow lets engineers define virtual protection groups as plain text files. It cuts out slow manual clicks during high-stress site outages or routine failover drills. When a site goes down, your code brings servers back online in minutes. Testing your recovery plan becomes a normal part of daily coding work.

How Sublime Text and Zerto share keys and data

Sublime Text acts as the local workspace where engineers write automation scripts. Zerto runs on your servers and exposes a REST API for disaster recovery tasks. The two tools talk when your local build system runs a script. That script logs in to the recovery manager and receives a session token.

Once logged in, the script sends requests to check replication status or trigger failovers. The recovery server sends back JSON data with recovery point alerts and health metrics. Engineers read this output right inside the bottom panel of the text editor. They can fix script errors and test failover logic without leaving their coding window.

Good permissions keep this data flow safe across your whole team. Each engineer should log in with an individual identity instead of a shared login. The recovery server checks the user role before it runs any API command. Read-only roles let developers check health status without risking an accidental live site failover.

Common risks and how to scope roles and network paths

The biggest risk in this setup is storing plain text keys on laptops. Developers often paste API passwords into local project files to save time during testing. If a laptop gets lost, an attacker can read those files and wipe replicas. Shared service accounts create another major blind spot for security and operations teams.

When five engineers share one admin key, audit logs cannot show who triggered a failover. Broad tokens also let a simple script bug delete critical virtual protection groups. Unlogged queries from local editors make it hard to trace changes during an audit. You can fix these gaps by tightening both user roles and network paths.

End-to-End Encryption + Text-Based Session Recording: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Start by removing all static passwords from local editor project files and scripts. Force every script to pull a short-lived token from a secure store at runtime. Split your recovery roles by task so testing scripts cannot alter live production sites. Lock down network paths so the recovery API only accepts calls from trusted subnets.

Best practices for testing recovery code in your editor

Treat your disaster recovery scripts just like you treat core product code. Store every script in version control so peers can review changes before they run. Use your editor to check syntax and catch typos before sending any API requests. Always point your local build tasks to a test lab first.

Run isolated failover tests in Zerto to check that your scripts work as planned. These test runs spin up bubble networks that do not touch live traffic. Check the JSON responses in your editor output pane to confirm clean boot orders. Clear out any temporary session tokens from your local machine when the test ends.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Can Sublime Text trigger a live Zerto failover directly?

Yes, a custom build task in the editor can run a local script. That script calls the recovery API to start a live or test failover.

How should engineers store Zerto API keys on their laptops?

Engineers should never save raw API keys in local text files or folders. They should fetch temporary session tokens from an identity provider or secret store.

How do we stop a script bug from breaking production replication?

Assign read-only or test-only roles to the accounts used for daily script work. Keep live failover rights locked behind separate roles that require peer approval.

The query runs. The emails stay hidden.