> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# objectstore

**Experimental.** For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Stores workflow files and creates signed upload and download requests through S3-compatible storage or GCS.

### Prerequisites

* Existing S3-compatible or GCS bucket reachable by the worker.
* S3 access keys or GCS application-default credentials with access to the bucket. GCS signed download/upload requests require signing-capable credentials. With user ADC or credentials without a private signing key, configure `signer_service_account_email`, grant the calling identity `iam.serviceAccounts.signBlob` on that service account, and enable the IAM Service Account Credentials API.

### Setup

* For S3-compatible storage:

```toml
[modules.objectstore]
bucket_name = "workflow-files"
base_endpoint = "https://s3.example.com"
access_key_id = "<access-key>"
secret_access_key = "<secret-key>"
```

* Set `region` if required by the storage service.
* For GCS with application-default credentials:

```toml
[modules.objectstore]
backend = "gcs"
bucket_name = "workflow-files"
# For IAM-based signing:
signer_service_account_email = "storage-signer@your-project.iam.gserviceaccount.com"
```

> **Note**
>
> This module must be enabled in your Remediation Orchestrator config before it is available to scripts.

This module provides utilities for interacting with object storage.

## Members

* [create_read_only_presigned_request](#create_read_only_presigned_request)
* [create_write_presigned_post](#create_write_presigned_post)
* [get_file](#get_file)
* [list](#list)
* [upload_file](#upload_file)
* [upload_text](#upload_text)

## create_read_only_presigned_request

Create a read-only presigned request for a file in object storage.

The path to the file in object storage which should be readable via the generated presigned URL.

The Go-style duration for which the presigned URL should be valid. Duration cannot exceed '168h' or 7 days. Default value is '1h'.

The presigned request for the file.

## create_write_presigned_post

Create a write presigned post request, which allows uploading multiple files in object storage.

The object storage path where files will be uploaded to using the generated presigned post.

The Go-style duration for which the presigned post should be valid. Duration cannot exceed '168h' or 7 days. Default value is '1h'.

The presigned post.

## get_file

Get a file from object storage.

The path to the file in object storage.

The file object.

## list

List objects in object storage.

The prefix to list objects for.

The list of file paths.

## upload_file

Upload a file to object storage.

The file object.

The path to the file in object storage.

The path to the file in object storage.

## upload_text

Write a string to object storage.

The text to write. It cannot be empty or larger than 1 MiB.

The path of the object in object storage.

The path to the file in object storage.