惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Security Affairs
N
News and Events Feed by Topic
T
Tenable Blog
P
Proofpoint News Feed
W
WeLiveSecurity
Simon Willison's Weblog
Simon Willison's Weblog
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
Help Net Security
Help Net Security
I
Intezer
T
Threat Research - Cisco Blogs
S
Secure Thoughts
C
Cyber Attacks, Cyber Crime and Cyber Security
L
Lohrmann on Cybersecurity
AWS News Blog
AWS News Blog
Google Online Security Blog
Google Online Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
Project Zero
Project Zero
The Hacker News
The Hacker News
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Tor Project blog
N
News | PayPal Newsroom
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
A
Arctic Wolf
Forbes - Security
Forbes - Security
O
OpenAI News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Latest
Security Latest
P
Palo Alto Networks Blog
S
Schneier on Security
S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
H
Heimdal Security Blog
V
Vulnerabilities – Threatpost
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园_首页
T
Troy Hunt's Blog
Latest news
Latest news
Recent Announcements
Recent Announcements
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
L
LINUX DO - 热门话题
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium
V
Visual Studio Blog
H
Hacker News: Front Page

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
DevOps Security Best Practices Every Engineering Team Should Follow
James Joyner · 2026-06-26 · via DEV Community

I've spent 25 years securing Linux boxes, cloud accounts, CI/CD pipelines, and production clusters. The single most consistent lesson across all of it is this: the teams that get breached aren't the ones who lacked a security department. They're the ones who treated security as something a separate department would handle later.

Security is not a phase. It's not a gate at the end of the pipeline, and it's not a quarterly audit. It's a property of how you write infrastructure code, manage secrets, ship containers, and run production every single day. When security lives inside the daily workflow — in the merge request, the pipeline stage, the Terraform plan — it costs almost nothing. When it lives in a separate review at the end, it's expensive, late, and routinely skipped.

This is the checklist I'd hand a new engineering team. Everything here is defensive: hardening, detection, and recovery. Work through it section by section.

Why DevOps security belongs in the daily workflow

The whole premise of DevOps was to stop throwing work over the wall between dev and ops. Security is the last wall standing in most orgs, and it has to come down the same way: by moving the controls into the tools engineers already use.

  • Treat every pull/merge request as a security review surface, not just a code review.
  • Run security checks as pipeline stages that fail the build, not as advisory reports nobody reads.
  • Make the secure path the easy path — a hardened base image, a vetted Terraform module, a secrets helper — so engineers don't route around it.
  • Assign a security owner per service, not a security team for the whole company. Ownership beats oversight.
  • Measure mean-time-to-remediate for vulnerabilities the same way you measure deploy frequency.

If a control only exists in a wiki page, it doesn't exist. If it exists in the pipeline, it's real.

Secure access control and least privilege

Most incidents I've cleaned up came down to one over-privileged credential. Least privilege is boring and it's the highest-leverage thing on this list.

  • Default every IAM role, Kubernetes ServiceAccount, and Linux user to zero permissions, then add only what's needed.
  • Replace standing admin access with just-in-time elevation that expires automatically.
  • Scope cloud roles to specific resources and actions — no *:* policies, ever.
  • In Kubernetes, use RBAC Roles bound to namespaces rather than ClusterRole bindings wherever possible.
  • Separate human identities from machine identities. Humans get SSO; services get workload identity.
  • Audit who can sudo, who's in the docker group (that's root-equivalent), and who holds cloud admin — quarterly, in writing.

SSH key management and MFA

SSH is still how a huge amount of production gets touched, and it's still where credential hygiene quietly rots.

  • Disable password authentication entirely: PasswordAuthentication no and PermitRootLogin no in sshd_config.
  • Use per-user keys, never a shared key passed around in a chat thread.
  • Prefer short-lived SSH certificates from a CA over long-lived static keys; rotate the rest on a schedule.
  • Put a bastion/jump host in front of production and log every session through it.
  • Require MFA on every identity provider, VPN, and cloud console — phishing-resistant (WebAuthn/hardware keys) for anyone with production access.
  • Pull keys for departed team members the same day, and audit authorized_keys files for orphans.

