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

Support Exasol connection object to access credentials #54

Merged
merged 4 commits into from
Dec 6, 2019

Conversation

morazow
Copy link
Contributor

@morazow morazow commented Dec 6, 2019

Fixes #24.

Secure credentials are provided using the connection object password
identification property.

For example, users can create a connection object as below, where secure
credentials are separated by semicolon (';'), and provided as
'KEY=VALUE' pairs.

```
CREATE CONNECTION S3_IMPORT_CONNECTION
TO ''
USER '<aws_access_key>'
IDENTIFIED BY 'S3_SECRET_KEY=<aws_secret_key>;S3_SESSION_TOKEN=<aws_session_token>';
```

Or similarly setting access key in IDENTIFIED BY section:

```
CREATE CONNECTION S3_IMPORT_CONNECTION
TO ''
USER ''
IDENTIFIED BY 'S3_ACCESS_KEY=<aws_access_key>;S3_SECRET_KEY=<aws_secret_key>;S3_SESSION_TOKEN=<aws_session_token>';
```

Then we parse this string internally and update the properties structure
with new key - value pairs.

This is better design since secure credentials are usually more than
single username / password pairs; moreover, this implementation makes it
easier to extend previous non-connection implementation.

This commit also adds support for S3 session token, that is useful when
accessing S3 using Multi Factor Authentication (MFA).
@morazow morazow merged commit d17708a into master Dec 6, 2019
@morazow morazow deleted the feature/add-connection-object branch January 15, 2020 08:32
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.

Support Exasol connection to access credentials
1 participant