Commit Graph

1527 Commits

Author SHA1 Message Date
houseme 086331b8e7 fix 2025-07-04 01:48:35 +08:00
houseme 96d22c3276 Refactor(server): Encapsulate service creation within connection handler
Move the construction of the hybrid service stack, including all middleware and the RPC service, from the main `run` function into the `process_connection` function.

This change ensures that each incoming connection gets its own isolated service instance. This improves modularity by making the connection handling logic more self-contained and simplifies the main server loop.

Key changes:
- The `hybrid_service` and `rpc_service` are now created inside `process_connection`.
- The `run` function's responsibility is reduced to accepting TCP connections and spawning tasks for `process_connection`.
2025-07-04 01:33:16 +08:00
houseme caa3564439 Merge branch 'main' of github.com:rustfs/rustfs into feature/tls
* 'main' of github.com:rustfs/rustfs:
  Modify quickstart
  fix Dockerfile
  fix Dockerfile
2025-07-03 20:14:40 +08:00
loverustfs 18933fdb58 Modify quickstart 2025-07-03 19:11:44 +08:00
loverustfs 65a731a243 fix Dockerfile 2025-07-03 18:59:42 +08:00
loverustfs 89035d3b3b fix Dockerfile 2025-07-03 18:35:44 +08:00
houseme c6527643a3 merge 2025-07-03 17:35:02 +08:00
loverustfs b9157d5e9d Modify Dockerfile 2025-07-03 17:32:32 +08:00
loverustfs 20be2d9859 Fix the error of anonymous users viewing pictures 2025-07-03 16:36:45 +08:00
weisd 855541678e fix(ecstore): doc test (#38) 2025-07-03 16:23:36 +08:00
weisd 73d3d8ab5c refactor: simplify hash algorithm API and remove custom hasher implementation (#37)
- Remove custom hasher.rs module and Hasher trait
- Replace with HashAlgorithm enum for better type safety
- Simplify hash calculation from write()+sum() to hash_encode()
- Remove stateful hasher operations (reset, write, sum)
- Update all hash usage in ecstore client modules
- Maintain compatibility with existing checksum functionality
2025-07-03 15:53:00 +08:00
weisd 6983a3ffce feat: change default listen to IPv4 and add panic recovery (#36) 2025-07-03 13:51:38 +08:00
loverustfs d6653f1258 Delete TODO.md 2025-07-03 08:55:58 +08:00
安正超 7ab53a6d7d Update README_ZH.md 2025-07-03 08:53:52 +08:00
安正超 85ee9811d8 Update README.md 2025-07-03 08:53:38 +08:00
安正超 61bd76f77e Update README_ZH.md 2025-07-03 08:52:55 +08:00
安正超 8cf611426b Update README.md 2025-07-03 08:52:38 +08:00
安正超 b0ac977a3d feat: restrict build triggers and add GitHub release automation (#34)
- Only execute builds on tag push, scheduled runs, or commit message contains --build
- Add latest.json version tracking to rustfs-version OSS bucket
- Create GitHub Release with all build artifacts automatically
- Update comments to English for consistency
- Reduce unnecessary CI resource usage while maintaining automation
2025-07-02 23:31:17 +08:00
安正超 6a5fbe7ef1 feat: optimize CI triggers and add latest version tracking to OSS (#33)
* feat: optimize CI triggers and add latest version tracking to OSS

* feat: optimize CI triggers and add latest version tracking to OSS
1.0.0-alpha.1
2025-07-02 22:56:55 +08:00
安正超 e20e84fedb fix: broken links. (#32) 2025-07-02 22:22:44 +08:00
houseme 5826396cd0 refactor: Restructure project layout and clean up dependencies (#30)
This commit introduces a significant reorganization of the project structure to improve maintainability and clarity.

Key changes include:
- Adjusted the directory layout for a more logical module organization.
- Removed unused crate dependencies, reducing the overall project size and potentially speeding up build times.
- Updated import paths and configuration files to reflect the structural changes.
2025-07-02 19:33:12 +08:00
loverustfs 0be4264eb1 Merge pull request #29 from rustfs/fix-video-url
fix video url error
2025-07-02 17:39:06 +08:00
loverustfs 70ae0cd1a8 fix video url error 2025-07-02 17:37:53 +08:00
weisd bf690ad353 feat: improve ImportBucketMetadata handle (#26)
* feat: improve ImportBucketMetadata handle
2025-07-02 16:31:16 +08:00
houseme 2e14b32ccd chore: Add copyright and license headers (#23)
* chore: Add copyright and license headers

This commit adds the Apache 2.0 license and a copyright notice to the header of all source files. This ensures that the licensing and copyright information is clearly stated within the codebase.

* cargo fmt

* fix

* fmt

* fix clippy
2025-07-02 15:07:47 +08:00
Zhelong Zhao 557e85c0c1 chore: quickstart link in README_ZH (#24)
Signed-off-by: zztaki <zztaki@outlook.com>
2025-07-02 14:46:49 +08:00
loverustfs 8d30e68284 fix artifacts upload error 2025-07-02 13:53:11 +08:00
weisd 830d2b8df5 fix: dep (#21) 2025-07-02 13:26:13 +08:00
houseme cb19bbef22 fix:Apply suggestions from clippy 1.88 (#20) 2025-07-02 12:14:22 +08:00
安正超 291de5bb96 Merge pull request #18 from rustfs/dependabot/cargo/dependencies-2155b15d76 2025-07-02 11:52:31 +08:00
安正超 86f9e6c49f Merge pull request #19 from hengfeiyang/fix/translate 2025-07-02 11:52:18 +08:00
hengfei yang 97e29a27a0 chore: translate to English 2025-07-02 11:47:59 +08:00
dependabot[bot] d3575dccce build(deps): bump the dependencies group with 2 updates
Bumps the dependencies group with 2 updates: [aws-sdk-s3](https://github.com/awslabs/aws-sdk-rust) and [reqwest](https://github.com/seanmonstar/reqwest).


Updates `aws-sdk-s3` from 1.94.0 to 1.95.0
- [Release notes](https://github.com/awslabs/aws-sdk-rust/releases)
- [Commits](https://github.com/awslabs/aws-sdk-rust/commits)

Updates `reqwest` from 0.12.21 to 0.12.22
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.21...v0.12.22)

---
updated-dependencies:
- dependency-name: aws-sdk-s3
  dependency-version: 1.95.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: reqwest
  dependency-version: 0.12.22
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-02 03:29:41 +00:00
安正超 aeffacb53e Hello, RustFS. 2025-07-02 11:27:42 +08:00
安正超 b9ff63d064 fix: link 2025-07-02 03:16:34 +00:00
weisd 68bc59c6eb fix: route conflict 2025-07-02 10:35:50 +08:00
houseme cc63e56b8a improve cargo toml 2025-07-01 22:00:58 +08:00
weisd 7c79d4c1ca feat: add ImportBucketMetadata handler 2025-07-01 21:47:28 +08:00
loverustfs a61e9dd27d Merge pull request #531 from rustfs/dependabot/cargo/dependencies-23ae540c9b
Bump the dependencies group with 7 updates
2025-07-01 21:09:20 +08:00
houseme 3c9ed62bbb improve code 2025-07-01 20:57:58 +08:00
weisd cf7a930d39 todo 2025-07-01 17:26:47 +08:00
houseme e641036cda add router 2025-07-01 17:17:44 +08:00
dependabot[bot] d736c6224d Bump the dependencies group with 7 updates
Bumps the dependencies group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [aws-sdk-s3](https://github.com/awslabs/aws-sdk-rust) | `1.91.0` | `1.94.0` |
| [cfg-if](https://github.com/rust-lang/cfg-if) | `1.0.0` | `1.0.1` |
| [flexi_logger](https://github.com/emabee/flexi_logger) | `0.31.1` | `0.31.2` |
| [reqwest](https://github.com/seanmonstar/reqwest) | `0.12.20` | `0.12.21` |
| [shadow-rs](https://github.com/baoyachi/shadow-rs) | `1.1.1` | `1.2.0` |
| [std-next](https://github.com/Nugine/std-next) | `0.1.8` | `0.1.9` |
| [temp-env](https://github.com/vmx/temp-env) | `0.2.0` | `0.3.6` |


Updates `aws-sdk-s3` from 1.91.0 to 1.94.0
- [Release notes](https://github.com/awslabs/aws-sdk-rust/releases)
- [Commits](https://github.com/awslabs/aws-sdk-rust/commits)

Updates `cfg-if` from 1.0.0 to 1.0.1
- [Release notes](https://github.com/rust-lang/cfg-if/releases)
- [Changelog](https://github.com/rust-lang/cfg-if/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/cfg-if/compare/1.0.0...v1.0.1)

Updates `flexi_logger` from 0.31.1 to 0.31.2
- [Release notes](https://github.com/emabee/flexi_logger/releases)
- [Changelog](https://github.com/emabee/flexi_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/emabee/flexi_logger/commits)

Updates `reqwest` from 0.12.20 to 0.12.21
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/commits)

Updates `shadow-rs` from 1.1.1 to 1.2.0
- [Release notes](https://github.com/baoyachi/shadow-rs/releases)
- [Commits](https://github.com/baoyachi/shadow-rs/compare/v1.1.1...v1.2.0)

Updates `std-next` from 0.1.8 to 0.1.9
- [Release notes](https://github.com/Nugine/std-next/releases)
- [Commits](https://github.com/Nugine/std-next/compare/v0.1.8...v0.1.9)

Updates `temp-env` from 0.2.0 to 0.3.6
- [Changelog](https://github.com/vmx/temp-env/blob/main/RELEASE.md)
- [Commits](https://github.com/vmx/temp-env/compare/v0.2.0...v0.3.6)

---
updated-dependencies:
- dependency-name: aws-sdk-s3
  dependency-version: 1.94.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: cfg-if
  dependency-version: 1.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: flexi_logger
  dependency-version: 0.31.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: reqwest
  dependency-version: 0.12.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: shadow-rs
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: std-next
  dependency-version: 0.1.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: temp-env
  dependency-version: 0.3.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-01 08:50:46 +00:00
weisd c8868a47d7 fix: resolve Send trait issue in ImportBucketMetadata async function 2025-07-01 16:41:24 +08:00
weisd 9d74f56f57 feat: add ExportBucketMetadata handler 2025-07-01 15:23:53 +08:00
weisd cc440f23a3 fix: clippy 2025-07-01 13:13:26 +08:00
weisd ddf19b3444 fix: fmt 2025-07-01 13:05:33 +08:00
houseme 18a3902d2c feat(admin): enhance notification event handlers (#530)
* add log

* add logs

* test

* cargo fmt

* add event admin api

* feat: add ImportIam handle

* refact bucket replication

* Update ecstore/src/disk/endpoint.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: weisd <weishidavip@163.com>
Co-authored-by: lygn128 <lygn128@163.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-01 12:34:24 +08:00
laoliu 024f9512be Merge pull request #529 from rustfs/refact-bucket-replication
refact bucket replication
2025-07-01 12:09:19 +08:00
lygn128 f62db65a39 refact bucket replication 2025-07-01 04:08:02 +00:00