hafiz

Hafiz

Hafiz Logo

Enterprise-grade S3-compatible object storage written in Rust

CI Status Release License


Hafiz (حافظ - “Guardian” in Arabic/Turkish) is a high-performance, S3-compatible object storage system. Built from the ground up in Rust for memory safety, performance, and reliability.

Why Hafiz?

- :material-lightning-bolt:{ .lg .middle } __High Performance__ --- Built in Rust with async I/O for maximum throughput and minimal latency. - :material-shield-lock:{ .lg .middle } __Enterprise Security__ --- AES-256-GCM encryption, Object Lock (WORM), LDAP integration. - :material-scale-balance:{ .lg .middle } __S3 Compatible__ --- Works with AWS SDKs, CLI, and existing S3 tools. - :material-kubernetes:{ .lg .middle } __Cloud Native__ --- Helm chart, Docker images, Prometheus metrics.

Quick Start

=== “Docker”

```bash
docker run -d \
  --name hafiz \
  -p 9000:9000 \
  -p 9001:9001 \
  -v hafiz-data:/data \
  -e HAFIZ_ROOT_ACCESS_KEY=minioadmin \
  -e HAFIZ_ROOT_SECRET_KEY=minioadmin \
  ghcr.io/shellnoq/hafiz:latest
```

=== “Docker Compose”

```bash
git clone https://github.com/shellnoq/hafiz.git
cd hafiz
docker-compose up -d
```

=== “Kubernetes”

```bash
helm repo add hafiz https://shellnoq.github.io/hafiz
helm install hafiz hafiz/hafiz --namespace hafiz --create-namespace
```

=== “Binary”

```bash
curl -LO https://github.com/shellnoq/hafiz/releases/latest/download/hafiz-linux-amd64.tar.gz
tar xzf hafiz-linux-amd64.tar.gz
./hafiz-server
```

Features

Core Storage

Feature Status
Bucket Operations :white_check_mark:
Object Operations :white_check_mark:
Multipart Uploads :white_check_mark:
Versioning :white_check_mark:
Lifecycle Policies :white_check_mark:
Storage Classes :white_check_mark:

Security

Feature Status
AWS Signature V4 :white_check_mark:
Server-Side Encryption :white_check_mark:
Object Lock (WORM) :white_check_mark:
Bucket Policies :white_check_mark:
LDAP Integration :white_check_mark:
TLS :white_check_mark:

Operations

Feature Status
Admin API :white_check_mark:
Prometheus Metrics :white_check_mark:
Event Notifications :white_check_mark:
Access Logging :white_check_mark:
Health Checks :white_check_mark:

Comparison

Feature Hafiz MinIO AWS S3
S3 Compatible :white_check_mark: :white_check_mark: :white_check_mark:
Object Lock :white_check_mark: :white_check_mark: :white_check_mark:
LDAP :white_check_mark: Enterprise :x:
Written in Rust :white_check_mark: :x: Go :x:
License Apache 2.0 AGPL N/A
Self-Hosted :white_check_mark: :white_check_mark: :x:

Getting Help

License

Hafiz is open source under the Apache License 2.0.