Share Objects with Pre-Signed URLs
By default, objects in the IONOS S3 Object Storage are private and only the bucket owner has permission to access them. Only the bucket owner can generate a pre-signed URL for objects and grant time-bound permission to other users to access these objects. It is a secure and user-friendly way to share private objects stored in your Object Storage with other users.
This way, the objects are made publically available for users with the object's pre-signed URL; however, you could limit the period of access to the object.
Use cases
Pre-signed URLs are ideal for providing temporary access to a specific object without needing to change the object's permissions or share your credentials with other users.
Allows other users to upload objects directly to your S3 bucket without needing to provide them with access and secret keys.
You can generate a pre-signed URL to share objects through one of the following methods:
Web console
1. In the DCD, go to Menu > Storage > IONOS S3 Object Storage.
2. From the Buckets list, choose the bucket from which you want to share the objects. The list of objects in the bucket is listed.
3. Select the object to share and click Generate Pre-Signed URL.
4. Enter the expiration time for the URL and choose whether the specified time refers to seconds, minutes, hours, or days.
5. Click Generate.
6. Copy the generated pre-signed URL and share it with users that require this object access.
Result: The pre-signed URL for the selected object is generated successfully and copied to the clipboard. The URL is valid for the period defined during URL generation.
Command-line tool
Prerequisites:
Set up the AWS CLI by following the installation instructions.
Make sure to consider the supported Endpoints.
Generate a pre-signed URL for my-object.txt`` in the
my-bucket` bucket which will expire in 3600 seconds:
API and SDKs
The creation of pre-signed URLs does not involve a dedicated API by design. These URLs are generated locally via a signing algorithm using your credentials without relying on the S3 API. To create these URLs, use the appropriate SDK for your programming language.
IONOS S3 Object Storage is S3-compatible, allowing seamless integration with any SDK supporting the S3 protocol for tasks like generating pre-signed URLs. For generating pre-signed URLs using SDKs, see the following AWS methods:
Python, Go, Java 2.x., JavaScript 2.x., JavaScript v3, and PHP Version 3.
Last updated