Course outline

Google Cloud / Intermediate: Service Contracts and Operations / Lesson 14

Bound Cloud Storage signed URL access

Review bearer access, request scope and safe diagnostics for a Cloud Storage signed URL.

About 20 min read20 worked examples20 practice exercisesContent reviewed
On this page

Lesson goals

  • Explain the bearer nature and scope of signed URLs.
  • Compare the signed request with the client request.
  • Design a sanitized lab verification and denial case.
  • Compare a client request with its signed method, resource, headers and validity.
  • Assess bearer exposure and distinguish expiration from recovery of delivered data.

Model temporary bearer access

A Cloud Storage signed URL grants time-limited permission for a specific request to whoever possesses it. Protect the complete URL, including its query string, as sensitive bearer material. Authorize the requester before issuing it and select the intended object, method and lifetime. Signed URLs use Cloud Storage XML API endpoints. These records are fictional and contain no usable signature.

Define the request

The first record states a synthetic GET request and an approved short lifetime. The signer’s authority and applicable access controls still matter. Choose a lifetime appropriate to the user task and exposure risk; do not assume a signed URL is a single-use token. The record is a checklist rather than a URL or instruction to grant public bucket access.

yaml Synthetic request intent
operation: GET
object: synthetic-bucket/report.csv
endpoint: XML-API
lifetime: short-approved-window

The record names the operation and endpoint type without generating a signed URL.

Compare the client request

A signature binds relevant request details. Compare the actual method, resource, endpoint and required signed headers with what was signed when diagnosing a failure. The second record leaves the outcome unobserved. Do not paste the full URL, signature or tokens into a ticket; retain a sanitized request ID and timestamps where available. A 403 can have several causes and needs evidence.

yaml Synthetic request comparison
request_method: GET
object: synthetic-bucket/report.csv
signed_headers: reviewed-set
result: not-observed

This record is not a signed request or a real service result.

Plan expiration and exposure

A holder can use a signed URL while valid under applicable conditions. Expiration limits the window but does not prevent sharing. Define how the application reauthorizes a user and issues a fresh link. Follow the incident process for accidental disclosure.

Verify in an isolated lab

In an authorized lab, test the intended request and an approved denial using a synthetic object. Check expiration and modified requests. Record results without retaining the URL; one success does not prove access to other objects or later signatures.

Treat the URL as temporary bearer access

A Cloud Storage signed URL gives time-limited access to a specified resource through a signed request. Anyone possessing a valid URL can potentially use it within its contract, so handle the complete URL as sensitive bearer material. Share it only through the approved channel with the intended recipient and avoid embedding it in public logs, tickets or screenshots. These examples contain synthetic request descriptions, not usable signatures, URLs or credentials. They do not generate a signature, access a bucket or demonstrate a real authorization outcome.

For example, a support workflow may need to let a partner retrieve one report for a short period. Record who approved the request, the exact object and method, the delivery channel and the expiry without saving the signed query in a ticket. If the partner forwards it, the intended-recipient label alone does not prevent another holder from using it. The workflow therefore needs an exposure response as well as a normal delivery procedure.

Define the exact signed request

Record the intended HTTP method, bucket and object, expiration, required signed headers and any request constraints supported by the chosen signing process. The client must make a request consistent with the signed contract; changing the method, resource or relevant signed headers can cause rejection. Do not infer that a URL for one operation grants another operation. A successful construction of a URL is not evidence that the recipient received it or that the object operation succeeded. Compare sanitized request attributes rather than exposing the complete signed query string.

Separate signer authority from recipient use

Review the identity or signing mechanism and the permissions needed for the intended object operation under the current documented flow. The recipient generally presents the URL rather than separately supplying the signer’s credentials. A signer with excessive access or an overbroad application workflow can increase impact even when the URL expires. Define who may request a URL, which object and method the application is allowed to sign, and who owns signing configuration. The signed URL does not replace a review of object sensitivity, access policy and auditability.

Plan exposure and expiration

