Skip to content

Conversation

@jdettmannnava
Copy link
Contributor

@jdettmannnava jdettmannnava commented Dec 2, 2024

🎫 Ticket

https://jira.cms.gov/browse/DPC-4415

🛠 Changes

  • Configured to use ssl if not running locally.
  • CGO_ENABLED set to 0 because it was failing to run
  • Format of ip address updated to match aws requirements
  • Database query optimized as drive-by-refactor

ℹ️ Context

  • Upgrade to postgres 16 meant we have to use a secure connection
  • Bugs fixed to allow testing

🧪 Validation

Manually placed in AWS and it works!

@jdettmannnava jdettmannnava changed the title use ssl if prod API-WAF-SYNC use ssl in database connection if prod Dec 3, 2024
@jdettmannnava jdettmannnava requested review from a team and ashley-weaver December 3, 2024 21:07
@jdettmannnava jdettmannnava marked this pull request as ready for review December 3, 2024 21:07
Copy link
Contributor

@ashley-weaver ashley-weaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

defer db.Close()

rows, queryErr := db.Query(`SELECT ip_address FROM ip_addresses`)
rows, queryErr := db.Query(`SELECT DISTINCT ip_address FROM ip_addresses`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

@jdettmannnava jdettmannnava merged commit 7258a86 into main Dec 3, 2024
10 checks passed
@jdettmannnava jdettmannnava deleted the jd/dpc-4415-waf-ssl branch December 3, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants