-
Notifications
You must be signed in to change notification settings - Fork 283
fix(quickstart): fixed quickstart jdbc to include client id and secrets (#1613) #1614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, @pjanuario ! I stated a comment thread below trying to better understand the problem :)
@@ -40,6 +40,8 @@ This example requires `jq` to be installed on your machine. | |||
export QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgres:5432/POLARIS | |||
export QUARKUS_DATASOURCE_USERNAME=postgres | |||
export QUARKUS_DATASOURCE_PASSWORD=postgres | |||
export CLIENT_ID=root | |||
export CLIENT_SECRET=s3cr3t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you give some more details about why this is necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The secret comes from getting-started/jdbc/docker-compose-bootstrap-db.yml
(added under #1470).
Having this value set up front creates a backwards logical dependency, IMHO 🤔
Since docker-compose-postgres.yml
depends on the root secret and takes it from the user's env., I think docker-compose-bootstrap-db.yml
should take the root secret from the user's env. too (and fail if it is not provided).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, the spark client here passed creds here, can you please share what your command is to start docker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am starting with the product and I might be doing something wrong, but as new user I followed this jdbc tutorial as starting point and if we follow it, the service polaris-setup
invokes the polaris/create_catalog.sh
script that requires this secrets to be passed in order to create quickstart catalog.
This will fail because it doesnt have credentials, the log entries are i mentioned in #1613 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pjanuario : You initial fix works fine. I'm just suggesting to improve it :)
#1610 seems to offer a more holistic fix for the same problem. |
Closing this in favour of #1646 |
While following the quickstart for jdbc the instructions are incomplete, this change adds missing env variables so that your can follow the instructions to launch a jdbc connected instance.