Choose the shortest practical validity that supports the intended transfer and operating conditions, using current service limits and organizational policy. Expiration bounds the signed request’s validity; it does not retract bytes already downloaded, erase copies or prevent a recipient from sharing a still-valid URL. If exposure is suspected, follow the applicable incident procedure and evaluate the supported response for the actual signing mechanism and object. Do not promise instant revocation from a synthetic example. Record the intended expiry and delivery channel without retaining the bearer URL.

Verify the request in an isolated scope

In an authorized isolated environment, test the intended method and object with the required headers, and test a neighboring mismatch or expired request separately. Preserve the test time, sanitized method, resource identifier and result, not the signature. A denial may result from a mismatch, expiry, permissions or another configuration issue; identify the failed boundary before broadening access. A successful request proves only the tested URL and operation at that time. Retest after changes to signing, object, headers or delivery path, and record blocked tests as unknown rather than inventing a service response.

Keep the signed contract, the client’s sanitized request and the observed service response in separate records. If a test is blocked because the client is unavailable, assign an owner and do not describe the unrun request as denied. After an approved change to the method or headers, repeat both the intended request and an appropriate mismatch test. Preserve the scope and time of those observations; an old success cannot validate a newly signed contract or guarantee later behavior.

Assign an owner to every unresolved exposure or verification question before closing the review.

20 worked examples

1. Shared URL

Problem: Can another holder potentially use this still-valid URL?

  1. B possesses the same bearer material while the stated validity remains.
  2. Potentially yes; follow the applicable exposure process and review the actual request contract.
text Synthetic signed-request record
recipient=A
URL shared with=B
expiry=not reached
signed request=otherwise valid in model

This record contains no usable URL or signature and makes no cloud request.

Expected result: Potentially yes; follow the applicable exposure process and review the actual request contract.

Why this result follows: Possession of a valid signed URL can confer its bounded access.

2. Method mismatch

Problem: Does this client request match the signed method?

  1. The requested method differs from the signed method.
  2. The request does not match the signed contract; compare method before changing permissions.
text Synthetic signed-request record
signed method=GET
client method=PUT
resource=same object

This record contains no usable URL or signature and makes no cloud request.

Expected result: The request does not match the signed contract; compare method before changing permissions.

Why this result follows: The HTTP method is part of the signed request.

3. Wrong object

Problem: Does a URL for object A authorize object B in this model?

  1. The requested object differs from the signed resource.
  2. The request does not match the intended signed resource.
text Synthetic signed-request record
signed resource=bucket-X/object-A
client target=bucket-X/object-B
method=GET

This record contains no usable URL or signature and makes no cloud request.

Expected result: The request does not match the intended signed resource.

Why this result follows: A signed request is bound to the resource specified in its contract.

4. Expired URL

Problem: Can this fixture establish valid use after expiration?

  1. The request occurs five minutes after the stated expiry.
  2. The request is outside the stated validity window; obtain an authorized new URL if appropriate.
text Synthetic signed-request record
signed expiry=12:00 UTC
request time=12:05 UTC
method and resource=match

This record contains no usable URL or signature and makes no cloud request.

Expected result: The request is outside the stated validity window; obtain an authorized new URL if appropriate.

Why this result follows: Time validity is a separate requirement from matching method and resource.

5. Signed header mismatch

Problem: Does this request match the stated signed header?

  1. The client sends a different value for the header identified as signed.
  2. Compare and correct the client request through the approved flow.
text Synthetic signed-request record
signed header: content-type=application/pdf
client header: content-type=text/plain
method=PUT

This record contains no usable URL or signature and makes no cloud request.

Expected result: Compare and correct the client request through the approved flow.

Why this result follows: A signed header value must match the request contract.

6. Read versus write

Problem: Does a successful signed GET prove PUT permission?

  1. The observed operation is GET; PUT is a different method.
  2. Keep PUT unverified and request an appropriately authorized separate contract if needed.
text Synthetic signed-request record
signed method=GET
GET result=success
PUT=not signed or tested

This record contains no usable URL or signature and makes no cloud request.

Expected result: Keep PUT unverified and request an appropriately authorized separate contract if needed.

Why this result follows: One signed method does not establish another operation.

7. Downloaded copy

Problem: Does expiration erase a file already downloaded?

  1. The recipient already has a copy before the validity window ended.
  2. Expiration does not remove the recipient’s existing copy.
text Synthetic signed-request record
download=completed before expiry
URL expiry=now passed
recipient copy=exists

This record contains no usable URL or signature and makes no cloud request.

Expected result: Expiration does not remove the recipient’s existing copy.

Why this result follows: A request validity window cannot retract bytes already delivered.

8. Public log exposure

Problem: What is wrong with this diagnostic record?

  1. The log contains bearer material beyond the sanitized attributes needed for diagnosis.
  2. Follow the organization’s exposure process and retain sanitized request details instead.
text Synthetic signed-request record
log contains=complete signed URL
intended log=method, object ID, expiry

This record contains no usable URL or signature and makes no cloud request.

Expected result: Follow the organization’s exposure process and retain sanitized request details instead.

Why this result follows: A valid signed URL can potentially be used by another holder.

9. Wrong signer scope

Problem: Does URL construction alone prove the signer can perform the intended operation?

  1. The record has no evidence of the signer’s applicable authority or a successful request.
  2. Review the current signing flow and signer permission, then test in an authorized scope.
text Synthetic signed-request record
URL construction=reported success
signer permission on object=not verified
client request=not tested

This record contains no usable URL or signature and makes no cloud request.

Expected result: Review the current signing flow and signer permission, then test in an authorized scope.

Why this result follows: A constructed string is not proof that the service will authorize the operation.

10. Blocked test

Problem: Does an unavailable client prove the signed request was denied?

  1. No request reached the service.
  2. Record the test as blocked and keep the signed request outcome unverified.
text Synthetic signed-request record
test client=unavailable
request sent=no
service response=none

This record contains no usable URL or signature and makes no cloud request.

Expected result: Record the test as blocked and keep the signed request outcome unverified.

Why this result follows: An unrun request cannot demonstrate a service denial or success.

11. Bucket mismatch

Problem: Does the client target match the signed bucket?

  1. The object name matches but the bucket differs.
  2. The client request does not match the signed resource.
text Synthetic signed-request record
signed resource=bucket-A/report.pdf
client resource=bucket-B/report.pdf
method=GET

This record contains no usable URL or signature and makes no cloud request.

Expected result: The client request does not match the signed resource.

Why this result follows: The bucket is part of the resource context, not just the object name.

12. Missing signed header

Problem: Does this request satisfy the stated header contract?

  1. The contract requires a header that the client did not send.
  2. Compare the client with the signed header requirements and correct the authorized request.
text Synthetic signed-request record
signed header=x-example-mode: upload
client sends header=no
method=PUT

This record contains no usable URL or signature and makes no cloud request.

Expected result: Compare the client with the signed header requirements and correct the authorized request.

Why this result follows: A required signed header cannot be assumed present when absent in the request.

13. Validity not started

Problem: Can this record establish that a request is within the intended time window?

  1. The request precedes the stated intended start and clock context is unverified.
  2. Review the actual signed timestamp, expiry and clock context before claiming validity.
text Synthetic signed-request record
intended validity start=12:00 UTC
request time=11:55 UTC
clock verification=not recorded

This record contains no usable URL or signature and makes no cloud request.

Expected result: Review the actual signed timestamp, expiry and clock context before claiming validity.

Why this result follows: Time assumptions need the actual signed request and trusted observation.

14. Wrong recipient assumption

Problem: Does a signed URL enforce that only its intended recipient can use it?

  1. The same bearer URL is available to B and the model lists no separate identity control.
  2. B can potentially use it while the request remains valid; follow the exposure process.
text Synthetic signed-request record
intended recipient=partner-A
URL shared with=partner-B
additional identity check=none in model

This record contains no usable URL or signature and makes no cloud request.

Expected result: B can potentially use it while the request remains valid; follow the exposure process.

Why this result follows: Intended delivery to A is not a technical identity binding in this fixture.

15. Expired versus copied

