Add sslmode, sslcert, and sslkey for PostgreSQL RDBMS

Aberta
#102 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
java, postgresql
Domínio
database, security

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

  • 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.

Linguagem predominante
Java
Estrelas
50
Forks
33
Merge médio
6d 2h
PRs com merge (30d)
2

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de spring-cloud/spring-cloud-bindings

Todas as issues de spring-cloud/spring-cloud-bindings

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.