forked from ncecere/terraform-provider-litellm
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Problem
The litellm_key resource stores the generated API key in plaintext in Terraform state. This is a security concern as state files may be stored in backends (S3,
Terraform Cloud, etc.) where exposure risk exists, even with encryption at rest.
Desired Behavior
The API key should not be persisted to Terraform state while still being usable during the apply phase (e.g., to write to a secrets manager).
Possible Approaches
- Write-only attributes (Terraform 1.11+) - Mark key as write-only so it's available during apply but never stored
- Ephemeral resource (Terraform 1.10+) - Provide an ephemeral variant of the key resource
- Direct secrets manager integration - Option to write the key directly to AWS SSM/Secrets Manager rather than exposing it as an attribute
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels