Skip to content

Test tool#380

Merged
c121914yu merged 1 commit intolabring:mainfrom
c121914yu:test-tool
Feb 13, 2026
Merged

Test tool#380
c121914yu merged 1 commit intolabring:mainfrom
c121914yu:test-tool

Conversation

@c121914yu
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 13, 2026 03:06
@c121914yu c121914yu merged commit d7f1c88 into labring:main Feb 13, 2026
2 checks passed
@github-actions
Copy link

github-actions bot commented Feb 13, 2026

Build Successful - Preview Images for this PR:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin-pr:db4249de00d06abb687fee3ba2ebede603dc7955

Changed packages:
None

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors authentication middleware and clarifies logging configuration. It extracts bearer token authentication into a custom middleware implementation and renames the environment variable LOG_LEVEL to LOG_CONSOLE_LEVEL to better distinguish console logging configuration from OpenTelemetry logging configuration.

Changes:

  • Replaced hono/bearer-auth with a custom bearerAuth middleware in lib/middlewares/auth.ts
  • Renamed LOG_LEVEL environment variable to LOG_CONSOLE_LEVEL across all files for clarity
  • Reordered middleware execution so authentication happens after request logging

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
runtime/app.ts Updated to import custom bearerAuth middleware and moved auth middleware after logger
lib/middlewares/auth.ts New custom bearer auth middleware implementation using HTTPException
runtime/.env.template Renamed LOG_LEVEL to LOG_CONSOLE_LEVEL with updated comments
lib/env.ts Updated environment variable schema from LOG_LEVEL to LOG_CONSOLE_LEVEL
lib/logger/index.ts Updated to use env.LOG_CONSOLE_LEVEL instead of env.LOG_LEVEL
lib/worker/index.ts Updated worker environment to pass LOG_CONSOLE_LEVEL
lib/type/env.d.ts Updated TypeScript type definition for ProcessEnv

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants