feat: generic sandbox status, inference provider & security posture cards#236
Open
vivekchand wants to merge 1 commit intomainfrom
Open
feat: generic sandbox status, inference provider & security posture cards#236vivekchand wants to merge 1 commit intomainfrom
vivekchand wants to merge 1 commit intomainfrom
Conversation
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.
Closes #235
What
Adds three new conditional cards to the System Health panel that render platform-agnostic sandbox, inference, and security metadata.
How
Backend (
dashboard.py):_detect_sandbox_metadata()— checks env vars (SANDBOX_NAME,CONTAINER_NAME), Docker detection (/.dockerenv,/proc/1/cgroup), andopenclaw.jsonsandbox config_detect_inference_metadata()— checks env vars,openclaw.jsoninference config, and infers provider from model name_detect_security_metadata()— checks auth config, bind address, exec security mode, sandbox status, network policyNonewhen no metadata is found (cards hide gracefully)Frontend (both dark + light themes):
display:nonewrapper divs, shown only when API returns dataTests (
test_api.py):/api/system-healthresponseDesign principle
No vendor logos. No NemoClaw-specific UI. Just generic cards that work for Docker, NemoClaw, or any future sandboxed setup.
+172 lines across 2 files. 73 tests pass, 6 skipped.