object-storage-proxy 0.3.7__tar.gz → 0.3.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/Cargo.lock +1 -1
  2. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/Cargo.toml +1 -1
  3. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/PKG-INFO +1 -1
  4. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/lib.rs +10 -1
  5. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/.cargo/config.toml +0 -0
  6. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/.github/workflows/ci.yml +0 -0
  7. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/.gitignore +0 -0
  8. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/LICENSE +0 -0
  9. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/README.md +0 -0
  10. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/img/logo.svg +0 -0
  11. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/img/request_lifecycle.svg +0 -0
  12. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/img/request_stages.svg +0 -0
  13. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/pyproject.toml +0 -0
  14. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/requirements.txt +0 -0
  15. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/hmac_keystore.rs +0 -0
  16. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/mod.rs +0 -0
  17. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/models.rs +0 -0
  18. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/secrets_proxy.rs +0 -0
  19. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/credentials/signer.rs +0 -0
  20. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/object_storage_proxy.pyi +0 -0
  21. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/cos_map.rs +0 -0
  22. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/credentials.rs +0 -0
  23. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/keystore.rs +0 -0
  24. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/mod.rs +0 -0
  25. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/parsers/path.rs +0 -0
  26. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/utils/mod.rs +0 -0
  27. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/src/utils/validator.rs +0 -0
  28. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/test_integration.sh +0 -0
  29. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/test_server.py +0 -0
  30. {object_storage_proxy-0.3.7 → object_storage_proxy-0.3.8}/uv.lock +0 -0
@@ -1701,7 +1701,7 @@ dependencies = [
1701
1701
 
1702
1702
  [[package]]
1703
1703
  name = "object-storage-proxy"
1704
- version = "0.3.7"
1704
+ version = "0.3.8"
1705
1705
  dependencies = [
1706
1706
  "async-trait",
1707
1707
  "chrono",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "object-storage-proxy"
3
- version = "0.3.7"
3
+ version = "0.3.8"
4
4
  edition = "2024"
5
5
 
6
6
  [dependencies]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: object-storage-proxy
3
- Version: 0.3.7
3
+ Version: 0.3.8
4
4
  Classifier: License :: Other/Proprietary License
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -647,14 +647,23 @@ impl ProxyHttp for MyProxy {
647
647
  // "x-amz-trailer",
648
648
  ];
649
649
 
650
+
650
651
  let to_check: Vec<String> = upstream_request
651
652
  .headers
652
653
  .iter()
653
654
  .map(|(name, _)| name.as_str().to_owned())
654
655
  .collect();
655
656
 
657
+ // for name in to_check {
658
+ // if !allowed.contains(&name.as_str()) {
659
+ // let _ = upstream_request.remove_header(&name);
660
+ // }
661
+ // }
662
+
656
663
  for name in to_check {
657
- if !allowed.contains(&name.as_str()) {
664
+ let keep = allowed.contains(&name.as_str())
665
+ || name.starts_with("x-amz-checksum-");
666
+ if !keep {
658
667
  let _ = upstream_request.remove_header(&name);
659
668
  }
660
669
  }