-
Notifications
You must be signed in to change notification settings - Fork 1
feat(s3): add a blob-backed S3-compatible API #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pthmas
wants to merge
24
commits into
main
Choose a base branch
from
pthmas/s3-blob-export
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
fa8bcf6
feat(s3): add e2e coverage for blob-backed API
pthmas d1eec81
fix(lint): simplify apex service setup wiring
pthmas d9453ce
Merge remote-tracking branch 'origin/main' into pthmas/s3-blob-export
pthmas f618715
feat(s3): add configurable sigv4 auth
pthmas 8d1fb3e
warn on unauthenticated s3 startup
pthmas 2e6da25
fix(s3): enforce read-only mode when submission is not configured
pthmas 2867ed0
fix(s3): harden server, auth, and store correctness
pthmas 6e7281b
docs(s3): clarify PutObject behavior for empty objects
pthmas d97437e
fix(s3): address critical routing/race bugs and medium hardening
pthmas e70b560
fix(s3): address critical routing/race bugs and medium hardening
pthmas 529218f
feat(s3): submit commitment envelope to Celestia instead of raw data
pthmas a96ce16
fix(s3): validate payload hash and check bucket before Celestia submit
pthmas 41fe108
fix(s3): address pagination, env-var credentials, and SQL limit
pthmas c868668
fix(e2e): verify envelope commitment on Celestia, not raw object data
pthmas 0e2f36d
refactor(s3): remove unused fields, fix double ETag, clean dead code
pthmas 3e61846
chore(s3): drop unused columns from migration
pthmas 1222861
fix(s3): reject empty objects instead of storing them without Celesti…
pthmas ac46e3d
fix(e2e): remove pkg/s3 import to avoid proto conflict
pthmas 5a3d2e0
fix(lint): fix gofumpt, perfsprint, unparam violations
pthmas c3bd226
fix(s3): address PR review comments
pthmas 1a25d38
fix(s3): thread ctx into setupS3Server, close on startup failure
pthmas 83ecea4
refactor(s3): extract startRPCServers to reduce gocyclo
pthmas e14fea8
chore(justfile): add e2e-s3 target for S3 lifecycle test
pthmas 9451b9a
fix s3 empty upload and submitter wiring
pthmas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| package main | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/evstack/apex/pkg/submit" | ||
| ) | ||
|
|
||
| func TestIsLoopbackBindAddr(t *testing.T) { | ||
| t.Parallel() | ||
|
|
||
| tests := []struct { | ||
| addr string | ||
| want bool | ||
| }{ | ||
| {addr: "127.0.0.1:8333", want: true}, | ||
| {addr: "[::1]:8333", want: true}, | ||
| {addr: "localhost:8333", want: true}, | ||
| {addr: "api.localhost:8333", want: true}, | ||
| {addr: "unix:///tmp/apex.sock", want: true}, | ||
| {addr: "/tmp/apex.sock", want: true}, | ||
| {addr: ":8333", want: false}, | ||
| {addr: "0.0.0.0:8333", want: false}, | ||
| {addr: "[::]:8333", want: false}, | ||
| {addr: "apex.example.com:8333", want: false}, | ||
| {addr: "", want: false}, | ||
| } | ||
|
|
||
| for _, tt := range tests { | ||
| t.Run(tt.addr, func(t *testing.T) { | ||
| t.Parallel() | ||
|
|
||
| if got := isLoopbackBindAddr(tt.addr); got != tt.want { | ||
| t.Fatalf("isLoopbackBindAddr(%q) = %v, want %v", tt.addr, got, tt.want) | ||
| } | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| func TestNormalizeBlobSubmitter(t *testing.T) { | ||
| t.Parallel() | ||
|
|
||
| var directSubmitter *submit.DirectSubmitter | ||
| if got := normalizeBlobSubmitter(directSubmitter); got != nil { | ||
| t.Fatalf("normalizeBlobSubmitter(nil) = %#v, want nil", got) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.