v1.0.0 · Live · Open source
Object storage from Cali, S3-compatible.
Single-node object storage, open and secure by default: data that survives crashes, verified with SHA-256 and tested on every change against the AWS SDKs. Uploading a file is ve subi ./file.txt a chuspa://mi-parche/ and done.
- Open-source license
- Apache-2.0
- API
- AWS S3
- Version
- v1.0.0
HTTP 200 OK
Try the CLI in your browser
Type commands and see the response. It is a local simulation; the ve CLI does the same against your engine.
OpenChuspa ve v1.0.0
Type 'help' or try commands like 've mira',
've subi', 've baja'. Use ↑ and ↓ for history.
CLI commands
The usual aws s3 commands, with names from Cali. The ve CLI is tested against the engine on every change; the AWS CLI works too.
- PUT / Upload
ve subi
Uploads one or more local files to a chuspa.
ve subi ./file.txt a chuspa://prod-chuspa-name/test/ - GET / Download
ve baja
Downloads an object from a chuspa to your directory.
ve baja chuspa://prod-chuspa-name/test/file.txt . - MB / Create Bucket
ve crea
Creates a new chuspa.
ve crea chuspa://mi-nueva-chuspa - LS / List
ve mira
Lists chuspas or the contents of one.
ve mira chuspa://prod-chuspa-name/ - RM / Delete
ve borra
Deletes an object, a prefix or an empty chuspa.
ve borra chuspa://prod-chuspa-name/test/file.txt - SYNC / Mirror
ve sincroniza
Syncs a folder with a chuspa, in either direction.
ve sincroniza ./mis-fotos chuspa://backup-chuspa/
Glossary
The names OpenChuspa uses and their AWS S3 equivalent.
- Chuspa
- The container where objects are stored: the equivalent of a bucket.
- Chuchería
- Any file stored in a chuspa, with its key, metadata and checksum.
- Clave del Parchao
- The public identifier of the credential (Access Key ID).
- La Secreta de la Cuadra
- The private part of the credential: at least 32 characters and never in a repository.
- La Esquina
- The address of your engine. Locally: http://localhost:9000.
- Sucursal del Cielo
- The region the engine reports and requires in the signature: cali-san-antonio-1.
- ve
- The OpenChuspa CLI: short commands over chuspa:// addresses.
- Motor Caleño
- The single-node S3 server: crash-safe, verifiable and secure by default.
Build your command
Pick the action and the names, and see the ve command and its AWS CLI equivalent.
AWS CLI equivalent:
S3 SDK integration
Tested in CI with AWS CLI, boto3, @aws-sdk/client-s3 and aws-sdk-go-v2. Point the endpoint at your engine and use your own keys.
import boto3
# Connect to the engine
s3 = boto3.client(
's3',
endpoint_url='http://localhost:9000',
aws_access_key_id='YOUR_ACCESS_KEY',
aws_secret_access_key='YOUR_SECRET_KEY',
region_name='cali-san-antonio-1'
)
# Upload a file to the chuspa (ve subi)
s3.upload_file('./archivo.png', 'prod-chuspa-name', 'test/archivo.png')
print("File stored in the chuspa.")import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
const s3 = new S3Client({
endpoint: "http://localhost:9000",
region: "cali-san-antonio-1",
forcePathStyle: true, // the engine uses path-style addressing: /chuspa/key
credentials: {
accessKeyId: "YOUR_ACCESS_KEY",
secretAccessKey: "YOUR_SECRET_KEY",
},
});
// Upload a file to the chuspa
await s3.send(new PutObjectCommand({
Bucket: "prod-chuspa-name",
Key: "test/musica.mp3",
Body: fileBuffer,
}));
console.log("File stored in the chuspa.");package main
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/service/s3"
)
func main() {
cfg, _ := config.LoadDefaultConfig(context.TODO(),
config.WithRegion("cali-san-antonio-1"),
config.WithCredentialsProvider(
credentials.NewStaticCredentialsProvider(
"YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "",
),
),
)
// Client pointing at the OpenChuspa endpoint
client := s3.NewFromConfig(cfg, func(o *s3.Options) {
o.BaseEndpoint = aws.String("http://localhost:9000")
o.UsePathStyle = true
})
_ = client
fmt.Println("Connected to OpenChuspa.")
}# The secret lives in a file, not in this YAML:
# mkdir -p secrets && openssl rand -hex 24 > secrets/chuspa_root_password
services:
chuspa:
image: openchuspa/chuspa:1.0.0
ports:
- "127.0.0.1:9000:9000"
environment:
CHUSPA_ROOT_USER: "YOUR_ACCESS_KEY"
CHUSPA_ROOT_PASSWORD_FILE: /run/secrets/chuspa_root_password
CHUSPA_REGION: "cali-san-antonio-1"
secrets:
- chuspa_root_password
volumes:
- chuspa_data:/data
read_only: true
cap_drop: ["ALL"]
security_opt: ["no-new-privileges:true"]
secrets:
chuspa_root_password:
file: ./secrets/chuspa_root_password
volumes:
chuspa_data:# Every request is signed: the engine rejects anonymous ones.
# Upload (ve subi)
curl -X PUT -T "./archivo.pdf" \
--aws-sigv4 "aws:amz:cali-san-antonio-1:s3" \
--user "$YOUR_ACCESS_KEY:$YOUR_SECRET_KEY" \
"http://localhost:9000/prod-chuspa-name/test/archivo.pdf"
# Download (ve baja)
curl -O --aws-sigv4 "aws:amz:cali-san-antonio-1:s3" \
--user "$YOUR_ACCESS_KEY:$YOUR_SECRET_KEY" \
"http://localhost:9000/prod-chuspa-name/test/archivo.pdf" Deploy your own engine
Single node, secure by default: it refuses to start without credentials, runs without root and verifies every signature and checksum. The image is on Docker Hub, signed with cosign.
docker run -p 127.0.0.1:9000:9000 -e CHUSPA_ROOT_USER=mi-llave -e CHUSPA_ROOT_PASSWORD="$SECRETO" openchuspa/chuspa:1.0.0