diff --git a/MinIO Quota Enforcement Script - minio_quota_checker.py.-.md b/MinIO Quota Enforcement Script - minio_quota_checker.py.-.md index da4688a..8691dc2 100644 --- a/MinIO Quota Enforcement Script - minio_quota_checker.py.-.md +++ b/MinIO Quota Enforcement Script - minio_quota_checker.py.-.md @@ -2,6 +2,8 @@ This script monitors and enforces user-based storage quotas on a MinIO object storage instance. It periodically aggregates disk usage per user, logs warnings for overages, and sets a Redis key when a user exceeds their quota. +**Important:** This script assumes that MinIO buckets are named in the format `username-bucketname`, where `username` is the user associated with the bucket. + ## Features - Fetches MinIO buckets and groups them by user. - Calculates total storage usage for each user. @@ -62,4 +64,4 @@ Other services (e.g., Nginx or an API gateway) can check Redis for quota exceeda The script handles `SIGINT` and `SIGTERM` signals to allow a clean exit. ## License -This script is provided as-is under an open-source license. \ No newline at end of file +This script is provided under the **Creative Commons Attribution-NonCommercial 4.0 International** license. \ No newline at end of file