Skip to content

chore(deps): update pydantic-settings requirement from >=2.16.2 to >=2.16.4 - #32

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/pydantic-settings-gte-2.16.4
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/pydantic-settings-gte-2.16.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 6, 2026

Copy link
Copy Markdown

Updates the requirements on pydantic-settings to permit the latest version.

Release notes

Sourced from pydantic-settings's releases.

v2.16.4

Highlights

This patch release hardens how the secrets sources read files from secrets_dir, and fixes several cases where a lower-priority source, or input that should have been rejected, could set a value in the CLI source, CliApp and the GCP Secret Manager source. These issues were reported by Anthropic's OSS Scanner.

Hardening

  • The secrets sources read exactly the file they checked (#1189). SecretsSettingsSource and NestedSecretsSettingsSource checked that a secret file stays inside secrets_dir on one path but then read another, so in some cases a file outside secrets_dir could still be loaded despite the fixes in 2.14.2 and 2.16.3. Paths are now resolved strictly and the resolved path is read; on POSIX, files are opened below secrets_dir without following symlinks.
  • secrets_dir_max_size is enforced on the bytes actually read by NestedSecretsSettingsSource (#1189). The limit was only checked in an earlier pass, so a file that grew after that check was read whole.
  • The nested secrets walk is bounded (#1189). Hidden entries now count toward the 10,000-entry limit, and link chains longer than the OS follows are skipped, so a crafted tree can no longer stall loading.
  • CliApp.run honors hide_input_in_errors on pydantic dataclasses (#1185). Validation errors showed the rejected input, which could include secrets.
  • A nested AliasPath CLI option can no longer set sibling fields (#1185). The option's value is now required to be a single JSON value.

Behavior changes

  • An explicit empty CLI argument (--x '' or --x=) is kept as an empty value when env_ignore_empty=True, instead of falling back to the environment or the default (#1185). For a non-string field this now fails validation.
  • A value for a nested AliasPath-only CLI option that isn't a single JSON value raises SettingsError (#1185).
  • With case_sensitive=False, the GCP Secret Manager source uses an exactly named secret over its case variants, as documented. The mapping also lists each secret once, under its lower-cased name (#1186).
  • Settings(_env_prefix=...), _case_sensitive, _env_nested_delimiter, _env_prefix_target and _env_nested_max_split now apply to NestedSecretsSettingsSource, as they already did to SecretsSettingsSource (#1189).
  • In SecretsSettingsSource, a broken or unresolvable link now warns that it "could not be resolved" instead of raising AssertionError, and a link pointing outside secrets_dir warns that it "resolves outside" it. Hidden entries count toward NestedSecretsSettingsSource's 10,000-entry limit (#1189).

Bug fixes

CLI

  • CliApp.run with a plain model or dataclass no longer lets environment, dotenv or secrets values override a CLI or init value that equals a nested default (#1185).

GCP Secret Manager

  • With case_sensitive=False and env_nested_delimiter, a differently cased secret no longer overrides the exactly named one for nested fields (#1186).
  • A secret that is listed but can't be read is treated as unset for nested fields, as it already was for top-level ones, instead of setting the field to None. A listed secret with no latest version no longer makes Settings() fail with KeyError in case-sensitive mode (#1188).

Secrets

  • NestedSecretsSettingsSource reads secret files named with the prefix passed to Settings() (#1189).

Credits

Reported by Anthropic's OSS Scanner (ANT-2026-03GATVJT, ANT-2026-KXOQMCIZ, ANT-2026-QBDWOPPZ, ANT-2026-Q9SXL4RQ, ANT-2026-J8TUO8VX, ANT-2026-KEND8WE6, ANT-2026-AR6U1329, ANT-2026-0SIM76GZ, ANT-2026-KCDOIFJQ, ANT-2026-WTKAUT7V, ANT-2026-1HJFYVIH).

What's Changed

Full Changelog: pydantic/pydantic-settings@v2.16.3...v2.16.4

Commits
  • dfa237b Prepare release 2.16.4
  • 60e5195 Skip unreadable GCP secrets when loading nested fields (#1188)
  • 003aa70 Harden secrets directory loading (#1189)
  • eced073 Prefer exact GCP secret names in case-insensitive lookups (#1186)
  • d680cc1 Fix CLI source and CliApp precedence and input handling issues (#1185)
  • 50e676c Prepare release 2.16.3
  • e394a88 Prevent SecretsSettingsSource from following symlinks outside secrets_dir (#1...
  • 2e66451 Load nested secrets reached through a second directory link (#1070)
  • 0379552 Fix CliApp.serialize moving a parent unknown args into the subcommand (#1050)
  • See full diff in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [pydantic-settings](https://github.com/pydantic/pydantic-settings) to permit the latest version.
- [Release notes](https://github.com/pydantic/pydantic-settings/releases)
- [Commits](pydantic/pydantic-settings@v2.16.2...v2.16.4)

---
updated-dependencies:
- dependency-name: pydantic-settings
  dependency-version: 2.16.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants