Object Storage
Module:
services/storage· Image:nebius-mocker-storage·NEBIUS_MOCKER_SERVICES=storageM1 tier: T2 bucket, inventory, transfer · M3: T3 S3 data plane · Endpoints:cpl.storage,transfer.storage
Implementation status
| Piece | Status |
|---|---|
nebius.storage.v1.BucketService: Get, GetByName, List (paged), ListWithFilter, Create, Update (reset mask, resource_version), Delete (soft, purge_at/ttl), Purge, Undelete |
✅ T2 |
Bucket semantics: global S3 names, naming rules, IMMUTABLE_NAME, versioning_policy default + transition rules, status.state/domain_name/region/bucket_type, soft delete with deleted_at/purge_at, background purge sweeper |
✅ |
status.counters: per storage class, current/noncurrent simple and multipart objects, multipart uploads and in-flight parts, computed from the object store on every read |
✅ |
spec.max_size_bytes: writes that would exceed it are refused at the S3 front (QuotaExceeded) |
✅ |
Quotas storage.bucket.count (every bucket type, gRPC and S3 CreateBucket) and storage.transfer.count (v1 and v1alpha1; checked when the transfer is stored, so a refused transfer fails its operation) (quotas.md) |
✅ contract: test/contract/quotas_areas_test.go |
Object size quotas (storage.bucket.size.<class>) |
Not yet |
spec.cors: preflight OPTIONS and Access-Control-* headers at the S3 front |
✅ |
spec.bucket_policy: group and anonymous rules, storage.* roles, path patterns, evaluated at the S3 front; status.anonymous_access_enabled |
✅ |
spec.lifecycle_configuration: expiration (days/date), expired delete markers, noncurrent expiration (+ newer_noncurrent_versions), abort incomplete multipart uploads, with prefix/size/tag filters, applied on the mock clock |
✅ |
spec.default_storage_class, spec.force_storage_class: STANDARD and ENHANCED_THROUGHPUT |
✅ |
Lifecycle transitions (transition, noncurrent_version_transition), last_access_filter, spec.last_access, storage class INTELLIGENT |
❌ rejected with INVALID_ARGUMENT naming the field (see below) |
| Backing buckets in RustFS (created, versioned, force-deleted with all versions on purge) | ✅ |
S3 data plane: S3 front on :4580, SigV4 with Nebius access keys (credential-scope region checked), anonymous requests for policy grants, IAM-authorized, relayed to RustFS |
✅ (NEBIUS_MOCKER_OBJSTORE=rustfs) |
S3 bucket calls: CreateBucket (aws s3 mb), DeleteBucket (aws s3 rb), Get/Put/Delete BucketLifecycleConfiguration, Get/Put/Delete BucketCors, Get/PutBucketVersioning, GetBucketLocation, on the Nebius bucket records |
✅ |
nebius_storage_v1_bucket resource + data source with the official provider (incl. cors, bucket_policy, lifecycle, max_size_bytes; counters through the data source) |
✅ e2e: test/terraform/storage (make e2e, make e2e-storage) |
Objects with the unmodified hashicorp/aws provider (aws_s3_object + data source) against the S3 front |
✅ e2e: test/terraform/storage (make e2e-storage) |
Go SDK: buckets with gosdk, objects with the AWS SDK for Go v2 |
✅ e2e: test/storage (make e2e-storage) |
Documented CLI flows: nebius storage bucket …, the quick start (nebius iam … service account + access key, aws configure set …, aws s3 mb/cp/ls/sync/mv/rm/rb, aws s3api put/get-bucket-lifecycle-configuration) |
✅ e2e: test/storage/cli_e2e_test.go (make e2e-storage; pinned CLIs installed into the user cache, never system-wide) |
Filesystem buckets (spec.filesystem_bucket): a view of a compute shared filesystem (READY, same project, compute.filesystems.useViaObjectStorage on it; recorded on the filesystem atomically with its checks, so the filesystem cannot be deleted while the bucket exists); status.bucket_type FILESYSTEM; objects relayed to the filesystem’s store bucket with the filesystem size as capacity; FILESYSTEM storage class; immediate delete that keeps the files; ListWithFilter by type and filesystem_id. Refused by name: non-root directory, non-default uid/gid/file_mode/directory_mode, versioning, lifecycle rules, anonymous policies, delayed deletion, S3 PutBucketVersioning/PutBucketLifecycleConfiguration/object tagging (501) |
✅ e2e: test/filesystems (make e2e-filesystems), test/terraform/compute/filesystem_test.go. See compute.md |
nebius.storage.v1.InventoryService: Get, GetByName, List (paged), Create, Update (reset mask, resource_version), Delete; up to 5 per bucket, name per bucket and immutable, destination permission check |
✅ T2 |
Inventory reports: AWS-compatible CSV (gzip) and Parquet (Snappy) files, manifest.json, manifest.checksum and the Hive symlink.txt written into the destination bucket, first report at the next sweep then daily/weekly on the mock clock; all optional fields (last access tracked by the S3 front, checksums, multipart flag, lifecycle expiration, tags); status.last_success / error_code (DESTINATION_BUCKET_NOT_FOUND, PERMISSION_DENIED, QUOTA_EXCEEDED) |
✅ e2e: test/storage/inventory_e2e_test.go (make e2e-storage) |
nebius.storage.v1.TransferService: Get, GetByName, List (paged), Create, Update (reset mask; immutables refused by name; input-only secrets kept when sent back empty), Stop, Resume, Delete (resource_version), GetIterationHistory |
✅ T2 |
nebius.storage.v1alpha1.TransferService (deprecated): every RPC; its transfers are also visible and controllable through v1 |
✅ T2 |
Transfer iterations really copy objects: sources nebius (buckets of this mocker, through its S3 front with the given access key), s3_compatible (any S3 endpoint) and azure_blob_storage; destinations nebius and s3_compatible; prefixes, IF_NEWER/NEVER (v1alpha1 also ALWAYS), touch_unmanaged, enable_deletes_in_destination, metadata-only updates, multipart from 100 MB, the three stop conditions, inter_iteration_interval and both limiters, all on the mock clock |
✅ e2e: test/storage/transfer_e2e_test.go (make e2e-storage, with a second RustFS as external S3 and Azurite as Azure) |
nebius_storage_v1_inventory, nebius_storage_v1_transfer, nebius_storage_v1alpha1_transfer resources + data sources with the official provider (incl. write-only sensitive secrets) |
✅ e2e: test/terraform/storage/{inventory,transfer}_test.go (make e2e) |
Documented CLI flows: nebius storage inventory create/list/get-by-name/update/delete, nebius storage transfer create --file/list/get/update/stop/resume/get-iteration-history/delete, nebius storage v1alpha1 transfer …, reports read with aws s3 ls/cp |
✅ e2e: test/storage/{inventory,transfer}_cli_e2e_test.go (make e2e-storage) |
S3 front keeps client checksums (x-amz-checksum-* headers and aws-chunked trailers, whose signature is verified) and returns them with ChecksumMode |
✅ e2e: services/storage/s3/checksum_e2e_test.go |
Verified against: nebius/api@4522189, terraform-provider-nebius v0.6.91, gosdk v0.2.100 (hashicorp/aws 6.70.0, RustFS 1.0.6, Azurite 3.35.0, nebius CLI 0.12.312, AWS CLI 2.42.3); inventory and transfer services added 2026-11-26.
Covered by domain unit tests with fakes (services/storage/domain: policy, CORS, lifecycle executor, counters, storage
classes, S3 bucket calls, inventory validation/scheduler/report formats, transfer validation/state machine/runner and
the iteration engine with its limiters), adapter tests (services/storage/backend/{s3endpoint,azblob} against RustFS and
Azurite), DAL tests (services/storage/dal), S3 front tests (services/storage/s3: routing, SigV4
accept/reject incl. region, XML conversion), pkg/sigv4 and pkg/objstore (inventory conformance) tests, gosdk contract
tests on the in-memory object store (test/contract/storage_bucket_test.go), and the Docker-gated suites above
(make e2e-storage starts and removes RustFS).
Overview
S3-compatible object storage. The gRPC API manages the control plane: buckets (versioning, lifecycle rules, CORS,
policies, storage classes, size limits, filesystem-bucket mode), inventories (scheduled object listings) and
transfers (copying from external S3-compatible sources into a bucket). Object reads and writes go through the
S3 HTTP API, which is not part of nebius/api.
| Resource kind | Message | NID prefix | Parent | States |
|---|---|---|---|---|
| Bucket | Bucket |
storagebucket |
project | CREATING, ACTIVE, UPDATING, SCHEDULED_FOR_DELETION |
| Inventory | Inventory |
storagebucketinventory |
bucket | |
| Transfer | Transfer (v1, v1alpha1) |
storagetransfer |
project | ACTIVE, STOPPING, STOPPED, FAILED, DELETING; iteration history |
Emulation design
NebiusMocker implements no object storage. Object bytes live in RustFS
(rustfs/rustfs:1.0.6, multi-arch), reached through the shared pkg/objstore port (Store plus Inventory:
versions, multipart uploads, tags). NebiusMocker provides the Nebius-shaped wrapping: the gRPC control plane,
authentication and authorization, and every bucket setting that RustFS cannot apply with Nebius semantics.
terraform / gosdk / nebius CLI ──gRPC :4566──▶ BucketService ──▶ dal (pkg/store: bucket metadata, global name index)
└──────────▶ pkg/objstore (RustFS): ensure / versioning / force-delete,
inventory for status.counters and lifecycle rules
aws CLI / AWS SDK / hashicorp/aws / browsers ──S3 HTTP :4580──▶ services/storage/s3 (S3 front)
0. OPTIONS: CORS preflight from spec.cors (no authentication)
1. SigV4 verify (pkg/sigv4): credential-scope region must be the bucket region; secret of the iam.v2 AccessKey
(peer.AccessKeys, provided by IAM). Unsigned requests are anonymous.
2. domain.S3Gate: bucket must be an ACTIVE Nebius bucket; allowed by an IAM permit of the key's service account,
or by a spec.bucket_policy rule (group via peer.GroupMembers, or anonymous)
3. bucket calls (mb/rb, versioning, lifecycle, CORS, location) → the Nebius bucket record
4. object calls: storage class and max_size_bytes applied, relayed path-style to RustFS re-signed with the RustFS
credentials (pkg/objstore/rustfs.Forwarder); responses get CORS headers and Nebius storage-class names
- Nebius metadata is the source of truth. A bucket exists for S3 only if it is an
ACTIVENebius bucket; soft-deleted buckets answerNoSuchBucket.ListBucketsandGetBucketLocationare answered from Nebius metadata (the region iseu-north1). Users never see RustFS credentials. - S3 bucket calls (as the Nebius quick start uses them):
CreateBucket(aws s3 mb) creates a Nebius bucket with default settings in the project of the access key’s service account (needsstorage.buckets.createthere; aLocationConstraintother than the region isInvalidLocationConstraint; a taken name isBucketAlreadyExists).DeleteBucket(aws s3 rb) is the default Nebius delete: soft delete with the default grace; non-empty buckets areBucketNotEmpty.Put/Get/DeleteBucketLifecycleConfiguration,Put/Get/DeleteBucketCorsandPut/GetBucketVersioningread and writespec.lifecycle_configuration,spec.corsandspec.versioning_policywith the same validation asBucketService.Update(violations come back asInvalidArgumentnaming the field). These calls are synchronous (S3 has no operations); they bumpresource_version. Other bucket sub-resource writes (AWS policies, ACLs, website, …) answerNotImplemented; Nebius bucket policies are set with the Nebius API. - Bucket names are globally unique across all projects in the mocker instance (S3 DNS semantics), checked with a
global name index. S3 rules: 3–63 characters of
a-z 0-9 . -, alphanumeric at both ends, no../.-/-., not an IP address, noxn--prefix or-s3aliassuffix. The prefixnebius-mocker-is reserved for internal buckets (e.g. compute image blobs) that share the RustFS instance. The name is immutable (IMMUTABLE_NAME) and stays reserved until purge. Nebius bucket names map 1:1 to RustFS bucket names. status.domain_name=<name>.<NEBIUS_MOCKER_STORAGE_S3_DOMAIN>(default<name>.storage.eu-north1.mocker.localhost); requests to that host are served virtual-hosted style, everything else path style.- Lifecycle of a bucket: Create stores the record
CREATING, creates the RustFS bucket (and versioning) in the operation’s work step, thenACTIVE; a backend failure fails the operation and removes the record. Update setsUPDATINGwhile the versioning change is applied. Operations are asynchronous withNEBIUS_MOCKER_OP_DELAY. - Versioning:
versioning_policydefaults toDISABLED(NON_EMPTY_DEFAULT); transitions disabled → enabled/suspended and enabled ↔ suspended are applied to RustFS; enabled/suspended → disabled isINVALID_ARGUMENT. - Soft delete:
Deleteneeds an empty bucket (FAILED_PRECONDITIONotherwise) and moves it toSCHEDULED_FOR_DELETIONwithdeleted_atandpurge_at= now +ttl, orpurge_at, or the default grace (7 days,NEBIUS_MOCKER_STORAGE_PURGE_GRACE). A zerottlor a pastpurge_atpurges at once.UndeleterestoresACTIVE;Purgedeletes immediately. A sweeper (every minute, mock clock) purges expired buckets. Purging force-deletes the RustFS bucket with all object versions. - Permissions:
storage.buckets.{get,list,create,update,delete}(Purgechecksdelete,Undeletechecksupdate); S3 object readsstorage.objects.get, listings (and ListParts)storage.objects.list, writes (put, copy, multipart, tagging)storage.objects.create, deletesstorage.objects.delete; bucket-level S3 readsstorage.buckets.get, S3 bucket configuration writesstorage.buckets.update,aws s3 mbstorage.buckets.createon the project,aws s3 rbstorage.buckets.delete. CopyObject/UploadPartCopy also needgeton the source. The seededviewer/editor/adminroles therefore apply to objects.NEBIUS_MOCKER_AUTHZapplies to the S3 front too (audit logs denials, enforce rejects withAccessDenied); anonymous requests are only ever allowed by a bucket policy. - SigV4 (
pkg/sigv4): header and presigned-URL forms, ±15 min clock skew, presign expiry ≤ 7 days, and aws-chunked bodies (STREAMING-AWS4-HMAC-SHA256-PAYLOAD[-TRAILER],STREAMING-UNSIGNED-PAYLOAD-TRAILER; chunk signatures verified, trailing checksums dropped). Non-streaming payload hashes are relayed so RustFS re-checks the body; bodies the front consumes itself (bucket configuration XML) are checked against the signed hash. The credential-scope region must beNEBIUS_MOCKER_STORAGE_REGION(eu-north1): otherwise400 AuthorizationHeaderMalformed(presigned:AuthorizationQueryParametersError) with AWS’s message “the region ‘X’ is wrong; expecting ‘eu-north1’” and a<Region>element. Nebius does not document its answer, so this follows AWS S3. - Other modules reach buckets through
pkg/peer: storage providespeer.BucketResolverKey(bucket ID → object-store bucket name) for services that write into user buckets (audit exports) and read from them (compute image imports use the bucket name directly, since names map 1:1). IAM providespeer.GroupMembersKeyfor bucket policy group rules. - Docker-free mode (
NEBIUS_MOCKER_OBJSTORE=memory, the default): buckets work fully over gRPC (counters reflect the in-memory store, which is never written by users); the S3 front still authenticates and authorizes, serves the bucket calls, then answersNotImplementedfor data operations.
Bucket settings
Every BucketSpec field either has its Nebius effect or is rejected with INVALID_ARGUMENT naming the field. Nothing is
stored without effect.
max_size_bytes(0 = unlimited) is checked by the S3 front before every write that adds bytes (PutObject,CopyObject,UploadPart,UploadPartCopy). The bucket’s size is its current and noncurrent object versions plus uploaded multipart parts, computed from RustFS. A write that would exceed the limit is refused with400 QuotaExceedednaming the limit. An overwrite in a never-versioned bucket counts only the size difference. Concurrent writes are not serialized, so — as the Nebius API documents — the bucket can end slightly above the limit. Nebius does not document the error code;QuotaExceededis the mocker’s choice (see Open questions).corsis served by the S3 front, not RustFS (RustFS’s own CORS headers are dropped). Validation: methodsGET PUT POST DELETE HEAD, at most one*per origin and allowed header. PreflightOPTIONS(unauthenticated): the first rule that allows the origin (one wildcard, case-sensitive), theAccess-Control-Request-Methodand everyAccess-Control-Request-Headersentry (case-insensitive, wildcards) answers200withAccess-Control-Allow-Origin(*for a*rule, else the origin plusAccess-Control-Allow-Credentials: true),-Allow-Methods(the rule’s methods),-Allow-Headers(the requested ones),-Expose-Headers,-Max-Age. No CORS configuration or no match is403 AccessForbidden(“CORSResponse: …”); a missingOriginor request method is400. Actual requests with anOriginget the same headers when a rule matches, andVary: Origin, …always.bucket_policyis evaluated by the S3 gate: a request is allowed by an IAM permit or by any policy rule (rules are independent and additive). A rule applies when its subject matches (group_id: the requester’s service account is a current member;anonymous: everyone, including unsigned requests), one of its roles includes the S3 action, and one of its paths matches: object actions match the key (a full key, or a prefix ending in one*;?matches exactly one character;*alone is the whole bucket); listings match when the requestedprefixlies under a wildcard path; other bucket actions match only*. Roles (the Nebius supported-actions table):storage.object-viewer(Get/Head/GetTagging),storage.object-lister(ListObjects[V2], ListObjectVersions),storage.viewer(both, plus ListMultipartUploads/ListParts, HeadBucket, Get bucket location/versioning/lifecycle/CORS),storage.uploader(Put/Copy/multipart/PutTagging plus the bucket reads),storage.object-editor(all object calls incl. deletes),storage.editor(all of the above plus Put bucket versioning/lifecycle/CORS). Validation: known roles only, a subject per rule, valid paths, and anonymous rules may only grantstorage.viewer,storage.object-viewerorstorage.object-lister.status.anonymous_access_enabledis true when any rule is anonymous. BulkDeleteObjectsis authorized per key: an IAM permit on the bucket allows every key; otherwise each key needs a policy rule whose path matches it. Only allowed keys are relayed to RustFS (with a recomputedContent-MD5); denied keys come back as<Error><Code>AccessDenied</Code>entries in theDeleteResult, as S3 reports per-object failures (aws s3 rm --recursive,s3api delete-objects).lifecycle_configurationis applied by the mocker, not RustFS (whose lifecycle runs on wall time): the storage module’s minute sweeper (mock clock) evaluates everyENABLEDrule of every active bucket against a snapshot of its versions and uploads. Days count from the object’sLastModified(noncurrent days from when the next version superseded it; uploads fromInitiated) and are rounded up to the next midnight UTC, as S3 does;daterules apply from that midnight. Actions:expiration(deletes the current version — a delete marker in versioned buckets),expired_object_delete_marker(removes a delete marker that is the only version left),noncurrent_version_expiration(keepingnewer_noncurrent_versionsnewest),abort_incomplete_multipart_upload. Filters:prefix,object_size_greater_than_bytes/_less_than_bytes(strict),tags(all must match). Validation: uniqueid(≤ 255 chars),statusset, at least one action,expirationhas exactly one ofdays/date/expired_object_delete_marker,dateat midnight UTC, tags not combined with delete-marker or abort actions. Rejected by name:rules[i].transition,rules[i].noncurrent_version_transitionandlast_access_filter. RustFS cannot change an object’s storage class without rewriting it, which would resetLastModifiedand create a new version, breaking the expiration and versioning semantics above.- Storage classes:
STANDARDandENHANCED_THROUGHPUT. RustFS knows onlySTANDARDandREDUCED_REDUNDANCY, so the front storesENHANCED_THROUGHPUTobjects asREDUCED_REDUNDANCYand translates both ways (x-amz-storage-classrequest and response headers,<StorageClass>in listings); users never see the backend name. Uploads (PutObject,CopyObject,CreateMultipartUpload) use the header’s class, elsedefault_storage_class(unset =STANDARD);force_storage_classignores the header. An unknown class isInvalidStorageClass. Rejected by name:INTELLIGENT(access-based tiering needs last-access tracking, which is not emulated) asdefault_storage_classor upload class, andspec.last_access. status.countersare computed on everyGet,GetByNameandListfrom RustFS: one entry per storage class (STANDARDalways present), with current and noncurrent simple/multipart object counts and bytes (multipart = the object’s ETag has a part-count suffix), multipart uploads in flight with their uploaded parts. Delete markers count nowhere.object_audit_logging: honored. WithMUTATE_ONLYorALLthe S3 front reports object requests to the audit module, which records them asDATA_PLANEevents (audit.md). With the audit module disabled nothing is recorded.
Inventories
An inventory (storagebucketinventory, child of its source bucket) makes the mocker write periodic object
listings of the bucket into a destination bucket, as
docs.nebius.com/object-storage/buckets/inventory
describes. Reports are written by the storage module’s minute sweeper (mock clock) into the object store; read them
like any object, through the S3 front (aws s3 ls/cp, the AWS SDK).
- Validation: the parent must be an
ACTIVE, non-filesystem bucket;metadata.name1–64 chars ofA-Za-z0-9._-(it appears in report keys), unique per bucket, immutable (IMMUTABLE_NAME); at most 5 per bucket (RESOURCE_EXHAUSTED, checked atomically with the insert, so parallel creates cannot exceed it);destination_bucket_idanACTIVEnon-filesystem bucket (the source itself is allowed);destination_prefix≤ 256;output_formatandschedulerequired;optional_fieldswithout duplicates. The spec is echoed exactly. - Permissions:
storage.inventories.{get,list,create,update,delete}on the bucket (the seeded editor manages, viewer reads). A destination other than the source also needsstorage.objects.createthere (storage.uploader), checked at Create/Update and again for every report, on behalf of the last writer of the configuration. - Schedule: the first report is written at the next sweep (within a mocker minute of Create), then every 24 h
(
DAILY) or 7 days (WEEKLY) after the previous one. Nebius does not guarantee the time of day; the mocker’s choice makes reports visible right away in local development. Disabled configurations write nothing; re-enabling continues on schedule (no immediate report, as documented); a schedule change applies from the last report. A failed report is retried after an hour. - Report layout (each report is a new set of objects; nothing is overwritten), with
base=<destination_prefix>/<source bucket>/<inventory name>:base/data/<uuid>.csv.gzor.parquet,base/<YYYY-MM-DDTHH-MMZ>/manifest.json,base/<YYYY-MM-DDTHH-MMZ>/manifest.checksum(MD5 of the manifest) andbase/hive/dt=<YYYY-MM-DD-HH-MM>/symlink.txt(s3://<destination>/<data key>). The manifest has the AWS S3 Inventory shape the Nebius docs show (sourceBucket,destinationBucket,version2016-11-30,creationTimestampin epoch ms,fileFormatCSV/Parquet,fileSchema,files[]withkey,size,MD5checksum). - Rows: current versions under
source_prefix, or withnoncurrent_versionsevery version and delete marker. Columns:Bucket, Key, [VersionId, IsLatest, IsDeleteMarker,] Size, LastModifiedDate, ETag, StorageClass, then the selected optional fields in the orderIsMultipartUploaded, IntelligentTieringAccessTier, ChecksumAlgorithm, LastAccessDate, LifecycleExpirationDate, Tags. CSV follows AWS: no header, every field quoted, keys URL-encoded, ISO 8601 times with milliseconds. Parquet (Snappy) uses AWS’s snake_case column names (bucket,key,version_id, …, timestamps in milliseconds).StorageClassuses Nebius names.IntelligentTieringAccessTieris always empty because theINTELLIGENTclass is rejected.ChecksumAlgorithmis the algorithm of the checksum the client sent with the upload (the S3 front keeps checksums).LastAccessDateis the lastGetObjectthrough the S3 front while an enabled configuration withLAST_ACCESSexists for the bucket (tracking is not retroactive, as documented).LifecycleExpirationDatecomes from the source bucket’s enabled expiration rules.Tagsisk1=v1&k2=v2. - Status:
last_successof the last report;error_codeDESTINATION_BUCKET_NOT_FOUND(destination missing or notACTIVE),PERMISSION_DENIED(the writer loststorage.objects.create),QUOTA_EXCEEDED(the report would push the destination overmax_size_bytes), elseNO_ERROR. Status changes never bumpresource_version. Inventories of a purged bucket are removed; delivered reports stay.
Transfers
A transfer (storagetransfer, child of a project) copies objects in iterations, as
docs.nebius.com/object-storage/transfer describes. The
mocker’s engine talks real S3 (AWS SDK for Go) or Azure Blob (Azure SDK) to both sides with the credentials of the
spec. A nebius side is a bucket of this mocker, reached through its own S3 front, so SigV4, IAM permits, bucket
policies, size limits and audit apply exactly as for any client. Iterations run in the background on the mock clock.
- Sides: sources
nebius,s3_compatible,azure_blob_storage; destinationsnebius,s3_compatible. At least one side must benebius(external to external is refused, as documented). Anebiusside must use the served region (NEBIUS_MOCKER_STORAGE_REGION,eu-north1); other regions are refused by name. Anebiusdestination bucket must exist, beACTIVEand belong to the transfer’s project (docs: create the transfer in the destination’s project); with an external destination the same applies to the source bucket. Endpoints must be absolutehttp://orhttps://URLs without a trailing slash. The mocker acceptshttp(Nebius documentshttps) so that local servers such as MinIO, RustFS or Azurite (http://127.0.0.1:10000/devstoreaccount1) work. S3-compatible endpoints are used path style. - Credentials:
secret_access_keyand the Azureaccess_keyareINPUT_ONLYand never returned (v1alpha1: the wholecredentialsmessages). An Update that sends them empty keeps the stored secret; a Create without the secret of an access key is refused. - An iteration lists the source under
source.prefix(ListObjects pages of 1000). The destination key isdestination.prefix+ the key withoutsource.prefix(an empty or > 1024-byte key fails the iteration). A missing destination object is copied (GetObject + PutObject, multipart in ~50 MB parts from 100 MB). An existing one is kept withNEVER; withIF_NEWERit is overwritten when the sourceLast-Modifiedis newer and the object is managed (written by a transfer and unchanged since: the mocker remembers the ETags it wrote) ortouch_unmanagedis set; v1alpha1ALWAYSoverwrites unconditionally. The same data with different metadata is fixed with CopyObject (MetadataDirective=REPLACE) without moving bytes. Withenable_deletes_in_destination, destination objects underdestination.prefixwithout a source counterpart are deleted (only managed ones unlesstouch_unmanaged). After the first successful iteration, source objects last modified before the newest source object of the previous successful iteration are skipped (docs: “objects last modified before the last successful iteration are skipped”). v1alpha1 transfers behave astouch_unmanaged=truewithout deletes. - Limiters:
requests_per_second(source ListObjects pages, HeadObject, GetObject) andbandwidth_bytes_per_second(bytes read from the source) are token buckets on the mock clock; 0 means the documented defaults (4000 requests/s, 50 GiB/s). - Lifecycle: Create starts the first iteration at once. After each iteration the stop condition is checked:
after_one_iterationstops;after_n_empty_iterationsstops after N consecutive iterations that copied and deleted nothing;infinitenever stops. Otherwise the next iteration startsinter_iteration_interval(stored as15mwhen unset,NON_EMPTY_DEFAULT) after the previous one ended. An endpoint error fails the iteration and the transfer (FAILED,status.errorwithoriginSOURCE/DESTINATION and the endpoint’s code and message, e.g.AccessDenied).Stop(onlyACTIVE) stops at once between iterations, otherwise goesSTOPPING, interrupts the running iteration (INTERRUPTED) and endsSTOPPED.Resume(STOPPED/FAILED) starts a new iteration. v1Deleteinterrupts a running iteration (DELETING) and removes the transfer and its history; copied objects stay. v1alpha1Deleteaccepts onlySTOPPED/FAILEDtransfers, as its proto says.status.suspension_stateis alwaysNOT_SUSPENDED(suspension is a billing action).GetIterationHistorylists iterations newest first. - Update: name, labels, credentials, limiters, stop condition and interval. Everything the protos mark
IMMUTABLE(providers, endpoints, regions, bucket names, prefixes,overwrite_strategy,enable_deletes_in_destination,touch_unmanaged) is refused by name; in v1alpha1overwrite_strategyis mutable. Changes apply from the next iteration. - Two API versions, one transfer: v1alpha1 transfers are listed and controlled through v1 too (“All existing
transfers remain accessible through the v1 API”). There their source shows as
s3_compatible(azure_blob_storagefor Azure credentials), their destination asnebius,touch_unmanaged=true, andALWAYSas the raw enum value3(v1 has no name for it). The v1alpha1 API sees only transfers created through it. A transfer is updated through the API version it was created with (the other answersFAILED_PRECONDITION). - Permissions:
storage.transfers.{get,list,create,update,delete};Stopneedsstorage.transfers.stop,Resumestorage.transfers.start,GetIterationHistorystorage.transfers.get(seeded editor: all; viewer: reads). Bucket access is checked by the S3 front for every request with the spec’s access keys. - Docker-free mode (
NEBIUS_MOCKER_OBJSTORE=memory): the API works fully, but the S3 front has no data plane, so iterations touching anebiusside fail with the front’sNotImplemented.
Not yet
- Inventory: the S3 inventory-configuration API (
PutBucketInventoryConfiguration& co., not supported by Nebius either); filesystem buckets as source or destination (refused by name); a report always has one data file. - Transfer: regions other than the served one (refused by name); the
FAILINGstate (failures go straight toFAILED; no retries inside an iteration); suspension; updating a transfer through the other API version.
Terraform
| Kind | Terraform type | Service | RPCs called | Tier |
|---|---|---|---|---|
| Resource | nebius_storage_v1_bucket |
nebius.storage.v1.BucketService |
Get, GetByName, Create, Update, Delete + OperationService.Get | T2 |
| Resource | nebius_storage_v1_inventory |
nebius.storage.v1.InventoryService |
Get, GetByName, Create, Update, Delete + OperationService.Get | T2 |
| Resource | nebius_storage_v1_transfer |
nebius.storage.v1.TransferService |
Get, GetByName, Create, Update, Delete + OperationService.Get | T2 |
| Resource | nebius_storage_v1alpha1_transfer |
nebius.storage.v1alpha1.TransferService |
Get, GetByName, Create, Update, Delete + OperationService.Get | T2 |
| Data source | nebius_storage_v1_bucket |
nebius.storage.v1.BucketService |
Get, GetByName | T2 |
| Data source | nebius_storage_v1_inventory |
nebius.storage.v1.InventoryService |
Get, GetByName | T2 |
| Data source | nebius_storage_v1_transfer |
nebius.storage.v1.TransferService |
Get, GetByName | T2 |
| Data source | nebius_storage_v1alpha1_transfer |
nebius.storage.v1alpha1.TransferService |
Get, GetByName | T2 |
Objects are managed the way Nebius documents for S3 tools: the official hashicorp/aws provider with the S3 endpoint,
region and an access key, here the mocker’s S3 front:
ephemeral "nebius_iam_v2_access_key_secret" "s3" {
id = nebius_iam_v2_access_key.s3.id # or the key's ID from another config
}
provider "aws" {
region = "eu-north1"
access_key = ephemeral.nebius_iam_v2_access_key_secret.s3.aws_access_key_id
secret_key = ephemeral.nebius_iam_v2_access_key_secret.s3.secret
endpoints { s3 = "http://127.0.0.1:4580" } # Nebius: https://storage.<region>.nebius.cloud
s3_use_path_style = true
skip_credentials_validation = true
skip_region_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
}
resource "aws_s3_object" "hello" {
bucket = nebius_storage_v1_bucket.data.name
key = "hello.txt"
content = "hello"
}
Configuration
| Env | Default | Description |
|---|---|---|
NEBIUS_MOCKER_OBJSTORE |
memory |
Object store shared by modules: memory (no S3 data plane) or rustfs |
NEBIUS_MOCKER_OBJSTORE_ENDPOINT |
http://127.0.0.1:9000 |
RustFS S3 endpoint |
NEBIUS_MOCKER_OBJSTORE_ACCESS_KEY / _SECRET_KEY |
rustfsadmin / rustfsadmin |
RustFS credentials (never exposed to users) |
NEBIUS_MOCKER_OBJSTORE_REGION |
us-east-1 |
Region the mocker signs RustFS requests for |
NEBIUS_MOCKER_STORAGE_S3_LISTEN |
:4580 |
S3 front address; off disables it |
NEBIUS_MOCKER_STORAGE_S3_DOMAIN |
storage.eu-north1.mocker.localhost |
S3 host; status.domain_name = <bucket>.<domain> |
NEBIUS_MOCKER_STORAGE_REGION |
eu-north1 |
status.region and GetBucketLocation |
NEBIUS_MOCKER_STORAGE_PURGE_GRACE |
168h |
Default soft-delete grace |
Open questions
- Inventory: Nebius does not document the report time of day, the CSV quoting and encoding, the Parquet schema, the
Tags and LastAccessDate column names or the null-version
VersionId; the mocker follows AWS S3 Inventory where it can (see Inventories). - Transfer: how Nebius identifies managed destination objects (the mocker remembers the ETags it wrote), whether
inter_iteration_intervalcounts from the start or the end of an iteration (the mocker: the end), and the exact rule for skipping unchanged source objects. - Whether real Nebius allows deleting a non-empty bucket (the mocker refuses,
FAILED_PRECONDITION); docs showdelete --ttl 0sfor non-empty buckets. - The exact
status.domain_nameformat, and whetherstatus.counterslists aSTANDARDentry for an empty bucket. - The S3 error Nebius returns when
max_size_bytesis exceeded (the mocker answers400 QuotaExceeded), and whether the size includes noncurrent versions and uploaded parts (the mocker counts both). - The error Nebius returns for a wrong SigV4 credential-scope region (the mocker follows AWS:
AuthorizationHeaderMalformed). - Whether
aws s3 rbsoft-deletes like the Nebius API’s default (the mocker does).
API surface
nebius.storage.v1.BucketService
Endpoint: cpl.storage.api.nebius.cloud:443 · Proto: nebius/storage/v1/bucket_service.proto · used by Terraform
| RPC | Request | Response | TF |
|---|---|---|---|
Get |
GetBucketRequest |
Bucket |
✅ |
GetByName |
GetBucketByNameRequest |
Bucket |
✅ |
List |
ListBucketsRequest |
ListBucketsResponse |
|
ListWithFilter |
ListBucketsWithFilterRequest |
ListBucketsWithFilterResponse |
|
Create |
CreateBucketRequest |
common.v1.Operation |
✅ |
Update |
UpdateBucketRequest |
common.v1.Operation |
✅ |
Delete |
DeleteBucketRequest |
common.v1.Operation |
✅ |
Purge |
PurgeBucketRequest |
common.v1.Operation |
|
Undelete |
UndeleteBucketRequest |
common.v1.Operation |
nebius.storage.v1.InventoryService
Endpoint: cpl.storage.api.nebius.cloud:443 · Proto: nebius/storage/v1/inventory_service.proto · used by Terraform
| RPC | Request | Response | TF |
|---|---|---|---|
Get |
GetInventoryRequest |
Inventory |
✅ |
GetByName |
common.v1.GetByNameRequest |
Inventory |
✅ |
List |
ListInventoriesRequest |
ListInventoriesResponse |
|
Create |
CreateInventoryRequest |
common.v1.Operation |
✅ |
Update |
UpdateInventoryRequest |
common.v1.Operation |
✅ |
Delete |
DeleteInventoryRequest |
common.v1.Operation |
✅ |
nebius.storage.v1.TransferService
Endpoint: transfer.storage.api.nebius.cloud:443 · Proto: nebius/storage/v1/transfer_service.proto · used by Terraform
| RPC | Request | Response | TF |
|---|---|---|---|
Get |
GetTransferRequest |
Transfer |
✅ |
GetByName |
common.v1.GetByNameRequest |
Transfer |
✅ |
List |
ListTransfersRequest |
ListTransfersResponse |
|
Create |
CreateTransferRequest |
common.v1.Operation |
✅ |
Update |
UpdateTransferRequest |
common.v1.Operation |
✅ |
Stop |
StopTransferRequest |
common.v1.Operation |
|
Resume |
ResumeTransferRequest |
common.v1.Operation |
|
Delete |
DeleteTransferRequest |
common.v1.Operation |
✅ |
GetIterationHistory |
GetIterationHistoryRequest |
GetIterationHistoryResponse |
nebius.storage.v1alpha1.TransferService (deprecated)
Endpoint: transfer.storage.api.nebius.cloud:443 · Proto: nebius/storage/v1alpha1/transfer_service.proto · used by Terraform
| RPC | Request | Response | TF |
|---|---|---|---|
Get |
GetTransferRequest |
Transfer |
✅ |
GetByName |
common.v1.GetByNameRequest |
Transfer |
✅ |
List |
ListTransfersRequest |
ListTransfersResponse |
|
Create |
CreateTransferRequest |
common.v1.Operation |
✅ |
Update |
UpdateTransferRequest |
common.v1.Operation |
✅ |
Stop |
StopTransferRequest |
common.v1.Operation |
|
Resume |
ResumeTransferRequest |
common.v1.Operation |
|
Delete |
DeleteTransferRequest |
common.v1.Operation |
✅ |
GetIterationHistory |
GetIterationHistoryRequest |
GetIterationHistoryResponse |