Skip to content

fix: add FILE_AUTH configuration for enhanced file access control - #6552

Merged
wxg0103 merged 1 commit into
v2from
pr@v2@fix_add_file_auth
Jul 31, 2026
Merged

fix: add FILE_AUTH configuration for enhanced file access control#6552
wxg0103 merged 1 commit into
v2from
pr@v2@fix_add_file_auth

Conversation

@shaohuzhang1

Copy link
Copy Markdown
Contributor

fix: add FILE_AUTH configuration for enhanced file access control

Copilot AI review requested due to automatic review settings July 31, 2026 03:32
@shaohuzhang1

Copy link
Copy Markdown
Contributor Author

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

@wxg0103
wxg0103 merged commit 76304c4 into v2 Jul 31, 2026
5 of 7 checks passed
@wxg0103
wxg0103 deleted the pr@v2@fix_add_file_auth branch July 31, 2026 03:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new FILE_AUTH configuration flag intended to control whether OSS file access authorization checks run, integrating this toggle into the file access path.

Changes:

  • Introduces FILE_AUTH (default True) to the server configuration defaults.
  • Adds a FILE_AUTH guard to apps/oss/serializers/file.py::auth() to optionally bypass authorization.
  • Modifies a docstring reStructuredText directive in ConfigManager.from_mapping().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
apps/oss/serializers/file.py Adds a config-driven early-return in the file authorization function.
apps/maxkb/conf.py Adds the FILE_AUTH default config entry and adjusts a docstring directive line.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +86 to +87
if not CONFIG.get("FILE_AUTH", True):
return
Comment thread apps/maxkb/conf.py
keys.

.. versionadded:: 0.11
... versionadded:: 0.11
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.

3 participants