Back to Trending
RepositoryGo
k8spin

k8spin/loki-multi-tenant-proxy

Grafana Loki multi-tenant Proxy. Needed to deploy Grafana Loki in a multi-tenant way

69stars
21forks
1issues
2views

🔐 Proxy đa tenant cho Grafana Loki — Giải pháp xác thực và phân tách tenant đơn giản

Một proxy Golang nhẹ, thực hiện xác thực cơ bản, ghi log và đóng vai trò reverse proxy cho Grafana Loki.

Dự án loki-multi-tenant-proxy được phát triển để hỗ trợ triển khai Grafana Loki theo mô hình đa tenant. Theo mặc định, Loki không kiểm tra xác thực yêu cầu và dựa vào header X-Scope-OrgID để phân biệt tenant. Điều này đặt ra rủi ro nếu tenant không đáng tin cậy truy cập sai dữ liệu. Proxy này giải quyết vấn đề bằng cách thêm lớp xác thực và gán đúng OrgID cho từng người dùng.

✨ Điểm nổi bật

  • Xác thực cơ bản: Hỗ trợ xác thực bằng username/password qua cấu hình YAML.
  • Gán tenant tự động: Mỗi người dùng được liên kết với một OrgID (tenant) cụ thể.
  • Reverse proxy: Chuyển tiếp yêu cầu tới server Loki sau khi xác thực thành công.
  • Hỗ trợ nhiều người dùng: Một tenant có thể chứa nhiều người dùng.
  • Tích hợp Promtail: Cấu hình Promtail trỏ trực tiếp đến proxy thay vì server Loki gốc.
  • Chạy bằng Docker: Hỗ trợ build và chạy container dễ dàng.

💡 Vì sao đáng chú ý

Thay vì phải cấu hình phức tạp cho từng tenant trong Loki, proxy này đơn giản hóa quá trình bằng cách xác thực trước khi tiếp nhận dữ liệu. Điều này giúp tránh lỗi nhầm lẫn tenant và tăng tính bảo mật khi triển khai Loki trong môi trường đa tổ chức hoặc đa dự án.


#Loki #Grafana #MultiTenant #Proxy #Kubernetes #TiniX

Similar Projects

Discover other similar projects and AI models.

Repository
voidquark/grafana-dashboards

Grafana Dashboards Collection

91
May 28, 2025
RepositoryShell
testdasi/grafana-unraid-stack

Meet Gus! He has everything you need to start monitoring Unraid (Grafana - Influxdb - Telegraf - Loki - Promtail).

90
Apr 24, 2025
RepositoryGo
grafana/loki

Like Prometheus, but for logs.

29.2k
Nov 16, 2026
RepositoryGo
grafana/alloy

OpenTelemetry Collector distribution with programmable pipelines

3.7k
Nov 17, 2026
RepositoryGo
VictoriaMetrics/VictoriaLogs

Fast and easy to use database for logs, which can efficiently handle terabytes of logs

2.5k
Nov 16, 2026
RepositoryGo
grafana-cold-storage/agent

Vendor-neutral programmable observability pipelines.

1.8k
Jul 27, 2026
RepositoryGo
metrico/gigapipe

⭐️ The Open-Source Polyglot Observability Warehouse: Light, Fast, Cloud Native, Drop-in Grafana LGTMP alternative :rocket: Indie All-in-One Opentelemetry, Loki, Prometheus, Tempo, Pyroscope On-Prem Alternative :star:

1.7k
Nov 18, 2026
RepositoryGo
kubernetes/kubernetes

Production-Grade Container Scheduling and Management

129.4k
Nov 21, 2026
Repository
milanm/DevOps-Roadmap

DevOps Roadmap for 2026. with learning resources

21.0k
Nov 2, 2026