New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@llm-dev-ops/llm-config-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@llm-dev-ops/llm-config-api

HTTP API server for configuration management (Rust crate - use via cargo or build from source)

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

llm-config-api

Crates.io Documentation License

REST API server for LLM Config Manager with JWT authentication, RBAC, rate limiting, and comprehensive security features.

Features

  • REST API: Full-featured REST API for configuration management
  • JWT Authentication: Secure token-based authentication
  • RBAC Integration: Role-based access control for all endpoints
  • Rate Limiting: Per-client rate limiting with token bucket
  • CORS Support: Configurable CORS policies
  • OpenAPI Documentation: Auto-generated API documentation
  • Health Checks: Liveness and readiness probes
  • Metrics Export: Prometheus metrics endpoint

Usage

[dependencies]
llm-config-api = "0.5.0"
tokio = { version = "1", features = ["full"] }
use llm_config_api::ApiServer;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let server = ApiServer::builder()
        .bind("0.0.0.0:8080")
        .with_jwt_secret("your-secret-key")
        .build()
        .await?;

    server.run().await?;
    Ok(())
}

API Endpoints

  • POST /api/v1/auth/login - Authenticate and get JWT token
  • GET /api/v1/config/:key - Get configuration value
  • PUT /api/v1/config/:key - Update configuration value
  • DELETE /api/v1/config/:key - Delete configuration
  • GET /api/v1/config/:key/history - Get configuration history
  • GET /health - Health check endpoint
  • GET /metrics - Prometheus metrics

Security Features

  • JWT-based authentication
  • RBAC authorization
  • Rate limiting (100 req/min per client)
  • Input validation
  • Audit logging
  • TLS/HTTPS support

License

Licensed under the Apache License, Version 2.0.

Keywords

rust

FAQs

Package last updated on 21 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts