> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing buckets through the customer portal

## Create a bucket

1\. Navigate to the [Object Storage](https://portal.gcore.com/storage/storages/list) section. Click the relevant storage name.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-10.png?fit=max&auto=format&n=TMTwQhdfSIh6j-OV&q=85&s=92aeb73279403352a0d35454acce8208" alt="Open the Buckets interface" width="5912" height="1740" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-10.png" />
</Frame>

You can access the bucket interface by clicking the three dots on the right side and selecting **Buckets**.

2\. Click **Add new bucket**.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-20.png?fit=max&auto=format&n=TMTwQhdfSIh6j-OV&q=85&s=200d573d14fd725969c7b9a952a107e6" alt="Add new bucket" width="4676" height="1728" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-20.png" />
</Frame>

3\. A pop-up window will appear. Input a name for your bucket that meets the following criteria:

* Between 3 to 63 characters in length.
* Lowercase only.
* No underscores, trailing dashes, consecutive dots, or a mix of dots and dashes; they conflict with DNS notation rules.
* The bucket name must be unique within the entire Gcore Object Storage system, not just your account. If a name is already used, you'll receive a `This bucket name already exists. Please use a different name` error message.

Click **Create**.

**Important note** : Do not use sensitive information in the bucket name as it will be visible in the object's URL, potentially posing a security risk.

Once you've completed these steps, your bucket will be created and prepared for the following functions:

* [File management](/storage/manage-object-storage/manage-buckets-via-the-control-panel#file-manager) (includes uploading and other related tasks)
* [Providing HTTP access to all files within the bucket](/storage/manage-object-storage/manage-buckets-via-the-control-panel#configuring-http-access)
* [Setting a lifecycle policy](/storage/manage-object-storage/manage-buckets-via-the-control-panel#adding-lifecycle-policy-for-s3-in-luxembourg-only) (available only for the S3 Luxembourg location)

## File manager

### Access (Override CORS)

To access the file manager (Override CORS), you must add `https://storage.gcore.com` to your list of approved origins. This is a one-time action.

To access the file manager, click the bucket name you created. A pop-up will appear where you can select **Override CORS**.

**Note** : CORS must be set up individually for each bucket.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-30.gif?s=018d8d6d07755a1fb66d902791e8fb6d" alt="Override CORS" width="600" height="441" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-30.gif" />
</Frame>

You also have the option to set the CORS policy through the [API](/api-reference/storage/storage/create-s3-bucket-cors). This method allows you to override CORS for not just `https://storage.gcore.com` but also for other domains.

### Authorization

To authorize, click on the bucket name, enter the Access key and Secret key, then click **Auth**.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-40.gif?s=358e3c9865789fccebdc52e8982c5d3a" alt="Authorize to file manager" width="600" height="359" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-40.gif" />
</Frame>

You can access the file manager by clicking the three dots on the right side and selecting **File manager**.

<Accordion title="Access key and Secret key features">
  **Note** : If you have entered keys, they will be saved and will not need to be re-entered within the session. Keys will be requested for each new session.

  To avoid the need for manual input, save the Access key and Secret key with the browser functionality.

  <Frame>
    <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-50.png?fit=max&auto=format&n=TMTwQhdfSIh6j-OV&q=85&s=f3bc04cdb98c467c96b2480d544fa760" alt="Manage passwords browser functionality" width="2292" height="1644" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-50.png" />
  </Frame>

  The Access key and Secret key are generated during storage creation. We don't store them in our system for security and privacy reasons. If you've forgotten the values, click **Generate new keys** in the [Storages](https://portal.gcore.com/storage/storages/list) tab.

  <Frame>
    <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-60.png?fit=max&auto=format&n=TMTwQhdfSIh6j-OV&q=85&s=5d96f8130edee63b5fa80a9c555006de" alt="Generate new keys" width="4852" height="2168" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-60.png" />
  </Frame>
</Accordion>

### Adding folders

Once you're [authorized in the file manager](/storage/manage-object-storage/manage-buckets-via-the-control-panel#authorization), click **Add folder**. Enter the desired name in the field provided and click **Create**.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-70.gif?s=3db5455ea85d29998d2de0eea67c2c16" alt="Creation of folders" width="600" height="309" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-70.gif" />
</Frame>

In the interface, you can view the last modification date. To open the folder, simply click its name.

### Uploading files

To upload files, [authorize access to your bucket](/storage/manage-object-storage/manage-buckets-via-the-control-panel#authorization) and click **Select and upload file(s)** either in the bucket root or within a specific folder. Then, follow the standard upload process.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-80.png?fit=max&auto=format&n=TMTwQhdfSIh6j-OV&q=85&s=89f4d80af386e9e77dc4cad8f9c741d0" alt="Uploading of files" width="2548" height="1852" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-80.png" />
</Frame>

### Deleting folders and files

To delete folders or files, [authorize access to your bucket](/storage/manage-object-storage/manage-buckets-via-the-control-panel#authorization) and click **Delete** next to the desired object. Alternatively, select the checkboxes next to the object names and click **Delete selected**.

<Frame>
  <img src="https://mintcdn.com/gcore/f1j2_TAAIhRMapX4/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-90.png?fit=max&auto=format&n=f1j2_TAAIhRMapX4&q=85&s=88a1ca56aa84bec3c59c4702e6c1d27f" alt="Deletion of files" width="4388" height="1700" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-90.png" />
</Frame>

**Note** : Deleting a folder will also delete any nested files within it.

### Copying URL or object storage URL

To copy the links of certain files, [authorize access to your bucket](/storage/manage-object-storage/manage-buckets-via-the-control-panel#authorization), select objects and click the relevant buttons: **Copy S3 URL** or **Copy URL**.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-100.png?fit=max&auto=format&n=TMTwQhdfSIh6j-OV&q=85&s=ce247537aa093db7b00ffddd6eaf6279" alt="Copy S3 URL and Copy URL" width="4368" height="1680" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-100.png" />
</Frame>

For instance, the links for the file `image 3972.png` will look like this:

* `s3://s-ed1.cloud.gcore.lu/000-sample-for-articles/test/image%3972.png`
* `https://s-ed1.cloud.gcore.lu/000-sample-for-articles/test/image%3972.png`

**Note** : If you haven't enabled [HTTP access to all files](/storage/manage-object-storage/manage-buckets-via-the-control-panel#configuring-http-access), you'll encounter a 403 error when opening the file.

## Managing access

If you wish to use [Gcore Object Storage as the origin for a CDN resource](/storage/use-storage-as-the-origin-for-your-cdn-resource) or to make files accessible via an Object Storage URL, you must allow public (HTTP) access to your bucket. To do this, go to the bucket interface, click on the three dots on the right, and click **Public access to all files**. Then, click **Apply** in the pop-up window.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/http-access-s3-bucket.png?fit=max&auto=format&n=TMTwQhdfSIh6j-OV&q=85&s=6176f99cd1434bdd0e6f6fc2db74f88a" alt="Configure HTTP access to all files" width="4672" height="1456" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/http-access-s3-bucket.png" />
</Frame>

if you want to make objects unavailable via HTTP, meaning make them private, repeat the steps from the instructions above, go to the bucket interface, click on the three dots on the right, and click **Default access to all files**.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/default-access-s3-bucket.png?fit=max&auto=format&n=TMTwQhdfSIh6j-OV&q=85&s=6eaffe2fc985f446797b9f57d852c924" alt="Configure default access to all files" width="2048" height="1336" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/default-access-s3-bucket.png" />
</Frame>

## Adding lifecycle policy (for S3 in Luxembourg only)

To add a lifecycle policy, navigate to the bucket interface, click the three dots to the right, and select **Lifecycle management**. Set how long files should be retained in your bucket before deletion and click **Save changes**.

<Frame>
  <img src="https://mintcdn.com/gcore/TMTwQhdfSIh6j-OV/images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-120.gif?s=270d5cface9d11a44669ff3fa35cca86" alt="Set lifecycle policy" width="600" height="406" data-path="images/docs/storage/manage-object-storage/manage-buckets-via-the-control-panel/manage-buckets-cp-120.gif" />
</Frame>

If you don't want any expiry time, click **Cancel policy**.

You can still set a lifecycle policy if your storage is outside the S3 Luxembourg location by using the AWS CLI tool, as outlined in the [separate guide](/storage/manage-object-storage/configure-aws-sli-s3cmd-and-aws-javascript-sdk/remove-objects-from-a-bucket-automatically-with-aws-cli).
