Safeguard
Topic

Developer Tools

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

2959 articles

Developer Tools

What belongs in the first commit of an AI-built prototype?

A first-commit checklist for AI-built prototypes: gitignore, lockfile, example env file, owner note and a README that says what the prototype must not do.

Oct 19, 20263 min read
Developer Tools

How do you find why a dependency is in your Bazel module graph?

Use the Bazel mod command: graph, all_paths and explain show where a module comes from and which modules require it. Steps and a worked workflow.

Oct 19, 20264 min read
Developer Tools

A grouped fix PR broke the build: how do you find the guilty update?

A grouped dependency PR failed? Halve the group and test each half, then repeat. Git bisect automates the search when each update is its own commit.

Oct 19, 20264 min read
Developer Tools

How do you find an extension's ID for an allowlist?

Allowlists match on IDs, not names. Where to find the ID in Edge, VS Code and Firefox, how publisher IDs differ, and how to record them so reviews stick.

Oct 19, 20264 min read
Developer Tools

How do you find manifests your scanner silently skipped?

List every manifest and lockfile in a repository with git ls-files, then diff it against what the scanner reported. A simple way to catch silent skips.

Oct 19, 20263 min read
Developer Tools

How to find duplicate library versions in your SBOM and collapse them

The same library at three versions means more to patch and more to explain. Find duplicates in your SBOM, then collapse them with dedupe or aligned ranges.

Oct 19, 20263 min read
Developer Tools

How do you find duplicate copies of a library in a frontend app?

Use npm ls and npm explain to list every installed version of a package and why it is there, then npm dedupe. Why duplicates matter after updates.

Oct 19, 20263 min read
Developer Tools

How do you stop compiler build paths leaking into binaries?

Use the GCC and Clang prefix map flags to rewrite your build directory in debug info and file macros. See which flag covers what and where it falls short.

Oct 19, 20263 min read
Developer Tools

How do you fetch a CVE record from CVE Services and read its containers?

One request returns the CNA's own record plus ADP additions. Learn the metadata fields, the containers and why the CVE and NVD update dates differ.

Oct 19, 20263 min read
Developer Tools

What does FastAPI's OAuth2PasswordBearer actually check?

OAuth2PasswordBearer reads the Authorization header and returns 401 if absent. It does not validate the token or create the login route. What to add.

Oct 19, 20263 min read
Developer Tools

How do you require auth on every FastAPI route?

Pass an auth dependency to FastAPI(dependencies=[...]) or to an APIRouter so every route inherits it. Why that beats adding it per route, and what to test.

Oct 19, 20263 min read
Developer Tools

Express vs Fastify defaults for request limits: which are stricter?

A side by side table of documented defaults for body size, params, trust proxy, timeouts and proto handling in Express and Fastify, and what to set.

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.