Urgent.News

What's breaking now, across thousands of outlets.

Tech

Production API Key Rotation Explained: 6 Least-Privilege Checks for Node.js GitHub Actions

Short answer: use two narrowly scoped API keys, switch traffic with an explicit activation step, and revoke the old key only after logs and live requests prove the cutover. For a property-management service, that sequence rotates a production credential without taking rent, work-order, or tenant-notification flows offline. The hard part is attribution. A shared CI secret can make every building,…

Production API key rotation is crucial for minimizing security risks in Node.js GitHub Actions pipelines. The recommended approach involves using two narrowly scoped keys, switching traffic with an explicit activation step, and revoking the old key only after thorough verification. This ensures minimal downtime and prevents any disruption to critical flows, such as rent, work-order, or tenant-notification systems.

The key challenge lies in accurately attributing usage to prevent security incidents and accounting disputes. A small control plane around the key is more effective than a larger token approach.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Digital Sovereignty: Europe's Path to Infra-Independence

Digital sovereignty in the EU: From slogan to practice We're surfing on the wrong server. That's one of the harshest realities we're facing as IT professionals today.

  • "Digital Sovereignty" in EU discussed as political slogan, but operational challenge
  • US-CLOUD Act allows US authorities to demand data access regardless of data center location
  • EU initiatives DGA and GAIA-X aim to create framework for sovereign data markets

Keeping Services Loosely Coupled Without Making Everything Abstract

Loose coupling is one of those things everyone agrees with until they have to do it. Then it turns into a mess of interfaces, event buses, and six layers of indirection for a feature that just sends…

  • Loose coupling is complex with unnecessary layers for simple tasks.
  • Services should connect through stable contracts, not internals.
  • Loose coupling is an ongoing maintenance property, not a one-time goal.

Moving Off PaaS: Deploying Production Laravel Stacks with Kamal 2

Platform-as-a-Service (PaaS) providers make launching a web application simple. You push code, and they handle the infrastructure. However, as your application grows, the cost scales aggressively.

  • Kamal 2 deploys containerized apps to any VPS with zero downtime
  • Laravel app Dockerfile includes PHP-FPM, Nginx, PHP extensions
  • kamal setup initiates first deployment, kamal deploy for updates

More from Sunday 13 September →