Problem: Does expiry remove a copy held by the recipient?

  1. The object was delivered before expiration and the recipient may still retain it.
  2. Review the exposure and downstream copy handling; expiry alone does not retract it.
text Synthetic signed-request record
URL expired=yes
recipient downloaded object=yes
copy retention=unknown

This record contains no usable URL or signature and makes no cloud request.

Expected result: Review the exposure and downstream copy handling; expiry alone does not retract it.

Why this result follows: Expiration limits subsequent signed requests, not already delivered bytes.

16. Query exposed

Problem: Is it safe to paste the complete signed query into a public issue?

  1. The proposed attachment contains still-valid bearer material in a public location.
  2. Do not publish it; use sanitized attributes and follow the exposure process if already disclosed.
text Synthetic signed-request record
issue visibility=public
proposed attachment=complete signed URL
expiry=not reached

This record contains no usable URL or signature and makes no cloud request.

Expected result: Do not publish it; use sanitized attributes and follow the exposure process if already disclosed.

Why this result follows: A holder of the valid URL can potentially use its authorized request.

17. Different response path

Problem: Does a successful direct authenticated read prove the signed URL works?

  1. The successful request uses a different access path and identity context.
  2. Keep the signed URL outcome unverified and test its exact contract under authorization.
text Synthetic signed-request record
direct authenticated read=success
signed URL request=not tested
client identity=different

This record contains no usable URL or signature and makes no cloud request.

Expected result: Keep the signed URL outcome unverified and test its exact contract under authorization.

Why this result follows: One access path does not establish another signed request’s validity.

18. Changed object reference

Problem: Does a URL for the old object follow an application rename?

  1. The signed resource remains the old object while the application expects another name.
  2. Issue a separately authorized URL for the intended resource if appropriate.
text Synthetic signed-request record
signed object=report-v1.pdf
application now expects=report-v2.pdf
new URL=not created

This record contains no usable URL or signature and makes no cloud request.

Expected result: Issue a separately authorized URL for the intended resource if appropriate.

Why this result follows: A signed resource does not automatically change with an application reference.

19. Clock context

Problem: Does a local clock alone prove the service will accept the URL?

  1. The client appears before expiry but its clock accuracy and actual service result are unknown.
  2. Verify the signed time assumptions and perform an authorized request if needed.
text Synthetic signed-request record
client clock=12:00
signed expiry=12:05
clock accuracy=unknown
service request=not sent

This record contains no usable URL or signature and makes no cloud request.

Expected result: Verify the signed time assumptions and perform an authorized request if needed.

Why this result follows: A local timestamp without clock context is not a service acceptance result.

20. Old verification

Problem: Does last week’s success prove a newly signed request works?

  1. The new contract differs from the one previously tested.
  2. Review the new signed attributes and test the intended request under authorization.
text Synthetic signed-request record
old URL test=success last week
new request method and headers=changed
new test=not run

This record contains no usable URL or signature and makes no cloud request.

Expected result: Review the new signed attributes and test the intended request under authorization.

Why this result follows: Evidence applies to the particular signed request and time.

Common errors and fixes

A signed URL is treated as harmless public text

Why it happens
Possession can confer access while it is valid.
How to fix it
Use the incident procedure if it is exposed.
Prevent it next time
Never log full signed URLs.

The client changes a signed request detail

Why it happens
Method or headers may no longer match the signature.
How to fix it
Compare the actual request with the signed contract.
Prevent it next time
Test intended clients in a lab.

A successful link is assumed to authorize every object

Why it happens
The signed request is scoped to a particular resource and operation.
How to fix it
Issue separately authorized links for intended requests.
Prevent it next time
Document scope and test a neighboring denial.

20 practice exercises

1. A recipient shares a still-valid signed URL. Can another holder use it?

Show hint

Consider possession of the complete URL while it is still valid.

Show worked solution

Potentially yes. Treat it as bearer material and follow the applicable incident process.

Another holder can potentially make the signed request while the URL remains valid and its conditions are met. Treat the URL as bearer material, avoid copying it into public records, and follow the applicable exposure process. Expiration does not remove any data already downloaded.

