Skip to content

fix: address CodeQL security alerts - #3188

Merged
liukewia merged 1 commit into
TencentCloud:developfrom
liukewia:fix/codeql-security-alerts
Nov 27, 2026
Merged

liukewia merged 1 commit into
TencentCloud:developfrom
liukewia:fix/codeql-security-alerts

Conversation

@liukewia

Copy link
Copy Markdown
Collaborator

Summary

  • Close CodeQL path-injection findings by centralizing safe host-file validation and applying canonical containment checks across ACP, connector, and media paths.
  • Prevent sensitive exception details and wizard passwords from reaching logs or API/SSE responses, with localized user-facing failure messages and regression coverage.

Target branch

  • Base is develop (feature / fix — default)
  • Base is main (release/* or hotfix/* only)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / chore
  • Release / hotfix

Test plan

  • make all passes locally (6440 passed, 47 skipped)
  • Added/updated tests
  • Targeted regression tests: 73 passed, 2 skipped

Checklist

  • README / docs updated (if needed)

- Updated error handling in `test_instance` and `test_credentials` functions to return localized error messages instead of exception strings.
- Added a new translation key for "connector probe failed" in English and Chinese language files.
- Enhanced logging for various exceptions in the Laya runtime to avoid exposing internal error details.
- Introduced `assert_safe_host_file` utility to ensure safe file path handling across multiple modules.
@liukewia
liukewia merged commit c4653a7 into TencentCloud:develop Nov 27, 2026
9 checks passed
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