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

Return token expiry with presigned URLs #6337

Merged
merged 9 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,16 @@ components:
The location of the object on the underlying object store.
Formatted as a native URI with the object store type as scheme ("s3://...", "gs://...", etc.)
Or, in the case of presign=true, will be an HTTP URL to be consumed via regular HTTP GET
physical_address_expiry:
type: integer
format: int64
description: |
If present and nonzero, physical_address is a presigned URL and
will expire at this Unix Epoch time. This will be shorter than
the presigned URL lifetime if an authentication token is about
to expire.

This field is *optional*.
checksum:
type: string
size_bytes:
Expand Down Expand Up @@ -1145,7 +1155,16 @@ components:
type: string
nullable: true
description: if presign=true is passed in the request, this field will contain a presigned URL to use when uploading
presigned_url_expiry:
type: integer
format: int64
description: |
If present and nonzero, physical_address is a presigned URL and
will expire at this Unix Epoch time. This will be shorter than
the presigned URL lifetime if an authentication token is about
to expire.

This field is *optional*.

StagingMetadata:
type: object
Expand Down
37 changes: 31 additions & 6 deletions clients/java/api/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/java/docs/ObjectStats.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/java/docs/StagingLocation.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/python/docs/ObjectStats.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/python/docs/StagingApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/python/docs/StagingLocation.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions clients/python/lakefs_client/model/object_stats.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions clients/python/lakefs_client/model/staging_location.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading