Skip to content

Commit 8dfe268

Browse files
authored
Legacy CDK: More rootless fixes (#51583)
1 parent c494847 commit 8dfe268

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

airbyte-cdk/java/airbyte-cdk/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ corresponds to that version.
174174

175175
| Version | Date | Pull Request | Subject |
176176
|:-----------|:-----------|:------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
177+
| 0.48.5 | 2025-01-16 | [\#51583](https://github.com/airbytehq/airbyte/pull/51583) | Also save SSL key to /tmp in destination-postgres |
177178
| 0.48.4 | 2024-12-24 | [\#50410](https://github.com/airbytehq/airbyte/pull/50410) | Save SSL key to /tmp |
178179
| 0.48.3 | 2024-12-23 | [\#49858](https://github.com/airbytehq/airbyte/pull/49858) | Relax various Destination CDK methods visibility. |
179180
| 0.48.1 | 2024-11-13 | [\#48482](https://github.com/airbytehq/airbyte/pull/48482) | Adding support converting very large numbers via BigInteger |
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.48.4
1+
version=0.48.5

airbyte-cdk/java/airbyte-cdk/datastore-postgres/src/main/kotlin/io/airbyte/cdk/integrations/util/PostgresSslConnectionUtils.kt

+2-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object PostgresSslConnectionUtils {
2828
const val VERIFY_FULL: String = "verify-full"
2929
const val DISABLE: String = "disable"
3030
const val TRUE_STRING_VALUE: String = "true"
31-
const val ENCRYPT_FILE_NAME: String = "encrypt"
31+
const val ENCRYPT_FILE_NAME: String = "/tmp/encrypt"
3232
const val FACTORY_VALUE: String = "org.postgresql.ssl.DefaultJavaSSLFactory"
3333

3434
@JvmStatic
@@ -68,11 +68,7 @@ object PostgresSslConnectionUtils {
6868
if (file.exists()) {
6969
keyStorePassword = readFile(file)
7070
} else {
71-
try {
72-
createCertificateFile(ENCRYPT_FILE_NAME, keyStorePassword)
73-
} catch (e: IOException) {
74-
throw RuntimeException("Failed to create encryption file ")
75-
}
71+
createCertificateFile(ENCRYPT_FILE_NAME, keyStorePassword)
7672
}
7773
} else {
7874
keyStorePassword = sslPassword

0 commit comments

Comments
 (0)