Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

RDS High Availability and credential rotation without downtime

I got an AWS question and implemented it to make sure that the option is correct. A critical financial application runs on RDS for PostgreSQL. The requirements are tight: 1-second RPO, 60-second RTO, and database credentials rotated every 30 days without taking the application offline. Two independent problems. Two independent solutions. Prerequisites Check these before running terraform apply :…

The source material details a solution for maintaining high availability and secure credential rotation in a critical financial application hosted on Amazon RDS for PostgreSQL. The requirements stipulate a 1-second Recovery Point Objective (RPO) and a 60-second Recovery Time Objective (RTO), with database credentials rotated every 30 days without application downtime. The solution involves two key components:

1. **Multi-AZ Deployment with RDS Proxy**: The primary solution leverages Amazon RDS Multi-AZ feature, which provides synchronous standby replicas in a second Availability Zone. This setup ensures RPO close to zero, with failover typically completing within 60 seconds, satisfying the RTO requirement. RDS Proxy plays a crucial role here by maintaining a warm pool of connections to the database.

During Multi-AZ failover, Proxy detects the new primary and reroutes connections internally, ensuring minimal disruption to application connections. This setup eliminates the need for applications to re-establish database connections during failover, thereby maintaining application availability.

2. **Secrets Manager with Automatic Rotation**: The second component addresses the challenge of database credential rotation. Using AWS Secrets Manager, the solution automates the rotation of database credentials every 30 days. AWS Secrets Manager handles the rotation process using a managed Lambda function, generating a new password, updating it in RDS, and updating the secret.

The critical aspect is that applications retrieving credentials from Secrets Manager always obtain the current valid credentials without experiencing downtime. Additionally, RDS Proxy reads credentials from Secrets Manager directly, ensuring that the application continues to use the most recent credentials even during the rotation process.

Both solutions work in conjunction to meet the stringent requirements of the financial application. The Multi-AZ deployment ensures high availability and low data loss during failover, while Secrets Manager with automatic rotation guarantees secure and seamless credential updates. Together, these solutions provide a robust framework for maintaining application uptime and security in a critical financial environment.

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

.NET 10 dotnet tool exec: Pin the Version and Feed in CI

A CI step that says dotnet tool exec Some.Tool looks isolated, but it is not fully reproducible. Without a version, the command can resolve the latest package from the configured feeds.

  • .NET 10 introduces dotnet tool exec for single tool execution
  • Version pinning and feed configuration prevent drift between runs
  • NuGet.Config file with local package source ensures CI reproducibility

Implementing Feature Management in .NET: The Lazy Way

Microsoft did the hard work so you don't have to. The Microsoft.FeatureManagement library integrates directly with .NET's configuration and dependency injection systems, which means you can get…

  • Microsoft released Microsoft.FeatureManagement library for .NET
  • Library integrates with .NET configuration and DI systems
  • Feature flags configured in appsettings.json with IsEnabledAsync check

You Can Finally Buy a Fairphone In the US

An anonymous reader quotes a report from Wired: Your iPhone, SamsungGalaxy, andGoogle Pixel have a 1-year warranty. Unless you cough up extra dough for an extended service plan, you'll pay a hefty fee…

  • Fairphone now available for purchase in the US
  • Features modular design with 12 replaceable parts
  • Priced at $650, available on Amazon and Fairphone.com

More from Tuesday 18 August →