Skip to content

feat(s3): add the /s3/bucket/policy command - #80

Open
pyropy wants to merge 1 commit into
mainfrom
srdjan/feat/s3-bucket-policy-command
Open

pyropy wants to merge 1 commit into
mainfrom
srdjan/feat/s3-bucket-policy-command

Conversation

@pyropy

@pyropy pyropy commented Sep 28, 2026 •

Copy link
Copy Markdown

Adds the /s3/bucket/policy command Ingot invokes on Hilt for the S3 bucket policy operations, per the tenant IAM RFC.

  • commands/s3/bucket: Policy binding
  • PolicyArguments{Request, Body}, PolicyOK{ETag, Policy}
  • Generated CBOR and DAG-JSON encoders

🤖 Generated with Claude Code

@pyropy

pyropy commented Sep 28, 2026

Copy link
Copy Markdown
Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T16:53:21.809224Z 0060aa6 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 0060aa6cb7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 29, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pyropy pyropy self-assigned this Sep 30, 2026
@pyropy
pyropy marked this pull request as ready for review September 30, 2026 15:21
@pyropy
pyropy requested a review from a team September 30, 2026 15:21
pyropy added a commit to fil-forge/ingot that referenced this pull request Sep 30, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Sep 30, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 1, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 1, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/ingot that referenced this pull request Oct 1, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 1, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/ingot that referenced this pull request Oct 1, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 1, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/ingot that referenced this pull request Oct 1, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/ingot that referenced this pull request Oct 1, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/ingot that referenced this pull request Oct 1, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 1, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/ingot that referenced this pull request Oct 1, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/ingot that referenced this pull request Oct 1, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/ingot that referenced this pull request Oct 2, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests to Hilt as one command; the request's method selects the
operation. PolicyArguments carries the forwarded request and, on a PUT,
the policy document as the body. PolicyOK carries the policy's ETag and,
on a GET, the canonical JSON document.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pyropy
pyropy force-pushed the srdjan/feat/s3-bucket-policy-command branch from 0060aa6 to 24293c1 Compare October 2, 2026 12:34
pyropy added a commit to fil-forge/ingot that referenced this pull request Oct 2, 2026
…t/policy

GET, PUT and DELETE on /{bucket}?policy are answered ahead of the S3
route table: the signed request and, on a PUT, the body are forwarded to
Hilt as /s3/bucket/policy, which authenticates and authorizes them. The
routes sit ahead of versitygw's controllers because its PutBucketPolicy
validates the body as an AWS-shaped document, which a Forge policy is
not, and its backend seam carries neither preconditions nor an ETag. The
bucket authority maps Hilt's policy rejections; the routes render them
as NoSuchBucketPolicy, MalformedPolicy, PreconditionFailed,
InvalidRequest and OperationAborted, and a CreateBucket's refused
x-bucket-policy header now renders as MalformedPolicy too, the RFC's one
mapping. The in-memory store answers NoSuchBucketPolicy and NotImplemented.

Temporary pins to hilt branch srdjan/feat/iam-policy-command
(fil-forge/hilt#89) and libforge branch
srdjan/feat/s3-bucket-policy-command (fil-forge/libforge#80); re-pin
before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 2, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 5, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 5, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 5, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 5, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
pyropy added a commit to fil-forge/hilt that referenced this pull request Oct 5, 2026
Ingot forwards S3 GetBucketPolicy, PutBucketPolicy and DeleteBucketPolicy
requests as one command; the request's method selects the operation. A
service key holding s3:GetBucketPolicy, s3:PutBucketPolicy or
s3:DeleteBucketPolicy reaches it, a principal-bound key is refused. A
PUT's body must hash to the request's signed payload hash, so nothing on
the path can replace the document. If-Match and If-None-Match: * are
optional signed headers; without one the write is unconditional, as on
AWS. The policy service's rejections (PolicyNotFound, InvalidPrecondition,
PreconditionFailed, ConcurrentChange) become receipt failures for Ingot to
render.

Temporary pin to libforge branch srdjan/feat/s3-bucket-policy-command
(fil-forge/libforge#80), re-pin before merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant