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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
J
Java Code Geeks
C
Check Point Blog
Last Week in AI
Last Week in AI
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 司徒正美
IT之家
IT之家
Martin Fowler
Martin Fowler
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
U
Unit 42
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ

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
100 Days of DevOps, Day 2: Expiring Linux Users and Locki...
Nnamdi Felix Ibe · 2026-06-23 · via DEV Community

Nnamdi Felix Ibe

Day 2. Not Day 1, not Day 50. Day 2 is the day the motivation from starting has worn off, and the finish line isn't in sight yet. This is where most challenges quietly die.

So here's mine.

Same format as yesterday: the Linux task and the AWS task from the session, plus what actually matters about each one once you've done it a few hundred times in production. Today, both tasks come down to the same idea. Controlling access. Who gets in, and from where.

Task 1 (Linux): Create a User That Expires on Its Own

The task: create an account that switches itself off on a set date. This is what you set up for a contractor, an auditor, anyone with temporary access.

# Create the user with an expiry date (format: YYYY-MM-DD)
sudo useradd -e 2026-12-31 username

# Verify the expiry date is set
sudo chage -l username

Key points:

  • useradd -e sets the expiry at the moment you create the account, so there's no follow-up task to remember.
  • chage -l lists the account's ageing settings. Confirm Account expires shows the date you set.

The accounts that cause incidents aren't the ones you remember to remove. They're the ones you forget. Setting the expiry at creation means there's nothing to forget. In a regulated environment, a contractor account with no end date is exactly the kind of thing that turns up in an access review with your name next to it.

Task 2 (AWS): Create a Security Group and Open One Port

Goal: create a security group and allow a single port in. Here, that's RDP on 3389.

# Create the security group in the default VPC
aws ec2 create-security-group \
  --group-name my-sg \
  --description "My security group"

# Add an inbound rule. Allow TCP 3389 (RDP) from a specific CIDR
aws ec2 authorize-security-group-ingress \
  --group-id <GroupId> \
  --protocol tcp \
  --port 3389 \
  --cidr x.x.x.x/x

# Verify the rule was added
aws ec2 describe-security-groups --group-ids <GroupId>

Key points:

  • A new security group blocks all inbound traffic and allows all outbound by default. You only add what you want to let in.
  • Security groups are stateful. Allow the inbound request and the return traffic is automatic. You don't need a matching outbound rule.
  • Scope the CIDR. 0.0.0.0/0 on a port like 3389 or 22 means the entire internet can reach it.

Read enough breach write-ups, and a pattern shows up. There's almost always a security group in the story, opened wider than it needed to be, for a reason nobody can remember. 0.0.0.0/0 is convenient on a Friday afternoon and a liability by Monday. Scope it to the address that actually needs it.

What Day 2 Is Really About

Both tasks today limit something. The user expires. The port opens to one address, not the whole internet.

None of it is advanced. All of it is the difference between a system that passes an audit and one that becomes a story other engineers read later.

Day 3 is already done. If you're documenting your own work, here's my question: do you write down the boring controls, the expiry dates and the scoped CIDRs, or only the clever stuff? Because in my experience, the boring controls are the ones that save you.