Security Guides
In-depth guides and analysis on security guides from the Safeguard engineering team.
5115 articles
How do you stop one runaway query from taking down PostgreSQL?
Set statement_timeout and a connection limit per application role with ALTER ROLE, not globally, so one slow query or leak cannot starve the database.
Can a PostgreSQL role password expire? Using VALID UNTIL
PostgreSQL's VALID UNTIL clause sets a date after which a role's password stops working. Use it for contractors, and automate rotation for services.
What is the PUBLIC role in PostgreSQL grants and why does it matter?
PUBLIC is an implicit group that includes every role. Privileges granted to it apply to all users, and new functions give it EXECUTE by default.
What does trust mean in pg_hba.conf and when is it a bug?
The trust method in pg_hba.conf lets anyone who can reach the server log in as any user with no password. Use scram-sha-256 for anything real.
How does pg_hba.conf decide who can connect to PostgreSQL?
PostgreSQL uses the first pg_hba.conf record that matches the connection and never falls through. Order rules carefully and check listen_addresses too.
How does Postgres row-level security isolate tenants in a SaaS app?
Postgres row-level security puts a policy on every query against a table, so an app bug cannot return another tenant's rows. How it works and its limits.
What should a post-incident review ask about your SBOM?
After a dependency incident, review how your SBOM data served you. Ten blameless questions on speed, accuracy, coverage and what to fix before next time.
What should a post fix review cover after a vulnerability report?
A short, blameless review after you ship a security fix: root cause, regression tests, sibling bugs, timeline gaps, and policy changes worth making.
Does binding a port in a container expose your app to the internet?
Binding a port inside a container does not by itself expose it. Here is how port binding, services and ingress decide who can actually reach your app.
What is a policy decision point versus a policy enforcement point?
The decision point evaluates the rules and the enforcement point acts on the answer. Why the split matters, and where each one usually lives in an API.
PoC, framework module or scanner template: which is riskier?
Not all public exploit code is equal. A tested framework module, a scanner template and a blog PoC differ in how easy they are to use. How to rate each.
Your scanner PoC found real vulnerabilities. Who owns them?
A dependency scanning PoC will surface real, exploitable issues in live repos. Decide who triages, who fixes and who is told before the trial starts.
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.