Check your solution

  • Identify the second holder’s potential use.
  • Distinguish expiry from recall of downloaded data.

2. A client uses a different method from the signed one and receives a denial. What next?

Show hint

Compare the actual request attributes with the signed contract.

Show worked solution

Compare the actual request with the signed method, resource and headers before changing permissions.

Inspect the method, bucket and object, required signed headers and validity using sanitized evidence. A method mismatch can explain rejection without any need to broaden access. Correct the client or obtain a properly authorized new contract, then test the exact request in an isolated approved environment.

Check your solution

  • Identify the signed and actual methods.
  • Review resource, headers and time before changing permissions.

3. A recipient shares a still-valid signed URL with another person. Could that person use it?

Show hint

A signed URL is bearer material.

Show worked solution

Potentially yes, if the holder makes a request that meets the signed contract while it remains valid. Follow the applicable exposure process and avoid assuming the intended recipient is technically bound to the URL.

Check your solution

  • Identify the second holder.
  • Treat the URL as sensitive bearer access.

4. A URL signs GET for object A, but the client sends PUT to A. What should be compared first?

Show hint

The method belongs to the signed request.

Show worked solution

Compare the actual method, resource and required signed headers with the signed contract before changing permissions. PUT differs from the signed GET in this fixture, so the client should use the authorized operation or obtain a separate contract.

Check your solution

  • Identify GET versus PUT.
  • Do not broaden permissions as the first diagnosis.

5. A URL signs GET for bucket X object A, but the client requests object B. Does the request match?

Show hint

Compare the complete resource.

Show worked solution

No. The object name differs even though the bucket and method match. Verify the intended resource and issue or request a separately authorized signed URL if appropriate; do not assume the original signature follows another object.

Check your solution

  • Identify object A versus B.
  • Keep the signed resource boundary explicit.

6. A URL expires at 12:00 UTC and the request is made at 12:05. Is it within the stated window?

Show hint

Compare the request time with expiry.

Show worked solution

No. The modeled request is five minutes after expiry. Review the actual signed time and clock context, then obtain a new authorized URL if needed rather than changing object permissions to address an expired request.

Check your solution

  • Calculate the five-minute gap.
  • Separate expiry from object authorization.

7. A signed PUT requires content-type application/pdf, but the client sends text/plain. What should be investigated?

Show hint

A signed header can be part of the request contract.

Show worked solution

Compare the required signed header and client value and correct the authorized request or signing process. Do not assume matching method and object are sufficient when a signed header differs.

Check your solution

  • Identify the header value mismatch.
  • Review the signed contract before changing access.

8. A recipient downloaded a file before the signed URL expired. Does expiry remove that copy?

Show hint

A request window cannot retract delivered bytes.

Show worked solution

No. Expiration limits later use of the signed request but does not erase a copy already downloaded. Review distribution and any suspected exposure through the organization’s applicable process.

Check your solution

  • Identify the completed download.
  • Do not claim expiration deletes the copy.

9. A complete signed URL appears in a public log while valid. What should a responder preserve for diagnosis?

Show hint

The full URL is bearer material.

Show worked solution

Follow the applicable exposure response and retain sanitized method, resource identifier, time and outcome instead of the complete URL. Evaluate supported mitigation for the real signing mechanism; do not promise a universal instant revocation.

Check your solution

  • Identify the exposed bearer URL.
  • Preserve sanitized context without the signature.

10. A direct authenticated read succeeds, but the signed URL has not been tested. Is the URL validated?

Show hint

The access paths differ.

Show worked solution

No. The direct read is evidence for its own principal and path. Test the exact signed method, resource, headers and time in an authorized isolated environment before claiming that the URL works.

Check your solution

  • Identify the direct read as a separate path.
  • Keep the signed request unverified.

11. A signed resource is bucket A/report.pdf, but the client requests bucket B/report.pdf. Does the object name match suffice?

Show hint

The bucket is part of the resource.

Show worked solution

No. The buckets differ, so the client request does not match the specified resource even though the object name is the same. Confirm the intended bucket and obtain an authorized matching URL if needed.

Check your solution

  • Identify bucket A versus B.
  • Compare the full resource, not only the name.

12. A signed request requires an example header, but the client omits it. What should be reviewed?

Show hint

Compare required signed headers with the actual request.

Show worked solution

Inspect the signed header contract and the client’s actual headers without exposing the signature. Correct the authorized client or signing flow; matching the method and object alone is insufficient when a required signed header is absent.

Check your solution

  • Identify the omitted header.
  • Review the signed request before changing permissions.

13. A recipient shares a valid signed URL with another holder; no separate identity check exists in the model. Is only the intended recipient able to use it?

Show hint

Intended delivery is not necessarily identity binding.

Show worked solution

No. The second holder can potentially use the bearer URL while its request contract remains valid. Follow the applicable exposure process and review whether the distribution and validity meet the intended access boundary.

Check your solution

  • Identify the second holder.
  • Do not assume recipient identity is bound.

14. A file was downloaded before expiry and the URL has now expired. What data exposure remains possible?

Show hint

Expiration does not recall delivered data.

Show worked solution

The recipient may still possess the downloaded copy. Investigate its distribution and retention under the applicable incident process; URL expiry limits the signed request window but does not erase previously delivered bytes.

Check your solution

  • Identify the existing copy.
  • Distinguish request expiration from data recall.

15. A complete still-valid signed URL is proposed for a public issue. What should the issue contain instead?

Show hint

Avoid publishing bearer material.

Show worked solution

Use sanitized method, resource identifier, expiry and observed outcome without the complete URL or signature. If it was already exposed, follow the organization’s incident process and evaluate supported mitigation for the actual mechanism.

Check your solution

  • Identify the public exposure risk.
  • Retain useful sanitized attributes.

16. A direct authenticated read succeeds, but the signed request has never run. Does that prove the signed URL works?

Show hint

The access paths have different contracts.

Show worked solution

No. The direct read establishes only its tested identity and path. Review the signed method, resource, headers and validity, then test that specific request in an authorized isolated environment.

Check your solution

  • Identify the direct read as separate.
  • Keep the signed request unverified.

17. A URL signs report-v1.pdf, but the application now needs report-v2.pdf. Does the old URL follow the new name?

Show hint

The resource is fixed in the signed request.

Show worked solution

No. Confirm the intended object and request a separately authorized signed URL for report-v2.pdf where appropriate. Changing an application reference does not automatically modify an existing signed contract.

Check your solution

  • Identify the two object names.
  • Require a matching authorized request.

18. A client clock says 12:00 and expiry is 12:05, but clock accuracy is unknown and no request was sent. Is service acceptance established?

Show hint

A local clock observation is not a service result.

Show worked solution

No. Verify the signed time assumptions and clock context, then test the exact request under authorization if needed. The local comparison alone does not demonstrate acceptance by the service.

Check your solution

  • Identify unverified clock accuracy.
  • Keep service acceptance unverified.

19. A signed URL test succeeded last week, but the new request changes method and headers. Does the old success validate it?

Show hint

A changed signed contract needs its own evidence.

Show worked solution

No. Review the new method, resource, signed headers and validity, then perform an authorized bounded test. Preserve the old result as evidence for the earlier URL and time only.

Check your solution

  • Identify changed method and headers.
  • Require a test of the new contract.

20. A test client is unavailable and no signed request is sent. Should the test be reported as denied?

Show hint

No request means no observed service decision.

Show worked solution

No. Mark the test blocked, identify the missing client and owner, and keep the signed request outcome unknown. Retry through the approved isolated test process when the prerequisite is available.

Check your solution

  • Record that no request was sent.
  • Mark blocked rather than denied.

Key takeaways

  • Signed URLs are sensitive time-limited bearer access.
  • The request must match the signed contract.
  • Verify scope and denial without recording secrets.
  • A valid signed URL is sensitive bearer material.
  • Method, resource, headers and time belong to the request contract.
  • A synthetic comparison does not prove a cloud request succeeded.

Official references