Commit Graph
100 Commits
Author SHA1 Message Date
chrislu f517bc39fc test: fix nil pointer dereference and add debugging to pagination stress tests 2025-12-15 23:16:01 -08:00
chrislu 8236df1368 ci: enable pagination stress tests in GitHub CI
Add pagination stress tests (>1000 versions) to the S3 versioning stress
test job in GitHub CI. These tests run on master branch pushes to validate
that ListObjectVersions correctly handles objects with more than 1000
versions using pagination.
2025-12-15 23:11:24 -08:00
chrislu 0972a0acf3 test: add pagination stress tests for S3 versioning with >1000 versions 2025-12-15 23:06:57 -08:00
chrislu 44cd07f835 Update cluster_ec_volumes_templ.go 2025-12-15 20:51:27 -08:00
chrislu bcce8d164c 4.03 2025-12-15 01:06:55 -08:00
chrislu 8bdc4390a0 Update constants.go 2025-12-14 16:16:55 -08:00
chrislu f734b2d4bf Refactor: Extract common IAM logic into shared weed/iam package (#7747)
This resolves GitHub issue #7747 by extracting duplicated IAM code into
a shared package that both the embedded S3 IAM and standalone IAM use.

New shared package (weed/iam/):
- constants.go: Common constants (charsets, action strings, error messages)
- helpers.go: Shared helper functions (Hash, GenerateRandomString,
  GenerateAccessKeyId, GenerateSecretAccessKey, StringSlicesEqual,
  MapToStatementAction, MapToIdentitiesAction, MaskAccessKey)
- responses.go: Common IAM response structs (CommonResponse, ListUsersResponse,
  CreateUserResponse, etc.)
- helpers_test.go: Unit tests for shared helpers

Updated files:
- weed/s3api/s3api_embedded_iam.go: Use type aliases and function wrappers
  to the shared package, removing ~200 lines of duplicated code
- weed/iamapi/iamapi_management_handlers.go: Use shared package for constants
  and helper functions, removing ~100 lines of duplicated code
- weed/iamapi/iamapi_response.go: Re-export types from shared package for
  backwards compatibility

Benefits:
- Single source of truth for IAM constants and helpers
- Easier maintenance - changes only need to be made in one place
- Reduced risk of inconsistencies between embedded and standalone IAM
- Better test coverage through shared test suite
2025-12-14 16:08:56 -08:00
chrislu 1ee03b6411 fmt 2025-12-10 20:54:42 -08:00
chrislu 2188d1ccc5 fix object name 2025-12-10 12:50:48 -08:00
chrislu 1856eaca03 Update notification.toml 2025-12-08 11:09:59 -08:00
chrislu 95f6a2bc13 Added a complete webhook configuration example 2025-12-08 11:03:41 -08:00
chrislu 805950b401 4.02 2025-12-08 01:38:16 -08:00
chrislu e28629bb5f reduce minFreeSpacePercent to 1
addressing https://github.com/seaweedfs/seaweedfs/issues/7110#issuecomment-3622472545
2025-12-08 01:34:53 -08:00
chrislu dcc200fec0 Remove allowEmptyFolder from s3tests.yml workflow 2025-12-06 21:59:00 -08:00
chrislu 5167bbd2a9 Remove deprecated allowEmptyFolder CLI option
The allowEmptyFolder option is no longer functional because:
1. The code that used it was already commented out
2. Empty folder cleanup is now handled asynchronously by EmptyFolderCleaner

The CLI flags are kept for backward compatibility but marked as deprecated
and ignored. This removes:
- S3ApiServerOption.AllowEmptyFolder field
- The actual usage in s3api_object_handlers_list.go
- Helm chart values and template references
- References in test Makefiles and docker-compose files
2025-12-06 21:54:12 -08:00
chrislu 5dd2d44858 Update README.md 2025-12-05 19:52:43 -08:00
chrislu 8d110b29dd fmt 2025-12-04 10:40:01 -08:00
Chris Lu 1a67e6118e Set S3_ENDPOINT environment variable in CI workflow for tagging tests 2025-12-01 16:39:22 -08:00
Chris Lu 208d008fe3 Fix tagging test pattern to run our comprehensive tests instead of basic tests 2025-12-01 16:34:13 -08:00
Chris Lu ec41795594 Update s3-tagging-tests to use Makefile server management like other S3 tests 2025-12-01 16:22:51 -08:00
Chris Lu 5d50baad5a Fix port conflict in s3-tagging-tests CI job by changing volume port from 8084 to 8085 2025-12-01 16:16:01 -08:00
Chris Lu 60487e75f3 Fix port conflict in s3-tagging-tests CI job by changing volume port from 8084 to 8085 2025-12-01 16:08:48 -08:00
Chris Lu 1eafaecd70 Add comment to s3-tagging-tests job to trigger CI re-run 2025-12-01 15:47:19 -08:00
Chris Lu 310be2aece Fix CI workflow: remove cd weed since working directory is already set to weed 2025-12-01 15:43:32 -08:00
Chris Lu a33e5a9e6a Add S3 object tagging tests to CI workflow
- Modified test/s3/tagging/s3_tagging_test.go to use environment variables for configurable endpoint and credentials
- Added s3-tagging-tests job to .github/workflows/s3-go-tests.yml to run tagging tests in CI
- Tests will now run automatically on pull requests
2025-12-01 15:40:06 -08:00
Chris Lu 8c585a9682 Fix S3 object tagging issue #7589
- Add X-Amz-Tagging header parsing in putToFiler function for PUT object operations
- Store tags with X-Amz-Tagging- prefix in entry.Extended metadata
- Add comprehensive test suite for S3 object tagging functionality
- Tests cover upload tagging, API operations, special characters, and edge cases
2025-12-01 15:21:30 -08:00
chrislu 626954b76c unified builds 2025-11-27 23:13:51 -08:00
chrislu 755b1b55ff reduce dockerhub operations 2025-11-27 23:04:32 -08:00
chrislu 5734223b2b fix git checkout 2025-11-27 22:50:38 -08:00
chrislu 0064e37206 fix build issues 2025-11-27 22:50:29 -08:00
chrislu 487c0f92a9 fmt 2025-11-27 22:44:35 -08:00
Chris Lu 49f6edc001 build use https://mirror.gcr.io 2025-11-27 16:07:54 -08:00
Chris Lu 8102fb5642 Add Docker Hub registry mirror to avoid rate limits 2025-11-27 15:58:23 -08:00
Chris Lu 76b9611881 fix nil map 2025-11-27 15:06:37 -08:00
Chris Lu 50fb79be2b Merge branch 'master' of https://github.com/seaweedfs/seaweedfs 2025-11-27 14:50:49 -08:00
Chris Lu 3c1914532f re-organize github actions 2025-11-27 14:50:45 -08:00
Chris Lu 75d593d7fa use .Values.global.certificates instead
certificates ca
2025-11-27 14:20:09 -08:00
Chris Lu f00cd38393 certificates ca 2025-11-27 14:17:37 -08:00
Chris Lu 3ae05b072a use .Values.global.certificates instead 2025-11-27 14:03:30 -08:00
Chris Lu 0e385122b5 Add free disk space step to container build workflows to prevent 'No space left on device' errors
free space
2025-11-27 13:35:56 -08:00
Chris Lu 7e15a4abe2 4.01 2025-11-27 11:39:05 -08:00
Chris Lu 865fc88b3b java 4.00 2025-11-26 18:22:32 -08:00
chrislu 76f1a23fec fix docker login 2025-11-25 19:35:07 -08:00
chrislu 3f1a34d8d7 doc 2025-11-25 11:59:36 -08:00
chrislu a77dfb1ddd add debugging for InvalidAccessKeyId 2025-11-21 15:33:38 -08:00
chrislu 03c9649583 read inside filer 2025-11-21 15:13:52 -08:00
chrislu 99a9a67741 check errors 2025-11-21 14:48:41 -08:00
chrislu aef5121c36 faster master startup 2025-11-18 12:06:56 -08:00
chrislu e154bfe163 minor 2025-11-13 17:36:54 -08:00
chrislu 5b9a526310 adjust comment 2025-11-12 23:49:42 -08:00
chrislu 6201cd099e fix help messages 2025-11-10 17:31:11 -08:00
chrislu cc444b1868 muted texts 2025-11-04 22:17:21 -08:00
chrislu ca8cd631ff Update admin.css 2025-11-04 22:11:19 -08:00
chrislu 82f2c3757f muted admin UI color 2025-11-04 22:09:32 -08:00
chrislu f4f2718ba0 adjust test 2025-11-03 16:22:20 -08:00
chrislu a154ef9a0f 4.00 2025-11-03 13:39:39 -08:00
chrislu 43cdd22133 4.00 2025-11-03 09:35:32 -08:00
chrislu 20a2e672d2 4.00 2025-11-02 22:08:38 -08:00
chrislu b2fd31c08b fix volume utilization icon rendering 2025-11-01 13:42:25 -07:00
chrislu c56a0a0ebd fix: handle 'default' collection filter in cluster volumes page
- Update matchesCollection to recognize 'default' as filter for empty collection
- Remove incorrect conversion of 'default' to empty string in handlers
- Fixes issue where ?collection=default would show all collections instead of just default collection
2025-11-01 13:08:29 -07:00
chrislu fb46a8a61f adjust volume server link 2025-11-01 12:40:32 -07:00
chrislu 58acc14d2c avoid unnecessary fail fast
fix https://github.com/seaweedfs/seaweedfs/issues/7417
2025-10-31 12:49:04 -07:00
chrislu f00ae727b7 detect ipv6 2025-10-31 11:58:10 -07:00
chrislu f5a57a6463 fixed superfluous response.WriteHeader call" warning 2025-10-30 16:13:54 -07:00
chrislu a6da3eb770 server can start when no network for local dev 2025-10-30 16:13:54 -07:00
chrislu ed023f4a7d purge emojis 2025-10-29 10:40:03 -07:00
chrislu b7ba6785a2 go fmt 2025-10-27 23:04:55 -07:00
chrislu decfb07eea fix nil 2025-10-27 17:33:10 -07:00
chrislu f82c69b9a5 revert back s3 in helm chart to false
fix https://github.com/seaweedfs/seaweedfs/issues/7375
2025-10-27 17:23:31 -07:00
chrislu a80b5eea5e 3.99 2025-10-27 17:16:28 -07:00
chrislu 290c245095 go mod tidy 2025-10-27 09:24:20 -07:00
chrislu 4b76b2ad3c fix lint 2025-10-26 23:20:20 -07:00
chrislu 838e3104c4 3.99 2025-10-26 22:51:45 -07:00
chrislu 2ad2ffcdff fix comment 2025-10-26 22:50:37 -07:00
chrislu d220875ef4 Revert "fix reading"
This reverts commit 64a4ce9358.
2025-10-24 00:49:14 -07:00
chrislu 64a4ce9358 fix reading
Gap detection and skipping to earliest memory time
Time-based reads that include events at boundary times for first reads (offset ≤ 0)
Aggregated subscriber wake-up via ListenersWaits signaling
2025-10-24 00:48:24 -07:00
chrislu cb9a662e20 Update volume_growth_reservation_test.go 2025-10-22 23:37:19 -07:00
chrislu 30e8133524 Update volume_growth_reservation_test.go 2025-10-22 21:30:13 -07:00
Chris Lu ad46d80f49 go mod tidy 2025-10-21 12:23:01 -07:00
Chris Lu d1603d0a6f Merge branch 'master' of https://github.com/seaweedfs/seaweedfs 2025-10-21 12:16:38 -07:00
Chris Lu 9b7ed67311 Switch to seaweedfs/cockroachdb-parser directly
Removed the replace directive and updated all references to use
github.com/seaweedfs/cockroachdb-parser directly instead of redirecting
from github.com/cockroachdb/cockroachdb-parser.

Changes:
- Updated import in weed/query/engine/cockroach_parser.go
- Removed replace directive from go.mod
- Now using seaweedfs/cockroachdb-parser@909763b171
  which includes all 32-bit architecture fixes and uses
  seaweedfs namespace throughout

Build verified successfully for GOOS=openbsd GOARCH=arm.
2025-10-21 11:43:22 -07:00
Chris Lu 986e3fe12e Update cockroachdb-parser to fix 32-bit builds
Use seaweedfs/cockroachdb-parser v0.0.0-20251021182748-d0c58c67297e
via replace directive to fix building on 32-bit architectures like OpenBSD ARM.

The replace directive ensures all imports of github.com/cockroachdb/cockroachdb-parser
use the seaweedfs fork which includes fixes for:
- Integer overflow in tsearch evaluation (int -> int64)
- Flag type overflow in lexbase and tree packages (int -> int64)
2025-10-21 11:33:26 -07:00
Chris Lu 76520583c6 Update cockroachdb-parser to fix 32-bit builds
Updated to seaweedfs/cockroachdb-parser v0.0.0-20251021182748-d0c58c67297e
which includes fixes for building on 32-bit architectures like OpenBSD ARM.

Fixes:
- Integer overflow in tsearch evaluation (int -> int64)
- Flag type overflow in lexbase and tree packages (int -> int64)
2025-10-21 11:28:57 -07:00
Chris Lu 8c6e109657 update cockroachdb-parser due to build issues 2025-10-21 01:14:45 -07:00
Chris Lu d3095f0c2a 3.98 2025-10-20 23:47:11 -07:00
Chris Lu d989971f3e Merge branch 'master' of https://github.com/seaweedfs/seaweedfs 2025-10-20 22:22:15 -07:00
Chris Lu 479e7bc38b go install github.com/a-h/templ/cmd/templ@latest 2025-10-20 22:22:12 -07:00
chrislu c547cd7c18 fix tests 2025-10-20 16:13:48 -07:00
chrislu ffc45a538d Added bounds checking after calculating startIdx.
Problem: Race condition in cache lookup logic:
Thread A reads cache metadata (17+ records, endOffset = 32)
Thread B modifies/truncates the cache to 17 records
Thread A calculates startIdx = 19 based on old metadata
Slice operation consumedRecords[19:17] panics
2025-10-13 21:19:38 -07:00
chrislu f15eaaf8b9 nil checking 2025-10-13 21:07:48 -07:00
chrislu fba4fc3a7d All consumers share the same group for load balancing across partitions 2025-10-13 19:43:09 -07:00
Chris Lu 2b1cfe3c3b add on demand build 2025-09-16 23:45:00 -07:00
Chris Lu f9f2609e63 Fix RocksDB docker build 2025-09-16 23:22:40 -07:00
chrislu b3a401d9f9 setting the nodeSelector defaults to empty for all components, so pods can schedule on any compatible node architecture.
fix https://github.com/seaweedfs/seaweedfs/issues/7215
2025-09-09 08:07:37 -07:00
chrislu 76452ab593 Delete test_utils_test.go 2025-08-31 23:31:28 -07:00
chrislu 4569875a49 3.97 2025-08-31 23:23:02 -07:00
chrislu 879d512b55 rename 2025-08-30 11:16:26 -07:00
chrislu 6d265cc74b ensure correct next pointer 2025-08-15 10:35:33 -07:00
chrislu 62ed2366f3 skip file with invalid format 2025-08-15 10:35:33 -07:00
chrislu 8eb85415fb correct error 2025-08-15 10:35:33 -07:00