Sign s3 request on a connection
Signs one exact S3 object request under a committed Connection and workload grant.
Signs one exact S3 object request under a committed Connection and workload grant.
- Path
POST https://api.sylphx.com/v1/orgs/acme/connections/connection:signS3Request - Scope
broker:s3:sign - Effect
read— nothing is written. - Collection connections
Request
| Field | Type | What it is |
|---|---|---|
name | string | Same-org S3 signing Connection. Required. |
method | string | GET or PUT only. Required. |
origin | string | Exact canonical HTTPS origin from the Connection. Required. |
object_key | string | Path-style bucket and key, without the initial slash. Required. |
if_none_match | string | '*' for PUT; unset for GET. |
payload_sha256 | string | Lowercase hex SHA-256; for GET, the digest of an empty body. Required. |
Response
| Field | Type | What it is |
|---|---|---|
authorization | string | SigV4 Authorization header. Output only. |
amz_date | string | x-amz-date wire header in the exact SigV4 signing format. Output only. |
payload_sha256 | string | x-amz-content-sha256 header. Output only. |
Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.INVALID_FIELD— A field failed validation.FAILED_PRECONDITION— A released manifest owns a requested resource field. Change the declaration in the named file and key path, then release.UNAVAILABLE— The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.RATE_LIMITED— The rate limit is reached; see Retry-After.
Every error arrives in the body Errors describes.
Examples
curl -X POST "https://api.sylphx.com/v1/orgs/acme/connections/connection:signS3Request" \
-H "Authorization: Bearer $SYLPHX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"method":"…","object_key":"…","origin":"…","payload_sha256":"…"}'