Complete safety and transfer remediation verification
This commit is contained in:
@@ -75,7 +75,8 @@ supports remote loading when no authored session override is available. The
|
||||
an earlier run in the same session and retains its source, key, checksum,
|
||||
size, and generation; the bytes are not copied.
|
||||
- verifies a carried object's exact key, size, and generation through object
|
||||
metadata without downloading or opening the local output source.
|
||||
metadata without downloading or opening the local output source; catalog
|
||||
hydration skips carried output payloads.
|
||||
- an initially locked source with no prior declaration remains absent even
|
||||
when the output rule is required. Optional missing unlocked outputs remain
|
||||
absent; required missing unlocked outputs fail.
|
||||
|
||||
@@ -13,7 +13,6 @@ operator-selected storage fields and credential mechanisms belong in
|
||||
|
||||
- `List(ctx, prefix)`
|
||||
- `Read(ctx, key)` returns an object body and the generation observed with it
|
||||
- `Download(ctx, key, localPath)`
|
||||
- `Upload(ctx, localPath, key, opts)`
|
||||
- `UploadConditional(ctx, source, key, opts, condition)`
|
||||
- `Delete(ctx, key)` removes one object and succeeds when it is already absent
|
||||
@@ -30,6 +29,11 @@ limit-plus-one read. It closes the body on every exit. Callers own the policy
|
||||
limit and add the control-object category to errors; this helper is not used for
|
||||
large artifact payloads.
|
||||
|
||||
`StreamObject` transfers payloads to caller-owned writers using the metadata
|
||||
from the same response. It checks a caller-declared size or the observed size
|
||||
when available, reads at most one byte beyond that size, and closes the body.
|
||||
Unknown-size responses stream to EOF; known zero is distinct from unknown.
|
||||
|
||||
## Composition
|
||||
|
||||
`NewObjectStoreFromConfig` constructs the S3-backed implementation from
|
||||
@@ -43,7 +47,6 @@ not own discovery, defaults, or configuration validation.
|
||||
- `List` paginates and returns normalized `ObjectInfo`.
|
||||
- A truncated S3 listing must supply a new, non-empty continuation token;
|
||||
otherwise listing fails with bucket and prefix context instead of looping.
|
||||
- `Download` writes local files with parent directory creation.
|
||||
- `Upload` streams local file and returns remote metadata.
|
||||
- `Read` binds a returned body to its S3 ETag. `UploadConditional` maps an ETag
|
||||
match or absence precondition directly to the provider request and reports a
|
||||
|
||||
Reference in New Issue
Block a user