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

Add new parameter for SIGv4 auth. #42

Merged
merged 7 commits into from
May 30, 2023

Conversation

Yury-Fridlyand
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand commented May 10, 2023

Description

Add new optional parameter for use with AWS_SIGv4 authentication to connect to a cluster via SSH tunnel (for example - OpenSearch cluster is a VPC endpoint).
This parameter is required to fix request header to comply SIGv4 requirements. Ref: link.

New UI config parameter + new connection string parameter:

image

TODOs

Issues Resolved

Fixes #41, #39

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
src/sqlodbc/dlg_specific.h Show resolved Hide resolved
src/sqlodbc/dlg_wingui.c Show resolved Hide resolved
src/sqlodbc/opensearch_communication.cpp Outdated Show resolved Hide resolved
src/sqlodbc/opensearch_odbc.rc Show resolved Hide resolved
@acarbonetto
Copy link
Collaborator

Make sure to update documentation for connections and mention how to connect basic/sigv4 through a tunnel (and what to set as the tunnel host): https://github.com/opensearch-project/sql-odbc/blob/main/docs/user/configuration_options.md

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
src/sqlodbc/dlg_specific.h Outdated Show resolved Hide resolved
src/PerformanceTests/PTODBCInfo/performance_odbc_info.cpp Outdated Show resolved Hide resolved
src/sqlodbc/opensearch_odbc.rc Outdated Show resolved Hide resolved
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Copy link

@dylanmtaylor dylanmtaylor left a comment

Choose a reason for hiding this comment

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

I have tested these changes and they fix an issue for us.

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.

[FEATURE] Support SSH tunnel with AWS_SIGv4 auth
7 participants