Skip to content

Conversation

lnhsingh
Copy link
Contributor

Closes #4173.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor Author

@lnhsingh lnhsingh left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @Amruta-Ranade and @lucy-zhang)


_includes/v19.1/misc/external-urls.md, line 24 at r1 (raw file):

<a name="considerations"></a>

- <sup>1</sup>If the `AUTH` parameter is not specified, the `cloudstorage.gs.default.key` setting will be used if it is non-empty, otherwise the `implicit` behavior is used. If the `AUTH` parameter is `implicit`, all GCS connections use Google's [default authentication strategy](https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application). If the `AUTH` parameter is `default`, the `cloudstorage.gs.default.key` [cluster setting](cluster-settings.html) must be set to the contents of a [service account file](https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually) which will be used during authentication. <span class="version-tag">New in v19.1:</span> If the `AUTH` paramenter is `specified`, GCS connections are authenticated on a per-statement basis, which allows the JSON key object to be sent in the `credentials` parameter.

Not sure if I should use the New in flag elsewhere. It seemed awkward to put in the table. Thoughts, @Amruta-Ranade?

@cockroach-teamcity
Copy link
Member

Copy link
Contributor

@Amruta-Ranade Amruta-Ranade left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @Amruta-Ranade, @lhirata, and @lucy-zhang)


_includes/v19.1/misc/external-urls.md, line 24 at r1 (raw file):

Previously, lhirata wrote…

Not sure if I should use the New in flag elsewhere. It seemed awkward to put in the table. Thoughts, @Amruta-Ranade?

Hmm..I can't think of another way to include the flag. I think this looks okay.

@@ -21,7 +21,7 @@ If your environment requires an HTTP or HTTPS proxy server for outgoing connecti

<a name="considerations"></a>

- <sup>1</sup> If the `AUTH` parameter is `implicit`, all GCS connections use Google's [default authentication strategy](https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application). If the `AUTH` parameter is `default`, the `cloudstorage.gs.default.key` [cluster setting](cluster-settings.html) must be set to the contents of a [service account file](https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually) which will be used during authentication. If the `AUTH` parameter is not specified, the `cloudstorage.gs.default.key` setting will be used if it is non-empty, otherwise the `implicit` behavior is used.
- <sup>1</sup>If the `AUTH` parameter is not specified, the `cloudstorage.gs.default.key` setting will be used if it is non-empty, otherwise the `implicit` behavior is used. If the `AUTH` parameter is `implicit`, all GCS connections use Google's [default authentication strategy](https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application). If the `AUTH` parameter is `default`, the `cloudstorage.gs.default.key` [cluster setting](cluster-settings.html) must be set to the contents of a [service account file](https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually) which will be used during authentication. <span class="version-tag">New in v19.1:</span> If the `AUTH` paramenter is `specified`, GCS connections are authenticated on a per-statement basis, which allows the JSON key object to be sent in the `credentials` parameter.

Choose a reason for hiding this comment

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

We should also mention that the key needs to be base64-encoded. Adding a sentence at the end like The JSON key object should be base64-encoded (using the standard encoding in RFC 4648) should be fine.

Also, I think the CREDENTIALS query param should be uppercase to match the table/the rest of the docs.

Choose a reason for hiding this comment

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

Also, parameter is misspelled as paramenter.

Copy link
Contributor Author

@lnhsingh lnhsingh left a comment

Choose a reason for hiding this comment

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

TFTRs!

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @lucy-zhang)


_includes/v19.1/misc/external-urls.md, line 24 at r1 (raw file):

Previously, lucy-zhang (Lucy Zhang) wrote…

Also, parameter is misspelled as paramenter.

Done.

@lnhsingh lnhsingh requested a review from jseldess April 1, 2019 16:50
@@ -21,7 +21,7 @@ If your environment requires an HTTP or HTTPS proxy server for outgoing connecti

<a name="considerations"></a>

- <sup>1</sup> If the `AUTH` parameter is `implicit`, all GCS connections use Google's [default authentication strategy](https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application). If the `AUTH` parameter is `default`, the `cloudstorage.gs.default.key` [cluster setting](cluster-settings.html) must be set to the contents of a [service account file](https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually) which will be used during authentication. If the `AUTH` parameter is not specified, the `cloudstorage.gs.default.key` setting will be used if it is non-empty, otherwise the `implicit` behavior is used.
- <sup>1</sup>If the `AUTH` parameter is not specified, the `cloudstorage.gs.default.key` setting will be used if it is non-empty, otherwise the `implicit` behavior is used. If the `AUTH` parameter is `implicit`, all GCS connections use Google's [default authentication strategy](https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application). If the `AUTH` parameter is `default`, the `cloudstorage.gs.default.key` [cluster setting](cluster-settings.html) must be set to the contents of a [service account file](https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually) which will be used during authentication. <span class="version-tag">New in v19.1:</span> If the `AUTH` parameter is `specified`, GCS connections are authenticated on a per-statement basis, which allows the JSON key object to be sent in the `credentials` parameter. The JSON key object should be base64-encoded (using the standard encoding in [RFC 4648](https://tools.ietf.org/html/rfc4648)).

Choose a reason for hiding this comment

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

Can credentials be capitalized (in "which allows the JSON key object to be sent in the credentials parameter")?

Copy link
Contributor Author

@lnhsingh lnhsingh left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @jseldess and @lucy-zhang)


_includes/v19.1/misc/external-urls.md, line 24 at r2 (raw file):

Previously, lucy-zhang (Lucy Zhang) wrote…

Can credentials be capitalized (in "which allows the JSON key object to be sent in the credentials parameter")?

Sorry, missed that before. Done.

Copy link
Contributor

@jseldess jseldess left a comment

Choose a reason for hiding this comment

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

:lgtm: with a nit.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jseldess, @lhirata, and @lucy-zhang)


_includes/v19.1/misc/external-urls.md, line 24 at r3 (raw file):

<a name="considerations"></a>

- <sup>1</sup>If the `AUTH` parameter is not specified, the `cloudstorage.gs.default.key` setting will be used if it is non-empty, otherwise the `implicit` behavior is used. If the `AUTH` parameter is `implicit`, all GCS connections use Google's [default authentication strategy](https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application). If the `AUTH` parameter is `default`, the `cloudstorage.gs.default.key` [cluster setting](cluster-settings.html) must be set to the contents of a [service account file](https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually) which will be used during authentication. <span class="version-tag">New in v19.1:</span> If the `AUTH` parameter is `specified`, GCS connections are authenticated on a per-statement basis, which allows the JSON key object to be sent in the `CREDENTIALS` parameter. The JSON key object should be base64-encoded (using the standard encoding in [RFC 4648](https://tools.ietf.org/html/rfc4648)).

nit: change setting to cluster setting and make it a link to cluster-settings.html.

Closes #4173.

Edits based on Lucy / Amruta's feedback

Edit based on feedback
@cockroach-teamcity
Copy link
Member

@lnhsingh lnhsingh merged commit f781ee1 into master Apr 1, 2019
@lnhsingh lnhsingh deleted the gcs-cred branch April 1, 2019 22:05
@cockroach-teamcity
Copy link
Member

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/3026aab69549376a362bd166e6c9cab25d798fd2/

Edited pages:

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.

storageccl: support per-statement credentials param for GCS
5 participants