Security Guides
In-depth guides and analysis on security guides from the Safeguard engineering team.
5115 articles
Spring Security rule order: why does a scan find an open endpoint?
Spring Security applies only the first matching rule, so a broad permitAll above a narrow rule opens routes. How to order rules and end with denyAll.
Is Spring Boot's generated security password OK for production?
No. The random password printed at startup is for development only. What Spring Boot sets up by default and what to replace before you deploy.
How should a Spring Boot app read secrets: env vars or config trees?
Spring's docs note environment variables are a weak home for secrets. How configtree imports read mounted files, and how to keep secrets out of properties.
How do you verify imported triage decisions with a 20 finding sample?
After importing old decisions into a new scanner, verify them with a stratified sample of 20 findings. Steps, a table and clear stop criteria.
How do you spot blame in a postmortem draft? Before and after edits
Blame hides in names, adjectives and the phrase should have. A quick editing pass with before and after examples for security postmortems and reviews.
Should a front-end build and deploy run in separate CI jobs?
Yes. Build in a job with no deploy credentials, then deploy in a second job with environment secrets and a required reviewer, away from build tools.
SPDX PackageOriginator vs PackageSupplier: who goes in which field?
Supplier is who distributed the package to you, originator is who first created it. See the spec's glibc example and when to use NOASSERTION.
How do you write an SPDX PackageDownloadLocation for a Git repo?
Use a git+https URL, add an at sign and a refs/tags or commit pin, and a hash sign for a subpath. Or NONE or NOASSERTION when unknown. Examples inside.
How do you add a purl or CPE to an SPDX package with ExternalRef?
In SPDX 2.3 an ExternalRef line holds category, type and locator. Use PACKAGE-MANAGER for a purl and SECURITY for a CPE. Syntax, examples and mistakes.
What does the SPDX DESCRIBES relationship do and when is it needed?
DESCRIBES links the SPDX document to the package it covers, and is mandatory when more than one package is present. How to write it and avoid mistakes.
SPDX DEPENDS_ON, DEPENDENCY_OF or CONTAINS: which relationship fits?
DEPENDS_ON points from consumer to need, DEPENDENCY_OF reverses it, and CONTAINS describes packaging. How to choose, using the spec's definitions.
How does SPDX record build, dev, test and runtime dependencies?
SPDX has scoped relationships for build, dev, test and runtime dependencies. See when each type fits and why scope changes how you triage findings.
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.