neuron-auth-k8s 0.4.0

Stub Kubernetes ServiceAccount projected token auth provider
Documentation

neuron-auth-k8s

Kubernetes ServiceAccount projected token auth provider for neuron (stub)

crates.io docs.rs license

Overview

neuron-auth-k8s will implement AuthProvider using a Kubernetes projected ServiceAccount token. When running inside a Pod, the kubelet mounts a short-lived OIDC token at a known path; this provider reads it and refreshes it automatically before expiry.

Status: stub. The trait implementation and config types are defined; the token refresh integration is in progress. The interface is stable.

Usage

[dependencies]
neuron-auth-k8s = "0.4"
neuron-auth = "0.4"
use neuron_auth_k8s::K8sTokenAuthProvider;
use neuron_auth::AuthProvider;
use std::sync::Arc;

// Token path matches your Pod's projected volume mount
let auth: Arc<dyn AuthProvider> = Arc::new(
    K8sTokenAuthProvider::new("/var/run/secrets/tokens/vault")
);

Part of the neuron workspace

neuron is a composable async agentic AI framework for Rust. See the book for architecture and guides.