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

[gs] Add missing gcs-oauth2-boto-plugin package for non-raz scenarios #3523

Merged
merged 3 commits into from
Dec 18, 2023

Conversation

Harshg999
Copy link
Collaborator

@Harshg999 Harshg999 commented Nov 1, 2023

What changes were proposed in this pull request?

  • We need to install this package when using json credentials to auth in GS
  • This oauth2 plugin library helps in creating an oauth2 authhandler for GS when trying to access it the non-RAZ way.
  • On top of adding this plugin, we have to programatically provide the json credentials because the plugin works well with files.

How was this patch tested?

  • Manually tested

@Harshg999 Harshg999 self-assigned this Nov 1, 2023
@Harshg999 Harshg999 changed the title [gs] Add missing gcs-oauth2-boto-plugin package for non-RAZ scenarios [gs] Add missing gcs-oauth2-boto-plugin package for non-raz scenarios Nov 1, 2023
@Harshg999 Harshg999 enabled auto-merge (squash) November 1, 2023 12:22
Copy link
Collaborator

@agl29 agl29 left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -59,7 +60,7 @@ pytidylib==0.3.2
pytz==2021.3
PyJWT==2.4.0
requests-kerberos==0.12.0
rsa==4.7
rsa==4.7.2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a specific reason for using this specific version? Can't we upgrade it to the latest version, 4.9?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The package has dependency on rsa=4.7.2 so I changed to that version only.
https://github.com/GoogleCloudPlatform/gcs-oauth2-boto-plugin/blob/b749ea3424c26145277dc3c3987220891324023f/setup.py#L32

Also since this looks like an important package, I didn't want to bump it up higher due to regression concerns.

Copy link
Collaborator

@wing2fly wing2fly left a comment

Choose a reason for hiding this comment

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

@Harshg999
Are we using boto to integrate with GS, so we have this plugin lib?
Please add one or two lines in description to explain.

@Harshg999 Harshg999 merged commit 55883fb into master Dec 18, 2023
4 checks passed
@Harshg999 Harshg999 deleted the add-gs-package branch December 18, 2023 11:51
athithyaaselvam pushed a commit that referenced this pull request Feb 5, 2024
…#3523)

- Also add correct version for rsa==4.7.2 which is a dependency for gcs-oauth2-boto-plugin

(cherry picked from commit 55883fb)
athithyaaselvam pushed a commit that referenced this pull request Mar 14, 2024
…#3523)

- Also add correct version for rsa==4.7.2 which is a dependency for gcs-oauth2-boto-plugin

(cherry picked from commit 55883fb)
(cherry picked from commit bf2e95e)
Change-Id: Ifd3d1db1dde611ba7a2c042e330f1b6e94932047
(cherry picked from commit 6ac2ed9827fa3393479677286708010aa10c1aaf)
athithyaaselvam pushed a commit that referenced this pull request Jun 10, 2024
…az scenarios (#3523)

- Also add correct version for rsa==4.7.2 which is a dependency for gcs-oauth2-boto-plugin

(cherry picked from commit 55883fb)
(cherry picked from commit bf2e95e)
Change-Id: Ifd3d1db1dde611ba7a2c042e330f1b6e94932047
(cherry picked from commit a6e6de678a749610b9406ed1e941a802206452a8)
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.

4 participants