mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
* feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI * fix(terraform): address review feedback on vendored provider Replace deprecated io/ioutil with io. Remove the unused org/team CRUD client methods so the endpoint audit only tracks live call sites (54 -> 46). Redact request/response logs by parsing the JSON and recursively masking sensitive fields, which fixes the nested-object leak in the old credential_values regex, with a regex fallback for non-JSON payloads; covered by new unit tests. Docs: stop showing api_key inside vector store litellm_params and document that Sensitive attributes still persist in plaintext state, recommending litellm_credential_name and an encrypted state backend. * fix(terraform): stop persisting server-returned litellm_params into vector store state The vector store Read wrote litellm_params straight back from the API response into state. The proxy redacts secrets in those responses, so the readback overwrote user config with redaction sentinels and caused perpetual diffs, and against a server that returns raw values it would persist secrets into a non-Sensitive attribute. Read now preserves the config value like the credential and model resources do, litellm_params is marked Sensitive, and a regression test pins that a server-returned api_key never lands in state * fix(terraform): send role on team member update and stop persisting server env into MCP state The team member update payload omitted role, and the proxy leaves role unchanged when the field is absent, so a role downgrade reported as applied by Terraform never took effect on the proxy. The update now always sends the configured role (the attribute is Required). The MCP server resource wrote env straight back from API responses into a non-Sensitive attribute, pulling admin-visible secrets into state and, for sanitized responses, blanking user config. Read now preserves the config value, env is marked Sensitive, and the docs warn against passing secrets via args. Regression tests cover both fixes and fail against the previous behavior.
81 lines
No EOL
2.4 KiB
YAML
81 lines
No EOL
2.4 KiB
YAML
# Visit https://goreleaser.com for documentation on how to customize this
|
|
# behavior.
|
|
version: 2
|
|
before:
|
|
hooks:
|
|
# this is just an example and not a requirement for provider building/publishing
|
|
- go mod tidy
|
|
builds:
|
|
- env:
|
|
# goreleaser does not work with CGO, it could also complicate
|
|
# usage by users in CI/CD systems like HCP Terraform where
|
|
# they are unable to install libraries.
|
|
- CGO_ENABLED=0
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
|
|
goos:
|
|
- freebsd
|
|
- windows
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- '386'
|
|
- arm
|
|
- arm64
|
|
ignore:
|
|
# macOS doesn't support 32-bit anymore
|
|
- goos: darwin
|
|
goarch: '386'
|
|
# Windows ARM is uncommon for Terraform usage
|
|
- goos: windows
|
|
goarch: arm
|
|
- goos: windows
|
|
goarch: arm64
|
|
# FreeBSD ARM is rarely used
|
|
- goos: freebsd
|
|
goarch: arm
|
|
- goos: freebsd
|
|
goarch: arm64
|
|
# This builds the following key targets for Terraform users:
|
|
# - linux/amd64 (most common CI/CD)
|
|
# - linux/arm64 (Graviton, ARM-based CI)
|
|
# - linux/386 (legacy 32-bit systems)
|
|
# - linux/arm (Raspberry Pi, etc.)
|
|
# - darwin/amd64 (Intel Macs)
|
|
# - darwin/arm64 (Apple Silicon Macs)
|
|
# - windows/amd64 (Windows desktops)
|
|
# - freebsd/amd64, freebsd/386 (FreeBSD servers)
|
|
binary: '{{ .ProjectName }}_v{{ .Version }}'
|
|
archives:
|
|
- format: zip
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
|
|
checksum:
|
|
extra_files:
|
|
- glob: 'terraform-registry-manifest.json'
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
|
|
algorithm: sha256
|
|
signs:
|
|
- artifacts: checksum
|
|
args:
|
|
# if you are using this in a GitHub action or some other automated pipeline, you
|
|
# need to pass the batch flag to indicate its not interactive.
|
|
- "--batch"
|
|
- "--local-user"
|
|
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
|
|
- "--output"
|
|
- "${signature}"
|
|
- "--detach-sign"
|
|
- "${artifact}"
|
|
release:
|
|
extra_files:
|
|
- glob: 'terraform-registry-manifest.json'
|
|
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
|
|
# If you want to manually examine the release before its live, uncomment this line:
|
|
# draft: true
|
|
changelog:
|
|
disable: true |