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 support for base64 encoded secrets in Google Sheets connector #15477

Merged

Conversation

grantatspothero
Copy link
Contributor

@grantatspothero grantatspothero commented Dec 20, 2022

Description

Allows the google sheets connector to be configured by base64 encoded string (instead of file). Simplifies deployments of trino since you do not need to configure a file. This is similar to what is supported for the bigquery connector: https://github.com/trinodb/trino/blob/master/plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/StaticCredentialsConfig.java#L27

Also updates the google sheets dependency version, the current version: https://mvnrepository.com/artifact/com.google.apis/google-api-services-sheets/v4-rev516-1.23.0 is multiple years old and has a dependency on google-api-client with a security vulnerability.

Additional context and related issues

N/A

Release notes

( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text:

# Google Sheets
* Add support for base64 encoded credentials using the `gsheets.credentials-key` config property. 

The library was multiple years old with several security warnings
Copy link
Member

@ebyhr ebyhr left a comment

Choose a reason for hiding this comment

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

Looks good except for comments.

@ebyhr ebyhr changed the title Gn/sheets connector credential support Add support for base64 encoded secrets in Google Sheets connector Dec 21, 2022
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

LGTM % Yuya's comments

@grantatspothero grantatspothero force-pushed the gn/sheetsConnectorCredentialSupport branch 2 times, most recently from f9ec50f to d99ed57 Compare December 21, 2022 17:38
@github-actions github-actions bot added the docs label Dec 21, 2022
@ebyhr ebyhr force-pushed the gn/sheetsConnectorCredentialSupport branch from d99ed57 to 958e279 Compare December 21, 2022 23:36
@ebyhr ebyhr merged commit 73ae6ec into trinodb:master Dec 22, 2022
@ebyhr ebyhr mentioned this pull request Dec 22, 2022
@github-actions github-actions bot added this to the 404 milestone Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants