Skip to content
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

Adding operator checks for External DB w/o SSL #1220

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

jackyalbo
Copy link
Contributor

@jackyalbo jackyalbo commented Sep 21, 2023

Explain the changes

  1. adding external DB validator using pq driver for Golang fix
  • Will if we can connect to the DB
  • Will validate the version is 15
  • Will validate the collation is C (no collation)
  • Will start the same connection type as we expect the core to do - so SSL (self-signed support or not and w/o client side certs) or no SSL at all.
  1. Fix - adapting secret to the one in Noobaa spec

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

  • Doc added/updated
  • Tests added

@jackyalbo jackyalbo changed the title Adding operator checks to SSL Adding operator checks for External DB w/o SSL Sep 21, 2023
db_url, err))
}
// Check if the version is 15
if version != "15" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we want to limit it only to this specific version?
Can we use a min version (maybe 12?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want to support just specific versions that we know we support and work well with noobaa. We can maybe add 12 (and only 12) but as we are going forward we probably decide not to... anyway an easy fix if we want to support more versions.

Copy link
Contributor

@liranmauda liranmauda left a comment

Choose a reason for hiding this comment

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

Approved, with few comments.

@jackyalbo jackyalbo force-pushed the jacky-external-db branch 2 times, most recently from 4706c54 to eb0a638 Compare September 21, 2023 13:27
adding external ssl validator using pq driver for golang
fix - adapting secret to the one in noobaa spec

Signed-off-by: jackyalbo <[email protected]>
@jackyalbo jackyalbo merged commit f913b7f into noobaa:master Sep 22, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants