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

signBlob signatures guaranteed to be valid for only 12 hours #1365

Open
mhandugan opened this issue Feb 15, 2022 · 0 comments
Open

signBlob signatures guaranteed to be valid for only 12 hours #1365

mhandugan opened this issue Feb 15, 2022 · 0 comments
Labels
type: docs Improvement to the documentation for an API.

Comments

@mhandugan
Copy link

The current comments fail to say how long a signed blob will be valid.

// signBlob requires a service account email and the underlying

From the iam.serviceAccounts.signBlob documentation:

The key used for signing will remain valid for at least 12 hours after the blob is signed.

This means the default behavior only generates signatures valid for up to 12 hours (may be longer, but not guaranteed to be). This turns out to be a practical problem for most users of googleapis/nodejs-storage relying on the default authClient.sign behavior for signing URLs. Even when the TTL is specified in the signature (up to 7 days for v4 signatures) the default underlying signature is only good for up to 12 hours.

This should at least be documented in both the auth library and storage library, and the storage library may consider restricting TTLs on signed URLs to 12 hours (rejecting requests for longer TTLs when used with the service-account signBlob API)

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Feb 16, 2022
@chingor13 chingor13 added the type: docs Improvement to the documentation for an API. label Feb 16, 2022
@yoshi-automation yoshi-automation removed the triage me I really want to be triaged. label Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: docs Improvement to the documentation for an API.
Projects
None yet
Development

No branches or pull requests

3 participants