Add sslmode, sslcert, and sslkey for PostgreSQL RDBMS

Offen
#102 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
java, postgresql
Bereich
database, security

Rechercherichtung

Start in PostgreSqlBindingsPropertiesProcessor.java, around line 111, where extra PostgreSQL JDBC options are already added to the URL, and check how the private-key and certificates secret entries are turned into file paths. Confirm whether the existing mechanism can carry sslkey and sslcert, then add them. Done means a postgresql binding with those entries produces a JDBC URL containing sslkey and sslcert pointing to the right files, with a test covering it.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

  • When a Service Binding exists that provides private-key for type postgresql then spring cloud bindings should add sslkey to the JDBC url that points to the file location that contains the contents for the private-key.
  • When a Service Binding exists that provides certificates for type postgresql then spring cloud bindings should add sslcert to the JDBC url that points to the file location that contains the contents for the certificates.

I see there is already a way to add some additional DB options:
https://github.com/spring-cloud/spring-cloud-bindings/blob/7f20fb23ba134a58bf1733b1dce5f87fe9322e5b/spring-cloud-bindings/src/main/java/org/springframework/cloud/bindings/boot/PostgreSqlBindingsPropertiesProcessor.java#L111
I'm wondering if this can already be leveraged to add in missing parameters for sslcert and sslkey which are necessary for TLS Authentication to Postgres databases.

So this issue might just be documenting how to add those parameters, and how to populate them with a TLS certificate added through certificates and private-key are populated as well-known Secret Entries , but at first glance I don't think this functionality works properly.

Vorherrschende Sprache
Java
Sterne
50
Forks
33
Ø Merge
6 T. 2 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus spring-cloud/spring-cloud-bindings

Alle Issues in spring-cloud/spring-cloud-bindings

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.