Skip to content

Commit 965bd53

Browse files
Enhancement : adding support for Aurora postgres AWS IAM authentication (#2650)
Add support for postgres AWS IAM authentication using the `apache-client` lib.
1 parent 149aaa6 commit 965bd53

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti
3131

3232
### Upgrade Notes
3333

34+
- Amazon RDS plugin enabled, this allows polaris to connect to AWS Aurora PostgreSQL using IAM authentication.
3435
- The EclipseLink Persistence implementation has been deprecated since 1.0.0 and will be completely removed
3536
in 1.3.0 or in 2.0.0 (whichever happens earlier).
3637

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ swagger = "1.6.16"
3939
# If a dependency is removed, check whether the LICENSE and/or NOTICE files need to be adopted
4040
# (aka mention of the dependency removed).
4141
#
42+
quarkus-amazon-services-bom = { module = "io.quarkus.platform:quarkus-amazon-services-bom", version.ref="quarkus" }
4243
antlr4-runtime = { module = "org.antlr:antlr4-runtime", version.strictly = "4.9.3" } # spark integration tests
4344
assertj-core = { module = "org.assertj:assertj-core", version = "3.27.6" }
4445
auth0-jwt = { module = "com.auth0:java-jwt", version = "4.5.0" }

runtime/admin/src/main/resources/application.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ quarkus.container-image.group=apache
3232
quarkus.container-image.name=polaris-admin-tool
3333
quarkus.container-image.additional-tags=latest
3434
quarkus.datasource.db-kind=postgresql
35-
35+
#https://docs.quarkiverse.io/quarkus-amazon-services/dev/amazon-rds.html#_configuring_rds_clients
36+
quarkus.rds.sync-client.type=apache
3637
# ---- Runtime Configuration ----
3738
# Below are default values for properties that can be changed in runtime.
3839

runtime/common/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ plugins {
2525
dependencies {
2626
compileOnly(libs.smallrye.config.core)
2727
implementation(project(":polaris-relational-jdbc"))
28+
implementation(platform(libs.quarkus.amazon.services.bom))
29+
implementation("io.quarkiverse.amazonservices:quarkus-amazon-rds")
2830
}

runtime/defaults/src/main/resources/application.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ polaris.persistence.type=in-memory
125125
# polaris.persistence.type=relational-jdbc
126126

127127
polaris.secrets-manager.type=in-memory
128+
# disable localstack
129+
# if set to true it will try to start localstack at build and run time for the local environment
130+
# https://docs.quarkiverse.io/quarkus-amazon-services/dev/amazon-rds.html#_configuration_reference for more details
131+
quarkus.devservices.enabled=false
132+
quarkus.rds.sync-client.type=apache
133+
134+
128135

129136
polaris.file-io.type=default
130137

0 commit comments

Comments
 (0)