-
Notifications
You must be signed in to change notification settings - Fork 3
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
added default db params to dev file (fix) #467
Changes from 4 commits
25799b5
4a9fd8d
c1e301b
f4c8b32
0475e30
e03daea
173a49c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,9 +1,8 @@ | ||||||
spring: | ||||||
datasource: | ||||||
url: ${POSTGRES_HOST:postgres_fqdn}?sslmode=require | ||||||
username: ${DB_USERNAME:postgres_user} | ||||||
password: ${POSTGRES_USER:postgres_password} | ||||||
name: ${POSTGRES_DB:postgres_db_name} | ||||||
url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${DB_PORT:5432}/${POSTGRES_DB:reportvision}?sslmode=${SSL_MODE:disable} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @derekadombek and i tested this in a pairing session today and we found that this was one of the changes needed to get the middleware container image to be able to talk to the database container image when running locally in docker compose. (There may be other changes needed as well, I need to see if I can replicate it locally)
Suggested change
|
||||||
username: ${POSTGRES_USER:postgres} | ||||||
password: ${POSTGRES_PASSWORD:super_secret_password} | ||||||
devtools: | ||||||
restart: | ||||||
enabled: true | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,12 @@ services: | |
ports: | ||
- "5432:5432" | ||
environment: | ||
POSTGRES_DB: ${postgres_db_name} | ||
POSTGRES_HOST: ${postgres_fqdn} | ||
POSTGRES_USER: ${postgres_user} | ||
POSTGRES_PASSWORD: ${postgres_password} | ||
sslmode: require | ||
POSTGRES_DB: ${postgres_db_name:-reportvision} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it matter if the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems one is springboot synthax and the other is bash synthax. app.yaml is being used locally so it should work as is. |
||
POSTGRES_HOST: ${postgres_fqdn:-localhost} | ||
POSTGRES_USER: ${postgres_user:-postgres} | ||
POSTGRES_PASSWORD: ${postgres_password:-super_secret_password} | ||
DB_PORT: ${postgres_port:-5432} | ||
SSL_MODE: ${postgres_sslmode:-disable} | ||
api: | ||
build: | ||
context: ./backend | ||
|
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.
Do we want to
enable
ssl_mode to enforce SSL encryption for this connection?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 was thinking we can pass SSL_MODE as a argument(enabled,disabled) but kept it disabled by default for connecting to local host. Would this work?
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.
It appears @jonchang and @derekadombek have tested this in the
dev-env.yaml
andapplication.yaml
as disabled.SSL_MODE
enabled adds additional security. However, I will defer to the majority decision of the team on whether it should be enabled at this time or before we hand it off.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.
ok we can set it as enabled by default then.