Skip to content

LangfuseProject ​

langfuseprojects.langfuse.palena.ai/v1alpha1

Manages a Langfuse project and its API keys via the Admin API.

Spec ​

FieldTypeDescription
instanceRefObjectReferenceReference to the parent LangfuseInstance
organizationRefObjectReferenceReference to the parent LangfuseOrganization CR
projectNamestringProject name in Langfuse
apiKeys[]APIKeySpecAPI keys to create and manage

APIKeySpec ​

FieldTypeDescription
namestringLogical name of the API key
secretNamestringKubernetes Secret name to store the key pair

Status ​

FieldTypeDescription
readyboolWhether the project is fully synced
projectIdstringLangfuse internal project ID
organizationIdstringLangfuse internal organization ID
apiKeys[]APIKeyStatusStatus of each managed API key
conditions[]ConditionStandard Kubernetes conditions

APIKeyStatus ​

FieldTypeDescription
namestringLogical name
secretNamestringKubernetes Secret name
createdboolWhether the key has been created
lastRotated*TimeLast rotation timestamp

Conditions ​

TypeDescription
ReadyProject exists and is synced
SyncedSpec matches Langfuse state
APIKeysReadyAll API keys are created and valid

Finalizer ​

langfuse.palena.ai/project-cleanup

On deletion:

  1. Revokes all API keys via the Admin API
  2. Deletes associated Kubernetes Secrets
  3. Optionally deletes the project (annotation langfuse.palena.ai/delete-on-remove: "true")
  4. Removes the finalizer

API Key Secret Format ​

Each API key entry creates a Secret:

yaml
apiVersion: v1
kind: Secret
metadata:
  name: langfuse-ml-team-keys
  labels:
    app.kubernetes.io/managed-by: langfuse-operator
    langfuse.palena.ai/instance: production
    langfuse.palena.ai/project: ml-team-prod
type: Opaque
data:
  publicKey: <base64>      # pk-lf-...
  secretKey: <base64>      # sk-lf-...
  host: <base64>           # https://langfuse.example.com

Example ​

yaml
apiVersion: langfuse.palena.ai/v1alpha1
kind: LangfuseProject
metadata:
  name: ml-team-prod
  namespace: langfuse
spec:
  instanceRef:
    name: production
  organizationRef:
    name: ml-platform
  projectName: "prod-inference"
  apiKeys:
    - name: default
      secretName: langfuse-ml-team-keys
    - name: ci-pipeline
      secretName: langfuse-ci-keys
NAME           READY   PROJECT ID     AGE
ml-team-prod   true    proj_xyz789    2d

Released under the Apache 2.0 License.