You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Means is a self-deployable S3-compatible object storage service built on ASP.NET Core. It uses the custom XlFs storage backend (inspired by MinIO's architecture — multi-disk layout, Cauchy MDS Reed-Solomon erasure coding, object manifest, quorum-based writes, automated repair/rebalance) powered by the self-developed MeansLogDb metadata engine, with built-in IAM/STS, SSE-S3/KMS, Object Lock, quotas, replication, Console RBAC, and structured observability.
This document reflects the current code state of the repository. See docs/README.md for the full documentation index.
POST /sts (AssumeRole, GetSessionToken, x-amz-security-token) and SigV4-authenticated /api/iam/... REST API for users, roles, managed policies, tenants, and RotateAccessKey
Multi-Tenancy
Per-tenant isolation across IAM identities, access keys, STS sessions, and buckets (means:tenant condition key)
Server-Side Encryption
Streaming chunked AES-256-GCM envelope encryption (SSE-S3 / SSE-KMS) with configurable MasterKeyBase64, named KmsKeys, and HKDF-SHA256 key derivation
SHA-256 hash-chained audit trail with online verification (GET /api/console/audit/verify) and optional append-only NDJSON sink (AuditLogFilePath)
Erasure Coding & Rebalance
Cauchy MDS Reed-Solomon erasure coding for PutObject and UploadPart, degraded read reconstruction, automated shard repair, and placement-driven rebalance
Structured Logging
Means:Logging:Format=Json with request scopes (RequestId, TraceId, ClientIp, S3Operation, S3Bucket, S3Key)
Key Implementation Details
Address Resolution: Supports both path-style and virtual-hosted-style S3 addressing, plus same-origin /s3 alias.
Response Format: Unified S3-compatible XML (listings, errors, copy results).
Range Reads:Range header → 206 Partial Content; invalid ranges → 416 InvalidRange with Content-Range header (works transparently on SSE-encrypted objects).
Compression: Content-negotiated (br / gzip) streaming compression on responses; disabled for Range requests.
Atomic Writes:PutObject is atomic — objects become visible only after the metadata transaction commits.
Multipart Rules:
partNumber: 1–10000
Minimum part size (except last): 5 MiB
Final ETag: md5(concat(part-md5-bytes))-part-count
Means:RequestLimits:MaxUploadSizeBytes applies per-part, not total assembled size.
Concurrency Control: S3 PUT and multipart UploadPart share a global concurrency limit (default: 64). Exceeding returns 503 SlowDown with Retry-After: 1.
Checksum Verification: Disabled by default on reads to avoid double I/O for large objects. Enable via VerifyChecksumOnRead. Background scrub always checksums and enqueues repairs.
Console Management Plane
Built-in management API (/api/console, JSON) and web dashboard (React):
Feature
Endpoint / Details
Authentication & RBAC
Cookie-based login/logout/session check with 4 built-in roles (Admin, Operator, Auditor, ReadOnly), supporting Means:Console:Users and IAM console accounts
Fixed-window limits for Console login, Console API, and S3 data plane
Current Boundaries
Milestones M1–M6 are implemented; the remaining boundaries are:
🚧 M7 S3 Compatibility Matrix — Continuous client verification across AWS CLI, boto3, aws-sdk-js v3, rclone, mc, and s3fs-fuse (scripts/compatibility/run-s3-client-matrix.ps1)
🔲 Shared Distributed Metadata Namespace — MeansLogDb is currently a node-local WAL/snapshot store (metadata.sharedNamespace=false); do not load-balance active-active S3 writes across independent nodes
🔲 Bucket Notification Delivery Worker — ?notification configuration CRUD is implemented; outbound webhook/queue event delivery is reserved
Quick Start
1) Prerequisites
Dependency
Version
Notes
.NET SDK
10.0
Required for building and running
Node.js
20+
Only needed for frontend development
2) Start the Service
# Restore dependencies
dotnet restore Means.slnx
# Build the solution
dotnet build Means.slnx
# Run with the 'http' launch profile
dotnet run --project src/Means/Means.csproj --launch-profile http
The development server starts at http://localhost:5178.
2.1) Docker Compose
Single-node (default XlFs):
docker compose up -d --build
Access: http://localhost:5178
Default credentials (override via .env or environment variables for production):
Console: meansadmin / meansadmin-local
S3: meansadmin / meansadmin-local-secret
Multi-node (experimental):
docker compose -f compose.multinode.yaml up -d --build
Node
Address
means-node1
http://localhost:5181
means-node2
http://localhost:5182
means-node3
http://localhost:5183
⚠️ Important: The multi-node setup is for topology and operations page validation only. Each node has an independent XlFs namespace. Do not place a data-plane load balancer in front of these nodes until distributed metadata/RPC is implemented.
3) Access the Console
Open http://localhost:5178 and sign in with the default development credentials:
Field
Value
Username
admin
Password
meansadmin
4) Local S3 Access Methods
Same-origin alias (development):
http://localhost:5178/s3/{bucket}/{key}
Standard host styles (requires DNS/hosts configuration):
Style
URL Pattern
Path-style
http(s)://api.means.local/{bucket}/{key}
Virtual-hosted-style
http(s)://{bucket}.means.local/{key}
Configuration Reference
All configuration is in src/Means/appsettings.json under the Means section. See docs/reference/configuration.md for the complete reference.
S3 Settings
Key
Default
Description
Means:S3:ServiceHost
api.means.local
Path-style hostname
Means:S3:DomainSuffix
means.local
Virtual-hosted-style domain suffix
Means:S3:AliasPrefix
/s3
Same-origin S3 alias prefix
Means:S3:Region
us-east-1
Region reported by GetBucketLocation and x-amz-bucket-region
Storage & Replication Settings
Key
Default
Description
Means:Storage:ObjectsPath
data/objects
Single-disk directory (when Disks not configured)
Means:Storage:Disks
/data/xlfs/disk1...
XlFs multi-disk root directories; each gets .means.sys/format.json
Means:Storage:ErasureDataShards
2
Cauchy MDS Reed-Solomon data shards; used when online disks satisfy data+parity
Means:Storage:ErasureParityShards
2
Cauchy MDS Reed-Solomon parity shards; falls back to full-copy quorum when insufficient disks
Means:Storage:WriteQuorum
3
Minimum disks required for write success
Means:Storage:ReadQuorum
1
Minimum disks required for read success
Means:Storage:MetaSyncMode
Always
Metadata WAL flush strategy
Means:Storage:VerifyChecksumOnRead
false
Synchronous SHA256 verification on read (adds full I/O)
Means:Storage:DefaultAccessKey
meansadmin
Default S3 access key
Means:Storage:DefaultSecretKey
meansadminsecret
Default S3 secret key
Means:Storage:AuditLogFilePath
(empty)
Optional append-only NDJSON file sink for SHA-256 hash-chained audit entries
Means:Storage:MultipartUploadCleanupAgeHours
24
Age threshold for incomplete multipart upload cleanup
Artificial delay applied to failed credential checks
Network (reverse proxy)
Key
Default
Description
Means:Network:TrustedProxies
(empty)
Proxy IP addresses allowed to supply X-Forwarded-* headers
Means:Network:TrustedNetworks
(empty)
CIDR ranges allowed to supply X-Forwarded-* headers
Means:Network:TrustAllProxies
false
Trust all forwarded headers; only enable behind an edge proxy that overwrites them
X-Forwarded-For/X-Forwarded-Host/X-Forwarded-Proto are ignored unless at least one trusted proxy or network is configured. This prevents clients from spoofing their source address to bypass login rate limits and lockouts. Set Means:Network:TrustAllProxies=true only when a trusted edge proxy always overwrites the headers.
Important Notes
Production security: The service refuses to start if default console credentials are detected, if the password is shorter than 12 characters, or if the password equals the user name. Always replace AdminUser/AdminPassword and DefaultAccessKey/DefaultSecretKey for production.
Login brute-force protection: The console login combines per-IP and per-user sliding-window lockouts with exponential backoff, constant-time credential comparison, and a security stamp that invalidates sessions when the password changes. Lockout counters are process-local, so multi-node deployments should also throttle at the edge.
Multipart cleanup: Background tasks automatically clean up incomplete upload metadata and part files. Frontend cancellation best-effort calls abort, but disk reclamation does not depend on browser request success.
Read verification: SHA256 verification is off by default on reads. Enable VerifyChecksumOnRead for strong verification. Background scrub always checksums.
Rate limiting responses: Console → JSON SlowDown; S3 → XML SlowDown; both include Retry-After header.
Prometheus: Scrape /metrics. Recommended alerting rules in docs/operations/deployment-observability.md.
OpenTelemetry: Disabled by default. Set Means:Telemetry:Enabled=true to collect ASP.NET Core and background task spans. Configure OtlpEndpoint for collector export.