question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support DB Optional Properties in Service Binding pkg

See original GitHub issue

Description

When connecting DB with JDBC, the user is allowed to append optional properties to customize the connection, e.g.:jdbc:postgresql://localhost:5432/postgres?sslfactory=abc.def&prepareThreshold=1000, but this is currently not supported by Quarkus Service Binding Extension.

This is to propose that Service Binding Extension reads an options file, if it is present, under the directories in SERVICE_BINDING_ROOT. The file content is “key=val” pair and concatenate with ‘&’. e.g. sslfactory=class.path&prepareThreshold=1000.

Implementation ideas

Each database converter can format the optional properies accordingly. Postgresql as an example: https://gist.github.com/myeung18/9a9a7dca09fca9050afd99a8cbfe81bf

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:25 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Dec 1, 2021

I don’t understand what difference does it make to Service Binding client if those options are client specific or not.

It means that it doesn’t make sense for the operator to provide values for these, because each consumer (that is each client that consumes that service - a DB for example) has different needs and therefore needs to set different settings to match it’s own unique access characteristics.

0reactions
myeung18commented, Dec 2, 2021

I’m wondering about the security implication of passing the trust store in the SBO. Basically, it’s almost a “trust-all”. I understand why we could desire to do that, but provisioning certs is a very sensible operation.

Then, what about mTLS (I’m not sure PG supports it), how would you pass the client certs in this case?

In case we have this question is because I included those certificate related options in the example, we don’t actually have plan nor any use case to do any key management over SBO. Maybe someone else can answer the question.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Package Bind Processing - Host Integration Server
This optional attribute accepts a string value. The default value is an empty string. The string is comprised of a comma-separated SQL Server ......
Read more >
Using JavaFX Properties and Binding
In this tutorial you learn how to use properties and binding in JavaFX 2 ... This release introduces property support into JavaFX, support...
Read more >
App Manifest Attribute Reference | Cloud Foundry Docs
This section explains how to describe optional app attributes in manifests. ... for HTTP/2 in Cloud Foundry, see Configuring HTTP/2 Support.
Read more >
Core Features - Spring
This section dives into the details of Spring Boot. Here you can learn about the key features that you may want to use...
Read more >
Configuring Your Application - Quarkus
This property is optional - an empty Optional is injected if the configuration does not provide a value for greeting.name . Now, modify...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found