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

storageccl: support per-statement credentials param for GCS #32544

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

thoszhang
Copy link
Contributor

Previously, the options for GCS authentication for bulk IO were:

  • set the value of cloudstorage.gs.default.key (auth=default)
  • use the GCP SDK's implicit auth (auth=implicit)

This change adds the option auth=specified, allowing the JSON key object to
be sent in the new credentials query param, allowing for authentication on a
per-statement basis.

Fixes #31602

Release note (enterprise change): Adds the option to supply Google Cloud
Storage credentials on a per-statement basis with the query parameter
credentials.

Previously, the options for GCS authentication for bulk IO were:

* set the value of `cloudstorage.gs.default.key` (`auth=default`)
* use the GCP SDK's implicit auth (`auth=implicit`)

This change adds the option `auth=specified`, allowing the JSON key object to
be sent in the new `credentials` query param, allowing for authentication on a
per-statement basis.

Fixes cockroachdb#31602

Release note (enterprise change): Adds the option to supply Google Cloud
Storage credentials on a per-statement basis with the query parameter
`credentials`.
@thoszhang thoszhang requested review from dt and a team November 21, 2018 21:25
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@dt dt left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@thoszhang
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Dec 3, 2018
32544: storageccl: support per-statement credentials param for GCS r=lucy-zhang a=lucy-zhang

Previously, the options for GCS authentication for bulk IO were:

* set the value of `cloudstorage.gs.default.key` (`auth=default`)
* use the GCP SDK's implicit auth (`auth=implicit`)

This change adds the option `auth=specified`, allowing the JSON key object to
be sent in the new `credentials` query param, allowing for authentication on a
per-statement basis.

Fixes #31602

Release note (enterprise change): Adds the option to supply Google Cloud
Storage credentials on a per-statement basis with the query parameter
`credentials`.

Co-authored-by: Lucy Zhang <lucy-zhang@users.noreply.github.com>
@craig
Copy link
Contributor

craig bot commented Dec 3, 2018

Build succeeded

@craig craig bot merged commit 844cb6b into cockroachdb:master Dec 3, 2018
@thoszhang thoszhang deleted the gcs-credentials branch February 12, 2019 21:08
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.

None yet

4 participants