Repository navigation
fix(workspace): avoid logging forwarded env values - #2630
Merged
Merged
Conversation
Contributor
Python API breakage checks — ✅ PASSEDResult: ✅ PASSED |
Contributor
REST API breakage checks (OpenAPI) — ✅ PASSEDResult: ✅ PASSED |
all-hands-bot
approved these changes
Mar 31, 2026
all-hands-bot
left a comment
Collaborator
There was a problem hiding this comment.
🟢 Good taste - Straightforward security fix. Solves a real problem (secrets leaking in logs) with an elegant solution: log the keys, not the values. Test coverage is solid. LGTM! 👍
neubig
approved these changes
Mar 31, 2026
Merged
8 tasks done
This was referenced Apr 13, 2026
StressTestor
pushed a commit
to StressTestor/software-agent-sdk
that referenced
this pull request
Jun 1, 2026
Co-authored-by: Debug Agent <debug@example.com>
This was referenced Jul 27, 2026
pengzhang-create
pushed a commit
to Pyromind-Dynamics/software-agent-sdk
that referenced
this pull request
Aug 13, 2026
Co-authored-by: Debug Agent <debug@example.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
APIRemoteWorkspaceWhy
APIRemoteWorkspace._start_runtime()was loggingPayload: {payload}after copying forwarded host env vars intopayload["environment"]. That exposed secrets such asLMNR_PROJECT_API_KEYand provider API keys when instance logs were published in evaluation artifacts.Testing
PYTHONPATH="/Users/simonrosenberg/tmp/software-agent-sdk-sec-leak-fix/openhands-workspace:/Users/simonrosenberg/tmp/software-agent-sdk-sec-leak-fix/openhands-sdk:/Users/simonrosenberg/tmp/software-agent-sdk-sec-leak-fix/openhands-agent-server" pytest tests/workspace/test_api_remote_workspace.pyRefs: #2629
Agent Server images for this PR
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdknikolaik/python-nodejs:python3.13-nodejs22-slimgolang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:cd14202-pythonRun
All tags pushed for this build
About Multi-Architecture Support
cd14202-python) is a multi-arch manifest supporting both amd64 and arm64cd14202-python-amd64) are also available if needed