Secure, lightweight log collector with JWT auth and Loki integration. 🚀
4.2K
Collector Front-end Instrumentation is a lightweight and secure microservice built in Go, designed for efficient log collection and processing. It provides robust authentication and authorization mechanisms using JWT (JSON Web Tokens) to ensure data integrity and access control. This service is optimized for performance and scalability, making it an ideal choice for observability stacks.
role, iss) and optional expiration (exp) validation.admin, user) for fine-grained security.Pull the Docker Image
docker pull your-username/collector-faro-logs-go
Run the Container
docker run -d \
-e SECRET_KEY="your-secret-key" \
-e JWT_ISSUER="trusted-issuer" \
-e JWT_VALIDATE_EXP="true" \
-e LOKI_URL="https://your-loki-url/loki/api/v1/push" \
-e LOKI_TENANT_ID="your-tenant-id" \
-e LOKI_API_TOKEN="your-loki-api-token" \
-e ALLOW_ORIGINS="*" \
-p 8080:8080 \
your-username/collector-faro-logs-go
Access the API Use your API client to send authenticated requests with JWT tokens to the exposed endpoint.
SECRET_KEY: The key used to sign and validate JWTs (minimum 32 characters).JWT_ISSUER: The expected token issuer.JWT_VALIDATE_EXP: Enables or disables token expiration validation (true or false).LOKI_URL: The URL of the Loki endpoint for log forwarding.LOKI_TENANT_ID: The tenant ID used for multi-tenant log forwarding in Loki.LOKI_API_TOKEN: The API token for authentication with Loki.ALLOW_ORIGINS: Specifies allowed origins for cross-origin resource sharing (CORS).Contributions are welcome! Check out the repository and submit a pull request to improve the project.
This project is licensed under the Apache 2.0 License.
Content type
Image
Digest
sha256:68f9f95b2…
Size
10.1 MB
Last updated
2 months ago
docker pull elvenobservability/collector-fe-instrumentation