Safeguard
Topic

Developer Tools

In-depth guides and analysis on developer tools from the Safeguard engineering team.

2959 articles

Developer Tools

IDE, CLI, CI or pull request: which scan stage fits which job?

A quick guide to what each scan stage is for: IDE for hints, CLI for local and one-off checks, CI for repeatable runs, pull request for the enforced gate.

Oct 19, 20264 min read
Developer Tools

Should Husky git hooks install in CI and Docker builds?

Husky hooks belong on developer machines. Set HUSKY to 0 in CI and Docker so the prepare script installs nothing and the build runs less install time code.

Oct 19, 20264 min read
Developer Tools

How do you require human approval before automation changes code?

Use GitHub environments with required reviewers so a job pauses until a person approves. Setup steps, plan limits and what approval should show.

Oct 19, 20264 min read
Developer Tools

How do you run Hugging Face model loading offline in production?

Set HF_HUB_OFFLINE so the library makes no Hub calls and uses the cache. Pre-fetch a pinned revision, ship the cache, and test it with no network.

Oct 19, 20264 min read
Developer Tools

How should you manage HttpClient lifetime in a .NET service?

Reuse HttpClient. Use one long lived client with PooledConnectionLifetime set, or IHttpClientFactory. Never create a new client for every request.

Oct 19, 20264 min read
Developer Tools

What is HttpClient's default timeout and is it safe?

HttpClient.Timeout defaults to 100 seconds, which is long for a service call. Set tighter limits, plus per request cancellation tokens for each call.

Oct 19, 20264 min read
Developer Tools

HTTP client library fix: what to test for redirects, timeouts and TLS

Fixes to HTTP client libraries often change redirect, timeout, proxy and certificate behavior. A test list for services that call other services.

Oct 19, 20264 min read
Developer Tools

What is HQL injection and how do named parameters stop it?

HQL injection happens when user input is concatenated into a Hibernate query string. Named parameters keep input as data so it cannot change the query.

Oct 19, 20264 min read
Developer Tools

How does wpackagist turn WordPress plugins into Composer packages?

wpackagist mirrors WordPress.org plugins as Composer packages. Learn how it maps versions, what the trunk build means, and how to restrict it to plugins.

Oct 19, 20263 min read
Developer Tools

What should a failed security gate message say to a developer?

A failed security gate message should say what failed, why it matters, the exact fix, and how to request an exception. Use this template for pipelines.

Oct 19, 20263 min read
Developer Tools

How do you write an IDE security warning developers act on?

An IDE security warning works when it names the risk, the location, and the next step in one glance. Here is a message template and what to cut.

Oct 19, 20264 min read
Developer Tools

How do you write an exit plan before adopting a library?

An exit plan for a third-party library is five short answers written before adoption: triggers, alternatives, swap cost, data and owner. Template included.

Oct 19, 20264 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.