GeezerVison is showing github.com — Add more detailed javadoc to Blob and Storage signUrl by mziccard · Pull Request #743 · googleapis/google-cloud-java
Conversation
This follows from #739 and tries to add a better javadoc to Storage.signUrl and Blob.signUrl
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
* and its associated key. If a {@link AuthCredentials.ServiceAccountAuthCredentials} was passed
|
|
|
* to {@link StorageOptions.Builder#authCredentials(AuthCredentials)} or the default credentials
|
|
|
* are being used and the environment variable {@code GOOGLE_APPLICATION_CREDENTIALS} is set, then
|
|
|
* {@code signUrl} will use that service account and associated key to sign the URL. If this
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for taking this issue! Just a few nits from me.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
@@ -456,13 +457,40 @@ public WriteChannel writer(BlobWriteOption... options) { |
|
|
* Generates a signed URL for this blob. If you want to allow access to for a fixed amount of time
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This is definitely looking great, very helpful. Would you guys consider adding a comment similar to what @mziccard mentioned in #739: "Signing a URL involves signing with a private key. If the credentials used to authenticate do not expose one (this is the case for App Engine credentials, Compute Engine credentials and Google Cloud SDK credentials) there is nothing we can do to help."? That was the most helpful line for me personally, since I did not previously realize that those credential types didn't contain the necessary private keys.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Yes, that is a good idea. Though I think we should direct that statement in the fallback option when serviceAccount is not set.
|
OverclockedTim and daddykotex reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
OverclockedTim reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
* want to require users to explicitly log in.
|
|
|
* Generates a signed URL for this blob. If you want to allow access for a fixed amount of time to
|
|
|
* this blob, you can use this method to generate a URL that is only valid within a certain time
|
|
|
* period. This is particularly useful if you don't want publicly accessible blobs, but don't want
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Looks good. Feel free to merge with or without my suggestions.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
mziccard
added a commit
that referenced
this pull request
Mar 15, 2016
Add more detailed javadoc to Blob and Storage signUrl
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 16, 2022
…ements.txt (#743)
* chore: update pip install statements in release scripts to use requirements.txt file
github-actions Bot
pushed a commit
to yoshi-code-bot/google-cloud-java
that referenced
this pull request
Nov 8, 2022
…s#1687) (googleapis#743)
* chore(java): add a note in README for migrated split repos
Disable renovate bot and flaky bot for split repositories
that have moved to the Java monorepo.
The Java monorepo will pass the "monorepo=True" parameter
to java.common_templates method in its owlbot.py files so that
the migration note will not appear in the README in the monorepo.
Co-authored-by: Jeff Ching <[email protected]>
Source-Link: https://togithub.com/googleapis/synthtool/commit/d4b291604f148cde065838c498bc8aa79b8dc10e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 11, 2026
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
meltsufin
pushed a commit
that referenced
this pull request
Apr 29, 2026
This PR was generated using Autosynth. 🌈
<details><summary>Log from Synthtool</summary>
```
2021-07-15 14:34:59,195 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-07-15 14:35:00,553 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/839f4eb4-03b8-41ac-9fc6-07ce34da1039/targets
- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
meltsufin
pushed a commit
that referenced
this pull request
May 1, 2026
This PR was generated using Autosynth. 🌈
<details><summary>Log from Synthtool</summary>
```
2021-07-15 14:34:59,195 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-07-15 14:35:00,553 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/839f4eb4-03b8-41ac-9fc6-07ce34da1039/targets
- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
cla: yes
This human has signed the Contributor License Agreement.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|