Secrets management: API keys, passwords, and tokens

The fastest way to leak a secret is to commit it. The second fastest is to print it. Both are entirely preventable.

  • Never store secrets in git — not in code, not in .env, not in a "temporary" YAML file. Add a pre-commit secret scanner (gitleaks or trufflehog) to block it.
  • Centralize secrets in a real secrets manager: HashiCorp Vault, a cloud secrets manager, or equivalent.
  • For Kubernetes, use Sealed Secrets or an external-secrets operator so the cluster pulls from Vault at runtime — plain Secret objects are only base64, not encrypted.
  • Give every secret a rotation policy and an owner. Static credentials that never rotate are time bombs.
  • Inject secrets as runtime environment values or mounted files, not baked into container images or Terraform state.
  • Scan your git history, not just the current tree — a secret deleted in HEAD is still in the log until you rotate it.

CI/CD pipeline security

Your pipeline has credentials to everything. That makes it one of the highest-value targets you own, and it's frequently the least hardened.

  • Protect your main branches: require reviews, status checks, and signed commits before merge.
  • Mark CI/CD variables as protected and masked so they're only exposed on protected branches and never echoed to logs.
  • In GitLab CI, scope variables to environments and never echo a secret — masking helps, but the discipline of not printing it is what saves you.
  • Replace long-lived cloud keys in CI with short-lived credentials via OIDC. Let the pipeline exchange its identity for a temporary, scoped token instead of holding a static AWS_SECRET_ACCESS_KEY.
  • Pin and review your pipeline dependencies — third-party CI templates and actions run with your pipeline's privileges.
  • Require manual approval for production deploys, and make the deploy job itself least-privileged.

A leaked CI variable is a leaked production credential. Treat the pipeline config with the same care you'd treat root.

Container image scanning

A container is only as trustworthy as the layers underneath it. Most images ship with known CVEs the team never looked at.

  • Scan every image with Trivy (or Grype) as a GitLab pipeline stage before push, and fail the build on high/critical findings:
  container_scan:
    stage: test
    image: aquasec/trivy:latest
    script:
      - trivy image --exit-code 1 --severity HIGH,CRITICAL "$IMAGE_TAG"

  • Start from minimal base images (distroless or slim) to shrink the attack surface.
  • Run containers as a non-root user (USER in the Dockerfile) with a read-only root filesystem where possible.
  • Drop all Linux capabilities and add back only what's required.
  • Pin base images by digest, not by floating :latest tags, and rebuild regularly to pick up patches.
  • Sign images and verify signatures at admission so only your builds run in your cluster.

Infrastructure as Code security

IaC is where a one-line mistake becomes a fleet-wide misconfiguration. The good news: it's also where automated policy catches it before it ships.

  • Review Terraform and Ansible changes like application code — every change goes through a merge request with a human reviewer.
  • Run static analysis on IaC in the pipeline: tfsec/Checkov for Terraform, ansible-lint and kube-linter for the rest.
  • Adopt policy-as-code (OPA/Conftest or Sentinel) so rules like "no public S3 buckets" and "no 0.0.0.0/0 on port 22" are enforced automatically, not remembered by reviewers.
  • Protect and encrypt Terraform state — it contains secrets in plaintext. Use a remote backend with locking and access controls.
  • For Ansible, encrypt sensitive variables with Vault and avoid become where it isn't needed.
  • Diff the plan before every apply and require approval for changes to security groups, IAM, and networking.

If you want a structured second opinion on a risky module, an automated infrastructure code review catches the misconfigurations a tired reviewer skims past at the end of the day.

Patch management and vulnerability remediation

Unpatched systems are the most common root cause of breaches, and the least glamorous to fix. Make it routine so it isn't a decision.

  • Automate OS patching with unattended security updates on Linux, and rebuild container images on a cadence rather than letting them age.
  • Track your dependencies with SBOMs so you can answer "are we affected?" the day a CVE drops.
  • Subscribe to advisories for your stack and define an SLA: criticals patched in days, highs in a week or two.
  • Use Dependabot/Renovate to open dependency-bump PRs automatically and run them through your test suite.
  • Keep an inventory of every host, image, and cluster version — you can't patch what you don't know you run.

Monitoring, logging, and alerting for security events

You cannot respond to what you can't see. Detection is the difference between a contained incident and a postmortem that starts with "we think they were in for three months."

  • Enable Linux auditd and ship /var/log/auth.log, sudo events, and SSH activity to centralized, append-only storage.
  • Export security metrics to Prometheus and build Grafana dashboards plus alerts for anomalies: failed-login spikes, new sudo grants, unexpected outbound connections, root logins, container escapes.
  • Alert on auditd/SSH anomalies in Grafana — a burst of failed SSH from a new ASN, or a successful root login outside business hours, should page someone.
  • Turn on cloud audit logging (CloudTrail or equivalent) and alert on IAM policy changes, new access keys, and security-group edits.
  • Capture Kubernetes audit logs and alert on exec into production pods and changes to RBAC.
  • Keep logs immutable and retained long enough to investigate a slow-burn intrusion.

Backup and disaster recovery planning

Ransomware and fat-fingered terraform destroy have the same fix: backups you've actually tested. Untested backups are just hope.

  • Follow 3-2-1: three copies, two media types, one off-site and offline.
  • Keep at least one immutable/air-gapped copy that a compromised admin credential can't delete.
  • Encrypt backups at rest and control who can read and restore them.
  • Test restores on a schedule. A backup you've never restored is a guess, not a recovery plan.
  • Document RPO and RTO per service and verify your backup cadence actually meets them.
  • Back up the things people forget: Terraform state, Vault data, etcd, and database credentials.

Incident response preparation

The middle of an incident is the worst time to figure out your incident process. Prepare while it's calm.

  • Write a runbook: who's on call, how to declare an incident, where to communicate, and how to reach the right people fast.
  • Pre-define severity levels and the actions each triggers.
  • Keep break-glass credentials in a sealed, audited path — available in a crisis, logged when used.
  • Practice. Run a tabletop or game day at least quarterly so the steps are muscle memory.
  • Have communication templates ready — customer-facing and internal — so comms don't stall the investigation.
  • Draft blameless postmortems while the timeline is fresh, and turn action items into tracked work.

AI-assisted security checks — review, never blind trust

AI is genuinely useful for security work: it reads more YAML, Terraform, and logs than you can, and it's fast at spotting the misconfiguration buried in a 400-line diff. The rule is the same one I apply to everything an AI generates — it drafts, you decide.

  • Use AI to review IaC and pipeline configs for missing controls, over-broad permissions, and risky defaults — as a first-pass reviewer, not the final word.
  • Have it summarize scanner output and rank findings by real-world exploitability so your team fixes what matters first.
  • Let it draft hardening changes and policy rules, then read every line before you apply it — confident and correct are not the same thing.
  • Never paste live secrets, real hostnames, or customer data into a model. Scrub first.
  • Keep a human approving every change that touches IAM, networking, or production. AI accelerates the work; it doesn't own the risk.

If you want vetted starting points, our security & hardening prompts cover image scanning, Linux hardening, and IaC review, and the broader prompt library has the rest.

The bottom line

None of these practices are exotic. Least privilege, managed secrets, scanned images, policy-checked infrastructure, patched hosts, real monitoring, tested backups, and a rehearsed incident plan — every one is achievable this quarter, and every one is cheaper to build into the workflow than to bolt on after a breach.

And here's the part that doesn't show up on the engineering scorecard: secure DevOps is a competitive advantage. Customers run security questionnaires before they sign. Investors ask about your posture in diligence. Partners won't integrate with a platform they don't trust. The companies that win those deals are the ones who can show, not claim, that protecting customer systems is built into how they work every day.

Security isn't the tax you pay to ship. It's part of why people let you ship to them at all.


This article was originally published on DevOps AI ToolKit — practical AI workflows for cloud engineers.