lobehub/.github
Arvin Xu 2c1762b85a
🐛 fix(database): add userId authorization check in removeFilesFromKnowledgeBase (#11108)
* fix kb issue

* 🔒 fix(file): validate file size from S3 instead of trusting client input

Security fix for GHSA-wrrr-8jcv-wjf5: The file upload feature did not
validate the integrity of upload requests, allowing users to manipulate
the size parameter to bypass quota limits.

Changes:
- Add getFileMetadata method to S3 module using HeadObjectCommand
- Add getFileMetadata to FileServiceImpl interface and implementations
- Update createFile router to fetch actual file size from S3
- Add comprehensive tests for the new functionality
- Fix duplicate import in knowledgeBase.test.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* 🐛 fix(ci): use allowed_tools instead of claude_args for claude-translator

Fix shell parsing issue where special characters in claude_args were
incorrectly split. The parentheses and asterisks in tool patterns like
`Bash(gh issue view *)` were being parsed by shell, causing:
- "Bash(gh issue view *)" to become ["Bash", "gh", "issue", "view", "*"]

Changes:
- Replace `claude_args: "--allowed-tools ..."` with `allowed_tools: '...'`
- Use colon separator format consistent with other workflows
- Simplify tool patterns while maintaining security restrictions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-02 21:03:05 +08:00
..
actions feat: refactor desktop implement with brand new 2.0 2025-12-24 12:54:35 +08:00
ISSUE_TEMPLATE 🔨 chore: improve bug report template with validations and client type field (#9795) 2025-10-20 23:54:58 +08:00
scripts 🔨 chore: add claude code powered workflows (#9709) 2025-10-14 21:24:26 +08:00
workflows 🐛 fix(database): add userId authorization check in removeFilesFromKnowledgeBase (#11108) 2026-01-02 21:03:05 +08:00
FUNDING.yml 🔨 chore: Update FUNDING.yml to add Github Sponsor [skip ci] 2024-04-25 22:14:09 +08:00
PULL_REQUEST_TEMPLATE.md test: add BDD test framework and initial tests with Playwright and Cucumber (#9843) 2025-10-23 02:15:24 +08:00