-
Notifications
You must be signed in to change notification settings - Fork 171
fix(s3): remove dynamic force-path-style addressing (#1648) #2193
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
base: main
Are you sure you want to change the base?
Changes from all commits
1ec3d16
d27a639
78d0d9d
a836417
2286fe3
e49fb2a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,10 +7,19 @@ let data_dir = $"($tmp)/minio-data" | |
| let log_file = $"($tmp)/minio.log" | ||
| let pid_file = $"($tmp)/minio.pid" | ||
| let bucket_name = $"tmp-(random int 0..1000000)" | ||
| let config_path = $"($tmp)/rattler.toml" | ||
|
|
||
| # Create directories | ||
| mkdir $bin_dir $data_dir | ||
|
|
||
| # Create rattler config with S3 options for MinIO (path-style addressing) | ||
| let config_content = $"[s3-options.($bucket_name)] | ||
| endpoint-url = \"http://localhost:9000\" | ||
| force-path-style = true | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. while we're at it, i think we should rename this to |
||
| region = \"us-east-1\" | ||
| " | ||
| $config_content | save $config_path | ||
|
|
||
| # Credentials | ||
| let root_user = ($env.MINIO_ACCESS_KEY? | default "minio") | ||
| let root_password = ($env.MINIO_SECRET_KEY? | default "minio123") | ||
|
|
@@ -56,11 +65,9 @@ print "== Index the channel" | |
| (^rattler-index | ||
| s3 | ||
| $"s3://($bucket_name)" | ||
| --config $config_path | ||
| --access-key-id $root_user | ||
| --secret-access-key $root_password | ||
| --region "us-east-1" | ||
| --endpoint-url "http://localhost:9000" | ||
| --addressing-style path | ||
|
Comment on lines
-61
to
-63
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is changing this necessary? CLI args should already result in |
||
| ) | ||
|
|
||
| print "== Verify cache control headers are set correctly" | ||
|
|
@@ -113,11 +120,11 @@ with-env { | |
| AWS_ACCESS_KEY_ID: $root_user | ||
| AWS_SECRET_ACCESS_KEY: $root_password | ||
| AWS_REGION: "us-east-1" | ||
|
Comment on lines
120
to
122
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should be using the passing them as CLI flags is also fine |
||
| AWS_ENDPOINT_URL: "http://localhost:9000" | ||
| } { | ||
| (^rattler | ||
| create | ||
| --dry-run | ||
| --config $config_path | ||
| -c $"s3://($bucket_name)" | ||
| empty==0.1.0 | ||
| ) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be using
credentials.addressing_style.or(...).this also means that https://github.com/pavelzw/rattler/blob/a8364172f90f752eed7e49f3be73c28878240631/crates/rattler_s3/src/clap.rs#L61 should be a
Option<S3AddressingStyleOpts>.@baszalmstra was there a reason why you made this not an

Optionback then?