Add support for AWS IAM authentication to RDS instances#4036
Open
wronghost wants to merge 3 commits intonuts-foundation:masterfrom
Open
Add support for AWS IAM authentication to RDS instances#4036wronghost wants to merge 3 commits intonuts-foundation:masterfrom
wronghost wants to merge 3 commits intonuts-foundation:masterfrom
Conversation
|
Coverage Impact ⬇️ Merging this pull request will decrease total coverage on Modified Files with Diff Coverage (3)
🤖 Increase coverage with AI coding...🚦 See full report on Qlty Cloud » 🛟 Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This pull request introduces AWS RDS IAM authentication support for the SQL storage backend, enabling secure database connections using temporary IAM tokens instead of static passwords. The implementation is opt-in, backward compatible, and includes comprehensive documentation, configuration options, and automated token management for both PostgreSQL and MySQL. Several new files, configuration parameters, and dependencies have been added to support this feature.
Major features and changes:
1. AWS RDS IAM Authentication Implementation
storage/rds_iam.gofor managing IAM token generation, connection string modification, and background token refresh logic.storage/rds_iam_test.go), documentation (storage/RDS_IAM_AUTHENTICATION.md), and example configuration (storage/rds_iam_example_config.yaml) have been included.storage/QUICKSTART_RDS_IAM.mdfor rapid setup and troubleshooting.2. Configuration and Usage
storage.sql.rdsiam.enabled,region,dbuser,tokenrefreshinterval) with detailed descriptions inREADME.rst.3. Codebase and Dependency Updates
storage/config.goandstorage/engine.goupdated to integrate RDS IAM authentication, including token management and background refresh routines.go.modto enable IAM token generation and AWS integration. [1] [2]4. Security and Compatibility
5. Documentation and Testing
These changes collectively provide a secure, automated, and well-documented way to use AWS RDS IAM authentication with the Nuts node SQL storage backend.