object-storage-client 0.4.7__tar.gz → 0.4.9__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 (218) hide show
  1. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/.github/workflows/ci.yaml +15 -15
  2. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/.github/workflows/perf.yaml +1 -1
  3. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/.github/workflows/tests.yaml +9 -9
  4. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/Cargo.lock +1 -1
  5. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/Cargo.toml +3 -3
  6. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/PKG-INFO +20 -1
  7. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/README.md +19 -0
  8. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/docs/DEVELOPMENT.md +10 -7
  9. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/docs/GUI.md +8 -2
  10. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/docs/TESTING.md +1 -1
  11. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/docs/UPGRADING.md +5 -1
  12. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/azure.rs +25 -0
  13. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/gcs.rs +16 -0
  14. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/mod.rs +31 -0
  15. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/s3.rs +24 -1
  16. object_storage_client-0.4.9/src/core/mod.rs +20 -0
  17. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action/conn.rs +1 -1
  18. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action/job.rs +1 -1
  19. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action/tests/conn.rs +2 -2
  20. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action/tests.rs +1 -1
  21. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action.rs +1 -1
  22. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/gui}/connection/aws.rs +47 -0
  23. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/gui}/connection/mod.rs +5 -1
  24. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/model.rs +1 -1
  25. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/view/address_bar.rs +4 -0
  26. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/view/panel.rs +1 -1
  27. object_storage_client-0.4.9/src/gui/view/security.rs +268 -0
  28. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/view/tests.rs +2 -2
  29. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/view/toolbar.rs +4 -6
  30. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/view.rs +1 -0
  31. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/worker/tests.rs +1 -1
  32. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/worker.rs +1 -1
  33. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui.rs +3 -2
  34. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/lib.rs +14 -17
  35. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/perf_guards.rs +2 -2
  36. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/.cargo/config.toml +0 -0
  37. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/.docker/garage.toml +0 -0
  38. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/.gitattributes +0 -0
  39. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/.github/dependabot.yml +0 -0
  40. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/.gitignore +0 -0
  41. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/.python-version +0 -0
  42. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/LICENSE +0 -0
  43. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/benches/alloc-counter/Cargo.toml +0 -0
  44. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/benches/alloc-counter/src/lib.rs +0 -0
  45. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/benches/common/mod.rs +0 -0
  46. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/benches/throughput.rs +0 -0
  47. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/compose.yml +0 -0
  48. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/deny.toml +0 -0
  49. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/docs/BEHAVIOR.md +0 -0
  50. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/docs/CONFIGURATION.md +0 -0
  51. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/docs/ENCRYPTION.md +0 -0
  52. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/docs/images/osc-gui.png +0 -0
  53. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/packaging/aur/PKGBUILD.template +0 -0
  54. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/packaging/icon/osc-gui.png +0 -0
  55. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/packaging/linux/osc-gui.desktop +0 -0
  56. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/packaging/macos/Info.plist.template +0 -0
  57. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/packaging/macos/README.txt +0 -0
  58. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/packaging/nfpm.yaml +0 -0
  59. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/proptest-regressions/encryption/context.txt +0 -0
  60. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/pyproject.toml +0 -0
  61. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/python/object_storage_client/__init__.py +0 -0
  62. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/python/object_storage_client/__init__.pyi +0 -0
  63. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/python/object_storage_client/_stream.py +0 -0
  64. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/python/object_storage_client/_types.py +0 -0
  65. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/python/object_storage_client/py.typed +0 -0
  66. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/scripts/esdk_oracle.py +0 -0
  67. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/scripts/hostile-env.sh +0 -0
  68. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/scripts/perf_smoke.py +0 -0
  69. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/scripts/release/check-glibc.sh +0 -0
  70. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/scripts/release/linux-packages.sh +0 -0
  71. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/scripts/release/linux-tarball.sh +0 -0
  72. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/scripts/release/macos-dmg.sh +0 -0
  73. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/scripts/release/render-aur.sh +0 -0
  74. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/args.rs +0 -0
  75. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/enc/tests.rs +0 -0
  76. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/enc.rs +0 -0
  77. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/harden.rs +0 -0
  78. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/keyring.rs +0 -0
  79. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/cli}/main.rs +0 -0
  80. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/output.rs +0 -0
  81. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/tests.rs +0 -0
  82. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/transfer/tests.rs +0 -0
  83. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/transfer.rs +0 -0
  84. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/tree/tests.rs +0 -0
  85. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli/tree.rs +0 -0
  86. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/cli.rs +0 -0
  87. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/aws_profile.rs +0 -0
  88. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/body.rs +0 -0
  89. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/connector.rs +0 -0
  90. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/http.rs +0 -0
  91. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/local.rs +0 -0
  92. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/backend/stub.rs +0 -0
  93. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/client/local_delete.rs +0 -0
  94. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/client.rs +0 -0
  95. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/codec.rs +0 -0
  96. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/context.rs +0 -0
  97. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/envelope/tests.rs +0 -0
  98. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/envelope.rs +0 -0
  99. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/fixtures.rs +0 -0
  100. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/frame.rs +0 -0
  101. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/fuzzing.rs +0 -0
  102. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/header.rs +0 -0
  103. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/keys/keyring/tests.rs +0 -0
  104. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/keys/keyring.rs +0 -0
  105. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/keys/mod.rs +0 -0
  106. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/keys/raw_aes.rs +0 -0
  107. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/mod.rs +0 -0
  108. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/suite.rs +0 -0
  109. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/encryption/tamper_tests.rs +0 -0
  110. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/forward.rs +0 -0
  111. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/fsmode.rs +0 -0
  112. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/hex.rs +0 -0
  113. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/python/client.rs +0 -0
  114. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/python/encryption.rs +0 -0
  115. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/python/mod.rs +0 -0
  116. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/python/stream.rs +0 -0
  117. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/registry.rs +0 -0
  118. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/sign.rs +0 -0
  119. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/text.rs +0 -0
  120. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/core}/upload.rs +0 -0
  121. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action/close.rs +0 -0
  122. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action/nav.rs +0 -0
  123. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action/tests/close.rs +0 -0
  124. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action/tests/jobs.rs +0 -0
  125. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/action/tests/nav.rs +0 -0
  126. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/app.rs +0 -0
  127. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/args.rs +0 -0
  128. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/gui}/connection/azure.rs +0 -0
  129. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/gui}/connection/gcp.rs +0 -0
  130. {object_storage_client-0.4.7/src → object_storage_client-0.4.9/src/gui}/connection/sso.rs +0 -0
  131. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/display.rs +0 -0
  132. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/keys.rs +0 -0
  133. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/location.rs +0 -0
  134. /object_storage_client-0.4.7/src/bin/osc-gui.rs → /object_storage_client-0.4.9/src/gui/main.rs +0 -0
  135. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/ops/tests.rs +0 -0
  136. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/ops.rs +0 -0
  137. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/startup.rs +0 -0
  138. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/view/dialogs.rs +0 -0
  139. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/view/startup_error.rs +0 -0
  140. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/src/gui/view/status.rs +0 -0
  141. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/functional/aws_profile.rs +0 -0
  142. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/functional/cli.rs +0 -0
  143. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/functional/client.rs +0 -0
  144. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/functional/encryption.rs +0 -0
  145. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/functional/golden.rs +0 -0
  146. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/functional/sign.rs +0 -0
  147. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/functional/suite.rs +0 -0
  148. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/functional.rs +0 -0
  149. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/azure_storage_ops.rs +0 -0
  150. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/common/azurite.rs +0 -0
  151. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/common/gcs.rs +0 -0
  152. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/common/mod.rs +0 -0
  153. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/common/provider.rs +0 -0
  154. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/encryption.rs +0 -0
  155. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/file_roundtrip.rs +0 -0
  156. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/gcs_storage_ops.rs +0 -0
  157. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/gui_ops.rs +0 -0
  158. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/reencrypt.rs +0 -0
  159. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/s3_storage_ops.rs +0 -0
  160. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration/storage_ops.rs +0 -0
  161. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/integration.rs +0 -0
  162. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/conftest.py +0 -0
  163. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_abort_at_exit.py +0 -0
  164. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_encrypted_client.py +0 -0
  165. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_encryption_runtime.py +0 -0
  166. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_free_threading.py +0 -0
  167. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_gil_contention.py +0 -0
  168. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_list_stream.py +0 -0
  169. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_pipe_native.py +0 -0
  170. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_plain_client.py +0 -0
  171. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_profile.py +0 -0
  172. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_roundtrip.py +0 -0
  173. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_shared_client.py +0 -0
  174. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_stream_leak.py +0 -0
  175. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_stream_sticky.py +0 -0
  176. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_stub_conformance.py +0 -0
  177. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_subinterpreter.py +0 -0
  178. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/python/test_worker_threads.py +0 -0
  179. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/support/mini_http.rs +0 -0
  180. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/support/mock.rs +0 -0
  181. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/support/mod.rs +0 -0
  182. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/README.md +0 -0
  183. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/ctx_long.bin +0 -0
  184. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/ctx_min.bin +0 -0
  185. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/ctx_utf8.bin +0 -0
  186. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/manifest.json +0 -0
  187. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p0_f4096.bin +0 -0
  188. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p0_f65536.bin +0 -0
  189. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p1_f4096.bin +0 -0
  190. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p1_f65536.bin +0 -0
  191. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p200000_f4096.bin +0 -0
  192. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p200000_f65536.bin +0 -0
  193. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p4095_f4096.bin +0 -0
  194. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p4095_f65536.bin +0 -0
  195. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p4096_f4096.bin +0 -0
  196. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p4096_f65536.bin +0 -0
  197. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p4097_f4096.bin +0 -0
  198. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p4097_f65536.bin +0 -0
  199. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p65535_f4096.bin +0 -0
  200. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p65535_f65536.bin +0 -0
  201. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p65536_f4096.bin +0 -0
  202. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p65536_f65536.bin +0 -0
  203. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p65537_f4096.bin +0 -0
  204. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/esdk/p65537_f65536.bin +0 -0
  205. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/golden/README.md +0 -0
  206. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/golden/v1/context.bin +0 -0
  207. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/golden/v1/keyring +0 -0
  208. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/golden/v1/manifest.json +0 -0
  209. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/golden/v1/old_key.bin +0 -0
  210. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/golden/v1/size_0.bin +0 -0
  211. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/golden/v1/size_1.bin +0 -0
  212. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/golden/v1/size_200000.bin +0 -0
  213. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/golden/v1/size_65536.bin +0 -0
  214. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/keyrings/README.md +0 -0
  215. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/keyrings/one.keyring +0 -0
  216. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/keyrings/other.keyring +0 -0
  217. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/tests/vectors/keyrings/two.keyring +0 -0
  218. {object_storage_client-0.4.7 → object_storage_client-0.4.9}/uv.lock +0 -0
@@ -20,7 +20,7 @@ jobs:
20
20
  # Advisories and yanks change over time, so a release re-checks them.
21
21
  deny:
22
22
  name: cargo deny (advisories, bans, sources)
23
- runs-on: ubuntu-latest
23
+ runs-on: ubuntu-26.04
24
24
 
25
25
  steps:
26
26
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -35,7 +35,7 @@ jobs:
35
35
  test:
36
36
  # Stable only: a beta or nightly compiler problem must not block a release.
37
37
  name: Test
38
- runs-on: ubuntu-latest
38
+ runs-on: ubuntu-26.04
39
39
 
40
40
  steps:
41
41
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -55,7 +55,7 @@ jobs:
55
55
 
56
56
  rustfmt:
57
57
  name: Rustfmt + Clippy
58
- runs-on: ubuntu-latest
58
+ runs-on: ubuntu-26.04
59
59
 
60
60
  steps:
61
61
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -85,13 +85,13 @@ jobs:
85
85
  strategy:
86
86
  fail-fast: false
87
87
  matrix:
88
- os: [ubuntu-latest, macos-latest, windows-latest, linux-aarch64]
88
+ os: [ubuntu-26.04, macos-latest, windows-latest, linux-aarch64]
89
89
  python: ["3.13", "3.14", "3.15"]
90
90
  include:
91
91
  - os: linux-aarch64
92
92
  arch: aarch64
93
93
  target: aarch64-unknown-linux-gnu
94
- runner: ubuntu-latest
94
+ runner: ubuntu-26.04
95
95
  manylinux: 2_28
96
96
 
97
97
  steps:
@@ -143,20 +143,20 @@ jobs:
143
143
  name: Test wheel (${{ matrix.os }}${{ matrix.target && format(' / {0}', matrix.target) || '' }} / py${{ matrix.python }})
144
144
  needs: [ build-wheels ]
145
145
  # The same legs as build-wheels. The aarch64 wheels are built and tested
146
- # under QEMU on ubuntu-latest: no arm runner is needed.
146
+ # under QEMU on ubuntu-26.04: no arm runner is needed.
147
147
  runs-on: ${{ matrix.runner || matrix.os }}
148
148
  timeout-minutes: 90
149
149
 
150
150
  strategy:
151
151
  fail-fast: false
152
152
  matrix:
153
- os: [ubuntu-latest, macos-latest, windows-latest, linux-aarch64]
153
+ os: [ubuntu-26.04, macos-latest, windows-latest, linux-aarch64]
154
154
  python: ["3.13", "3.14", "3.15"]
155
155
  include:
156
156
  - os: linux-aarch64
157
157
  arch: aarch64
158
158
  target: aarch64-unknown-linux-gnu
159
- runner: ubuntu-latest
159
+ runner: ubuntu-26.04
160
160
 
161
161
  steps:
162
162
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -227,7 +227,7 @@ jobs:
227
227
  build-sdist:
228
228
  name: Build source distribution
229
229
  needs: [ test, rustfmt ]
230
- runs-on: ubuntu-latest
230
+ runs-on: ubuntu-26.04
231
231
 
232
232
  steps:
233
233
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -251,7 +251,7 @@ jobs:
251
251
  package-crate:
252
252
  name: Package crate
253
253
  needs: [ test, rustfmt ]
254
- runs-on: ubuntu-latest
254
+ runs-on: ubuntu-26.04
255
255
 
256
256
  steps:
257
257
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -276,7 +276,7 @@ jobs:
276
276
  publish-crate:
277
277
  name: Publish crate to Codeberg
278
278
  needs: [ deny, package-crate, build-wheels, test-wheels, build-sdist ]
279
- runs-on: ubuntu-latest
279
+ runs-on: ubuntu-26.04
280
280
  environment: release
281
281
  if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')
282
282
 
@@ -298,7 +298,7 @@ jobs:
298
298
  publish-to-pypi:
299
299
  name: Publish to PyPI
300
300
  needs: [ deny, package-crate, build-wheels, test-wheels, build-sdist ]
301
- runs-on: ubuntu-latest
301
+ runs-on: ubuntu-26.04
302
302
  environment: release
303
303
  if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')
304
304
  permissions:
@@ -348,7 +348,7 @@ jobs:
348
348
  matrix:
349
349
  include:
350
350
  - arch: x86_64
351
- runner: ubuntu-latest
351
+ runner: ubuntu-26.04
352
352
  image: quay.io/pypa/manylinux_2_28_x86_64
353
353
  nfpm_arch: x86_64
354
354
  nfpm_sha256: 6d7f9a28b2f397934403950fcbba83f598b08d02edbe79a0815b3b4897341750
@@ -467,7 +467,7 @@ jobs:
467
467
  matrix:
468
468
  include:
469
469
  - arch: x86_64
470
- runner: ubuntu-latest
470
+ runner: ubuntu-26.04
471
471
  - arch: aarch64
472
472
  runner: ubuntu-24.04-arm
473
473
 
@@ -500,7 +500,7 @@ jobs:
500
500
  publish-release:
501
501
  name: Attach packages to the GitHub release
502
502
  needs: [ deny, package-crate, build-linux, build-macos, test-packages ]
503
- runs-on: ubuntu-latest
503
+ runs-on: ubuntu-26.04
504
504
  environment: release
505
505
  if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')
506
506
  permissions:
@@ -21,7 +21,7 @@ concurrency:
21
21
  jobs:
22
22
  bench:
23
23
  name: bench + 512 MiB smoke
24
- runs-on: ubuntu-latest
24
+ runs-on: ubuntu-26.04
25
25
  timeout-minutes: 45
26
26
  steps:
27
27
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -26,7 +26,7 @@ jobs:
26
26
  fail-fast: false
27
27
  matrix:
28
28
  include:
29
- - os: ubuntu-latest
29
+ - os: ubuntu-26.04
30
30
  commands: cargo test --locked --all-features
31
31
  - os: macos-latest
32
32
  commands: cargo test --locked --all-features
@@ -50,7 +50,7 @@ jobs:
50
50
  # The MSRV promised in Cargo.toml (rust-version) must build all targets.
51
51
  msrv:
52
52
  name: MSRV (1.99)
53
- runs-on: ubuntu-latest
53
+ runs-on: ubuntu-26.04
54
54
  steps:
55
55
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
56
56
  with:
@@ -65,7 +65,7 @@ jobs:
65
65
 
66
66
  integration:
67
67
  name: integration (Garage, Azurite, fake-gcs-server)
68
- runs-on: ubuntu-latest
68
+ runs-on: ubuntu-26.04
69
69
  timeout-minutes: 30
70
70
  steps:
71
71
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -83,7 +83,7 @@ jobs:
83
83
 
84
84
  lint:
85
85
  name: fmt + clippy
86
- runs-on: ubuntu-latest
86
+ runs-on: ubuntu-26.04
87
87
  steps:
88
88
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
89
89
  with:
@@ -112,7 +112,7 @@ jobs:
112
112
 
113
113
  features:
114
114
  name: feature builds + fuzz crate
115
- runs-on: ubuntu-latest
115
+ runs-on: ubuntu-26.04
116
116
  steps:
117
117
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
118
118
  with:
@@ -145,7 +145,7 @@ jobs:
145
145
 
146
146
  python:
147
147
  name: python tests (${{ matrix.python }})
148
- runs-on: ubuntu-latest
148
+ runs-on: ubuntu-26.04
149
149
  strategy:
150
150
  fail-fast: false
151
151
  matrix:
@@ -171,7 +171,7 @@ jobs:
171
171
 
172
172
  esdk-interop:
173
173
  name: ESDK interop
174
- runs-on: ubuntu-latest
174
+ runs-on: ubuntu-26.04
175
175
  steps:
176
176
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
177
177
  with:
@@ -199,7 +199,7 @@ jobs:
199
199
 
200
200
  deny:
201
201
  name: cargo deny (advisories, bans, sources)
202
- runs-on: ubuntu-latest
202
+ runs-on: ubuntu-26.04
203
203
  steps:
204
204
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
205
205
  with:
@@ -231,7 +231,7 @@ jobs:
231
231
  && github.event.pull_request.user.login == 'dependabot[bot]'
232
232
  && github.actor == 'dependabot[bot]'
233
233
  && github.event.pull_request.head.repo.full_name == github.repository
234
- runs-on: ubuntu-latest
234
+ runs-on: ubuntu-26.04
235
235
  permissions:
236
236
  contents: write
237
237
  pull-requests: write
@@ -3346,7 +3346,7 @@ dependencies = [
3346
3346
 
3347
3347
  [[package]]
3348
3348
  name = "object-storage-client"
3349
- version = "0.4.7"
3349
+ version = "0.4.9"
3350
3350
  dependencies = [
3351
3351
  "alloc-counter",
3352
3352
  "async-trait",
@@ -9,7 +9,7 @@ license = "GPL-3.0-only"
9
9
  name = "object-storage-client"
10
10
  readme = "README.md"
11
11
  repository = "https://github.com/bixority/object-storage-client"
12
- version = "0.4.7"
12
+ version = "0.4.9"
13
13
 
14
14
  [lib]
15
15
  # maturin adds the cdylib crate type itself; do not list it here.
@@ -67,12 +67,12 @@ python = ["dep:pyo3", "dep:pyo3-async-runtimes", "encryption"]
67
67
 
68
68
  [[bin]]
69
69
  name = "osc"
70
- path = "src/main.rs"
70
+ path = "src/cli/main.rs"
71
71
  required-features = ["cli"]
72
72
 
73
73
  [[bin]]
74
74
  name = "osc-gui"
75
- path = "src/bin/osc-gui.rs"
75
+ path = "src/gui/main.rs"
76
76
  required-features = ["gui"]
77
77
 
78
78
  [[bench]]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: object-storage-client
3
- Version: 0.4.7
3
+ Version: 0.4.9
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: 3
@@ -96,6 +96,22 @@ cargo install --path . --features gui
96
96
 
97
97
  On Linux, `osc-gui` needs a Wayland session; X11 is not supported.
98
98
 
99
+ #### Build for this machine
100
+
101
+ The release packages and a plain `cargo install` target a generic CPU, so they
102
+ run on any x86-64 (or aarch64) machine. To build for the CPU you have, set
103
+ `target-cpu=native` in `RUSTFLAGS`. The binary then uses that CPU's extensions
104
+ and will not run on older CPUs, so do not copy it to other machines:
105
+
106
+ ```bash
107
+ RUSTFLAGS="-C target-cpu=native" cargo install object-storage-client --registry bixority --features gui
108
+ # or, from a checkout:
109
+ RUSTFLAGS="-C target-cpu=native" cargo install --path . --features gui
110
+ ```
111
+
112
+ The same works for `osc` (drop `--features gui`). The repository does not set
113
+ this flag itself, so it applies only when you set it.
114
+
99
115
  ### Run
100
116
 
101
117
  ```bash
@@ -126,6 +142,9 @@ cargo install object-storage-client --registry bixority
126
142
  # or, from a checkout: cargo install --path .
127
143
  ```
128
144
 
145
+ To tune the build for your CPU, see [Build for this machine](#build-for-this-machine)
146
+ (`RUSTFLAGS="-C target-cpu=native"`).
147
+
129
148
  ### Run
130
149
 
131
150
  ```bash
@@ -76,6 +76,22 @@ cargo install --path . --features gui
76
76
 
77
77
  On Linux, `osc-gui` needs a Wayland session; X11 is not supported.
78
78
 
79
+ #### Build for this machine
80
+
81
+ The release packages and a plain `cargo install` target a generic CPU, so they
82
+ run on any x86-64 (or aarch64) machine. To build for the CPU you have, set
83
+ `target-cpu=native` in `RUSTFLAGS`. The binary then uses that CPU's extensions
84
+ and will not run on older CPUs, so do not copy it to other machines:
85
+
86
+ ```bash
87
+ RUSTFLAGS="-C target-cpu=native" cargo install object-storage-client --registry bixority --features gui
88
+ # or, from a checkout:
89
+ RUSTFLAGS="-C target-cpu=native" cargo install --path . --features gui
90
+ ```
91
+
92
+ The same works for `osc` (drop `--features gui`). The repository does not set
93
+ this flag itself, so it applies only when you set it.
94
+
79
95
  ### Run
80
96
 
81
97
  ```bash
@@ -106,6 +122,9 @@ cargo install object-storage-client --registry bixority
106
122
  # or, from a checkout: cargo install --path .
107
123
  ```
108
124
 
125
+ To tune the build for your CPU, see [Build for this machine](#build-for-this-machine)
126
+ (`RUSTFLAGS="-C target-cpu=native"`).
127
+
109
128
  ### Run
110
129
 
111
130
  ```bash
@@ -107,13 +107,16 @@ otherwise a `--locked` check of the fuzz crate fails.
107
107
 
108
108
  ## Layout
109
109
 
110
- - `src/client.rs`, `src/codec.rs`: the `Client` API and the plain codec
111
- - `src/backend/`: one module per storage provider
112
- - `src/encryption/`: message format, framing, keyrings and the encrypting codec
113
- - `src/cli.rs`, `src/cli/`, `src/main.rs`: the `osc` binary
114
- - `src/gui.rs`, `src/gui/`, `src/bin/osc-gui.rs`: the `osc-gui` binary;
115
- `src/connection/`: its connection discovery and SSO login
116
- - `src/python/`, `python/object_storage_client/`: the bindings and their type stubs
110
+ - `src/core/`: the library shared by both binaries. `src/core/client.rs` and
111
+ `src/core/codec.rs` hold the `Client` API and the plain codec;
112
+ `src/core/backend/` has one module per storage provider;
113
+ `src/core/encryption/` has the message format, framing, keyrings and the
114
+ encrypting codec; `src/core/python/` the bindings. `lib.rs` re-exports
115
+ `core` under the module names the library has always had.
116
+ - `src/cli.rs`, `src/cli/`, `src/cli/main.rs`: the `osc` binary
117
+ - `src/gui.rs`, `src/gui/`, `src/gui/main.rs`: the `osc-gui` binary;
118
+ `src/gui/connection/`: its connection discovery and SSO login
119
+ - `python/object_storage_client/`: the Python package and its type stubs
117
120
  - `tests/`, `benches/`, `fuzz/`, `scripts/`: see [Testing](TESTING.md)
118
121
  - `compose.yml`: Garage and Azurite for manual exploration (`docker compose up`)
119
122
 
@@ -39,8 +39,14 @@ The options are the ones `osc` takes:
39
39
  | `--require-encryption` | `OSC_REQUIRE_ENCRYPTION` | Refuse to start without a key source |
40
40
 
41
41
  The key source is opened once, at launch; a keyring file then reloads itself
42
- when it changes, while a key command is not run again. The toolbar shows
43
- whether encryption is on and where the keys came from. With encryption on,
42
+ when it changes, while a key command is not run again. The top right of the
43
+ toolbar shows a key (🔑) when client-side encryption is on and ⊘ when it is
44
+ off; hover it to see whether the keys came from a keyring file or a key
45
+ command. Next to each connection selector, a shield (🛡️) means the endpoint
46
+ uses HTTPS and its certificate is verified, a warning sign (⚠️) means HTTPS with
47
+ certificate verification turned off for that connection, and ◌ means no TLS
48
+ (a plain `http` endpoint, or Local). An AWS profile's `endpoint_url` is read when
49
+ the connections are found, so "Rescan" picks up a change. Hover an icon for its text. With encryption on,
44
50
  every copy and move encrypts what it writes and decrypts what it reads, as `osc
45
51
  cp` and `osc mv` do.
46
52
 
@@ -29,7 +29,7 @@ through `object_store`'s clients, which always honour system proxies and cannot
29
29
  turn them off. The clients the crate builds itself ignore proxies in tests
30
30
  (injected variables).
31
31
 
32
- Backend unit tests that talk to a loopback stub (`src/backend/stub.rs`) run on
32
+ Backend unit tests that talk to a loopback stub (`src/core/backend/stub.rs`) run on
33
33
  the real tokio clock, not `start_paused`: on macOS a paused clock can jump to
34
34
  the HTTP timeouts while a loopback connect is still pending.
35
35
  `stub::closed_port()` keeps its port bound, so a concurrent test's stub cannot
@@ -1,9 +1,13 @@
1
1
  # Upgrading
2
2
 
3
- ## From 0.4.4 to 0.4.7
3
+ ## From 0.4.4 to 0.4.9
4
4
 
5
5
  ### `osc-gui`
6
6
 
7
+ - The toolbar shows a key icon (🔑) when encryption is on and ⊘ when it is off,
8
+ in place of the "Encryption on/off" text; hover it for where the keys came
9
+ from. Each panel shows a TLS icon left of its connection selector: 🛡️
10
+ verified HTTPS, ⚠️ HTTPS without certificate verification, ◌ no TLS.
7
11
  - An AWS profile connection now takes `S3_REGION`, `AWS_REGION` and
8
12
  `AWS_DEFAULT_REGION` from the environment, before the profile's `region`, as
9
13
  the AWS CLI does. They used to be ignored, so a profile without `region`
@@ -644,6 +644,31 @@ fn configured(container: &str, vars: &Vars) -> MicrosoftAzureBuilder {
644
644
  builder.with_container_name(container)
645
645
  }
646
646
 
647
+ /// The TLS settings `vars` give an Azure store: the blob endpoint (the
648
+ /// storage emulator is plain `http`) and the builder's certificate setting.
649
+ #[cfg(feature = "gui")]
650
+ pub(super) fn tls(vars: &Vars) -> super::Tls {
651
+ let builder = configured("", vars);
652
+ let flag = |key: &AzureConfigKey| {
653
+ builder
654
+ .get_config_value(key)
655
+ .and_then(|v| super::parse_bool(&v))
656
+ .unwrap_or(false)
657
+ };
658
+ let plain = builder
659
+ .get_config_value(&AzureConfigKey::Endpoint)
660
+ .map_or_else(
661
+ || flag(&AzureConfigKey::UseEmulator),
662
+ |endpoint| super::is_plain(&endpoint),
663
+ );
664
+ super::Tls {
665
+ https: !plain,
666
+ allow_invalid_certificates: flag(&AzureConfigKey::Client(
667
+ ClientConfigKey::AllowInvalidCertificates,
668
+ )),
669
+ }
670
+ }
671
+
647
672
  #[cfg(test)]
648
673
  mod tests {
649
674
  use super::*;
@@ -281,6 +281,22 @@ fn base_url(vars: &Vars, builder: &GoogleCloudStorageBuilder) -> String {
281
281
  )
282
282
  }
283
283
 
284
+ /// The TLS settings `vars` give a GCS store: the JSON API origin and the
285
+ /// builder's certificate setting.
286
+ #[cfg(feature = "gui")]
287
+ pub(super) fn tls(vars: &Vars) -> super::Tls {
288
+ let builder = configured("", vars);
289
+ super::Tls {
290
+ https: !super::is_plain(&base_url(vars, &builder)),
291
+ allow_invalid_certificates: builder
292
+ .get_config_value(&GoogleConfigKey::Client(
293
+ object_store::ClientConfigKey::AllowInvalidCertificates,
294
+ ))
295
+ .and_then(|v| super::parse_bool(&v))
296
+ .unwrap_or(false),
297
+ }
298
+ }
299
+
284
300
  /// Attaches the bearer token to `request`, but only when `base` is an https
285
301
  /// origin so a token is never sent in clear text to a custom `GCS_BASE_URL`.
286
302
  /// `disable_oauth` (emulators) yields an empty bearer: no header is sent.
@@ -26,6 +26,8 @@ pub mod stub;
26
26
  use crate::client::{Error, Result};
27
27
  use crate::sign::{SignMethod, SignOptions};
28
28
  pub use aws_profile::AwsProfile;
29
+ #[cfg(feature = "gui")]
30
+ pub use aws_profile::{files as profile_files, settings as profile_settings};
29
31
  pub use body::FILE_BUF;
30
32
  pub use body::body_stream;
31
33
  #[cfg(feature = "gui")]
@@ -175,6 +177,35 @@ impl Vars {
175
177
  }
176
178
  }
177
179
 
180
+ /// What a provider's settings say about TLS, read without building a store or
181
+ /// contacting a server.
182
+ #[cfg(feature = "gui")]
183
+ #[derive(Debug, Clone, Copy, PartialEq, Eq)]
184
+ pub struct Tls {
185
+ /// The endpoint is `https` (the default of every provider), not plain `http`.
186
+ pub https: bool,
187
+ /// Certificate verification is switched off (`*_ALLOW_INVALID_CERTIFICATES`).
188
+ pub allow_invalid_certificates: bool,
189
+ }
190
+
191
+ /// The TLS settings of the store `vars` configure for `scheme` (`s3`, `gs` or
192
+ /// `az`), resolved as [`build`] resolves them. `None` for another scheme.
193
+ #[cfg(feature = "gui")]
194
+ pub fn tls(scheme: &str, vars: &Vars) -> Option<Tls> {
195
+ match scheme {
196
+ "s3" => Some(s3::tls(vars)),
197
+ "gs" | "gcs" => Some(gcs::tls(vars)),
198
+ "az" | "wasb" | "wasbs" | "abfs" | "abfss" => Some(azure::tls(vars)),
199
+ _ => None,
200
+ }
201
+ }
202
+
203
+ /// Whether `endpoint` is a plain `http://` URL, as every backend decides it.
204
+ #[cfg(feature = "gui")]
205
+ fn is_plain(endpoint: &str) -> bool {
206
+ endpoint.starts_with("http://")
207
+ }
208
+
178
209
  /// How long an object request may stay silent: the time to the response
179
210
  /// headers and every gap between body reads. The first covers sending the
180
211
  /// request body, so each upload request (one put or one part) must be sent and
@@ -379,7 +379,7 @@ impl S3Backend {
379
379
  /// own `S3_ENDPOINT`, then `AWS_ENDPOINT_URL_S3`, `AWS_ENDPOINT` and
380
380
  /// `AWS_ENDPOINT_URL`; empty values are ignored. `None` means "no custom
381
381
  /// endpoint" — i.e. real AWS, where the IMDS credential fallback is valid.
382
- fn configured_endpoint(vars: &Vars) -> Option<String> {
382
+ pub(super) fn configured_endpoint(vars: &Vars) -> Option<String> {
383
383
  [
384
384
  "S3_ENDPOINT",
385
385
  "AWS_ENDPOINT_URL_S3",
@@ -578,6 +578,29 @@ impl S3Backend {
578
578
 
579
579
  /// The key of `path` as a URI path: everything but unreserved characters and
580
580
  /// `/` is percent-encoded, as `object_store` does for its own requests.
581
+ /// The TLS settings `vars` give an S3 store: the endpoint [`S3Backend::with_shared`]
582
+ /// picks from the variables, and the builder's certificate setting. An endpoint
583
+ /// that only an AWS profile names is not read here (that takes file I/O).
584
+ #[cfg(feature = "gui")]
585
+ pub(super) fn tls(vars: &Vars) -> super::Tls {
586
+ let builder = match vars {
587
+ Vars::Env => AmazonS3Builder::from_env(),
588
+ Vars::Map { .. } => vars
589
+ .config_entries::<AmazonS3ConfigKey>("AWS_")
590
+ .into_iter()
591
+ .fold(AmazonS3Builder::new(), |b, (k, v)| b.with_config(k, v)),
592
+ };
593
+ super::Tls {
594
+ https: !S3Backend::configured_endpoint(vars).is_some_and(|ep| super::is_plain(&ep)),
595
+ allow_invalid_certificates: builder
596
+ .get_config_value(&AmazonS3ConfigKey::Client(
597
+ object_store::ClientConfigKey::AllowInvalidCertificates,
598
+ ))
599
+ .and_then(|v| parse_bool(&v))
600
+ .unwrap_or(false),
601
+ }
602
+ }
603
+
581
604
  fn encode_key(path: &ObjectPath) -> String {
582
605
  const KEY: &percent_encoding::AsciiSet = &percent_encoding::NON_ALPHANUMERIC
583
606
  .remove(b'-')
@@ -0,0 +1,20 @@
1
+ //! The storage library shared by `osc` and `osc-gui`: clients, backends,
2
+ //! encryption, the registry and the Python bindings.
3
+
4
+ #[cfg(test)]
5
+ #[macro_use]
6
+ mod forward;
7
+
8
+ pub mod backend;
9
+ pub mod client;
10
+ pub mod codec;
11
+ #[cfg(feature = "encryption")]
12
+ pub mod encryption;
13
+ pub mod fsmode;
14
+ pub mod hex;
15
+ #[cfg(feature = "python")]
16
+ pub mod python;
17
+ pub mod registry;
18
+ pub mod sign;
19
+ pub mod text;
20
+ pub mod upload;
@@ -1,7 +1,7 @@
1
1
  //! Connection rules: choosing a panel's connection, scanning, SSO login.
2
2
 
3
3
  use super::{Command, nav};
4
- use crate::connection::{Connection, Discovery, Login};
4
+ use crate::gui::connection::{Connection, Discovery, Login};
5
5
  use crate::gui::location::Location;
6
6
  use crate::gui::model::{AppState, Closing, Dialog, Side};
7
7
  use std::sync::Arc;
@@ -1,7 +1,7 @@
1
1
  //! Job and dialog rules: starting operations, planning, confirming, progress.
2
2
 
3
3
  use super::{Answer, Command, nav};
4
- use crate::connection::Connection;
4
+ use crate::gui::connection::Connection;
5
5
  use crate::gui::location::Location;
6
6
  use crate::gui::model::{
7
7
  AppState, Batch, Closing, Dialog, Entry, Item, Job, JobId, JobPhase, OnExisting, OpKind,
@@ -1,9 +1,9 @@
1
1
  //! Connection rules: choosing, scanning, scheme checks, roots, SSO login.
2
2
 
3
3
  use super::{act, dir, loc, obj, page, plan, planned, s3, s3_state, state};
4
- use crate::connection::sso::SsoLogin;
5
- use crate::connection::{Connection, Discovery, Login, Provider, Source};
6
4
  use crate::gui::action::{Action, Answer, Command, Event, Msg, SelectOp, update};
5
+ use crate::gui::connection::sso::SsoLogin;
6
+ use crate::gui::connection::{Connection, Discovery, Login, Provider, Source};
7
7
  use crate::gui::model::{AppState, Dialog, Entry, Item, OpKind, Outcome, Side};
8
8
  use std::sync::Arc;
9
9
 
@@ -5,7 +5,7 @@ mod close;
5
5
  mod conn;
6
6
  mod jobs;
7
7
  mod nav;
8
- use crate::connection::{Provider, Source};
8
+ use crate::gui::connection::{Provider, Source};
9
9
  use crate::gui::model::{Entry, Item, MAX_ENTRIES};
10
10
  use chrono::DateTime;
11
11
  use std::sync::Arc;
@@ -12,7 +12,7 @@ use super::model::{
12
12
  AppState, Batch, Closing, Dialog, Encryption, EntryKey, JobId, OnExisting, OpKind, Outcome,
13
13
  Page, PanelState, Plan, Side,
14
14
  };
15
- use crate::connection::{Connection, Discovery};
15
+ use crate::gui::connection::{Connection, Discovery};
16
16
  use std::sync::Arc;
17
17
 
18
18
  /// A change to the selection of one panel. Rows are named by their key.