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

pg connector pass client options #1444

Merged
merged 5 commits into from
Jan 24, 2022
Merged

pg connector pass client options #1444

merged 5 commits into from
Jan 24, 2022

Conversation

doodlesbykumbi
Copy link
Contributor

pg connector sends all client options in startup message. options specified in secretless config take precendence over those sent by the client

Desired Outcome

Please describe the desired outcome for this PR. Said another way, what was
the original request that resulted in these code changes? Feel free to copy
this information from the connected issue.

Implemented Changes

Describe how the desired outcome above has been achieved with this PR. In
particular, consider:

  • What's changed? Why were these changes made?
  • How should the reviewer approach this PR, especially if manual tests are required?
  • Are there relevant screenshots you can add to the PR description?

Connected Issue/Story

Resolves #[relevant GitHub issue(s), e.g. 76]

CyberArk internal issue link: insert issue ID

Definition of Done

At least 1 todo must be completed in the sections below for the PR to be
merged.

Changelog

  • The CHANGELOG has been updated, or
  • This PR does not include user-facing changes and doesn't require a
    CHANGELOG update

Test coverage

  • This PR includes new unit and integration tests to go with the code
    changes, or
  • The changes in this PR do not require tests

Documentation

  • Docs (e.g. READMEs) were updated in this PR
  • A follow-up issue to update official docs has been filed here: insert issue ID
  • This PR does not require updating any documentation

Behavior

  • This PR changes product behavior and has been reviewed by a PO, or
  • These changes are part of a larger initiative that will be reviewed later, or
  • No behavior was changed with this PR

Security

  • Security architect has reviewed the changes in this PR,
  • These changes are part of a larger initiative with a separate security review, or
  • There are no security aspects to these changes

@doodlesbykumbi doodlesbykumbi requested a review from a team as a code owner January 10, 2022 16:12
test/connector/tcp/pg/tests/client_options_test.go Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
diverdane
diverdane previously approved these changes Jan 13, 2022
Copy link
Contributor

@diverdane diverdane left a comment

Choose a reason for hiding this comment

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

LGTM!!!
Nice work on the UT!

@@ -23,6 +23,7 @@ type SingleUseConnector struct {
connectionDetails *ConnectionDetails
// databaseName is specified by the client application
databaseName string
options map[string]string
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe CodeClimate is complaining about this... go fmt will align the m in map with the s in string on the line above?

diverdane
diverdane previously approved these changes Jan 19, 2022
Copy link
Contributor

@diverdane diverdane left a comment

Choose a reason for hiding this comment

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

LGTM!!!

pg connector sends all client options in startup message. options specified in secretless config take precendence over those sent by the client
@codeclimate
Copy link

codeclimate bot commented Jan 21, 2022

Code Climate has analyzed commit dd72b31 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 2

The test coverage on the diff in this pull request is 40.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 54.7% (0.0% change).

View more on Code Climate.

@jtuttle jtuttle merged commit eeca1c6 into main Jan 24, 2022
@jtuttle jtuttle deleted the pg-pass-client-options branch January 24, 2022 16:11
@alexkalish
Copy link

Internal issue: ONYX-14961.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants