Skip to content

fix: Harden secret handling and passthrough fallbacks (backport #5799)#5825

Merged
leseb merged 1 commit into
release-1.0.xfrom
mergify/bp/release-1.0.x/pr-5799
May 13, 2026
Merged

fix: Harden secret handling and passthrough fallbacks (backport #5799)#5825
leseb merged 1 commit into
release-1.0.xfrom
mergify/bp/release-1.0.x/pr-5799

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented May 13, 2026

What does this PR do?

This PR hardens OAuth2 introspection secret handling by using SecretStr in config and unwrapping secret values only when sending introspection requests.
It tightens messages passthrough fallbacks by catching only expected lookup errors and adding debug logs instead of silently swallowing failures.
It also improves vector-store provider lookup error logging, removes a duplicate ResponseNotFoundError export, and drops an outdated TODO comment.

Test Plan

  • uv run pytest tests/unit/server/test_auth_oauth2_introspection.py tests/unit/providers/inline/messages/test_impl.py tests/unit/telemetry/test_vector_io_metrics.py -q --maxfail=1
  • Result: 36 passed in 0.32s

This is an automatic backport of pull request #5799 done by [Mergify](https://mergify.com).

# What does this PR do?
This PR hardens OAuth2 introspection secret handling by using
`SecretStr` in config and unwrapping secret values only when sending
introspection requests.
It tightens messages passthrough fallbacks by catching only expected
lookup errors and adding debug logs instead of silently swallowing
failures.
It also improves vector-store provider lookup error logging, removes a
duplicate `ResponseNotFoundError` export, and drops an outdated TODO
comment.

## Test Plan
- `uv run pytest tests/unit/server/test_auth_oauth2_introspection.py
tests/unit/providers/inline/messages/test_impl.py
tests/unit/telemetry/test_vector_io_metrics.py -q --maxfail=1`
- Result: `36 passed in 0.32s`

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 3921847)
@leseb leseb added this pull request to the merge queue May 13, 2026
Merged via the queue into release-1.0.x with commit 525ad8b May 13, 2026
33 checks passed
@leseb leseb deleted the mergify/bp/release-1.0.x/pr-5799 branch May 13, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant