[PR #3809] [MERGED] Improve the strict configuration validation #4836

Closed
opened 2026-05-05 14:49:39 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3809
Author: @fatedier
Created: 11/28/2023
Status: Merged
Merged: 11/28/2023
Merged by: @fatedier

Base: devHead: new


📝 Commits (1)

  • bc50fdd Improve the strict configuration validation

📊 Changes

7 files changed (+102 additions, -6 deletions)

View changed files

📝 Release.md (+1 -1)
📝 pkg/config/load.go (+4 -1)
📝 pkg/config/load_test.go (+53 -0)
📝 pkg/config/v1/common.go (+14 -0)
📝 pkg/config/v1/plugin.go (+15 -1)
📝 pkg/config/v1/proxy.go (+6 -1)
📝 pkg/config/v1/visitor.go (+9 -2)

📄 Description

Summary

🤖[deprecated] Generated by Copilot at bc50fdd

Added a new command line parameter --strict_config that enables strict configuration validation mode for frp. This mode rejects any configuration files that contain unknown fields or invalid plugin options. The parameter affects the json decoder used in the pkg/config package and the Type field added to the plugin options types. The Release.md file was updated to document this feature.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/3809 **Author:** [@fatedier](https://github.com/fatedier) **Created:** 11/28/2023 **Status:** ✅ Merged **Merged:** 11/28/2023 **Merged by:** [@fatedier](https://github.com/fatedier) **Base:** `dev` ← **Head:** `new` --- ### 📝 Commits (1) - [`bc50fdd`](https://github.com/fatedier/frp/commit/bc50fdda13b8624fd9199b242ff0cee6c870d912) Improve the strict configuration validation ### 📊 Changes **7 files changed** (+102 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `Release.md` (+1 -1) 📝 `pkg/config/load.go` (+4 -1) 📝 `pkg/config/load_test.go` (+53 -0) 📝 `pkg/config/v1/common.go` (+14 -0) 📝 `pkg/config/v1/plugin.go` (+15 -1) 📝 `pkg/config/v1/proxy.go` (+6 -1) 📝 `pkg/config/v1/visitor.go` (+9 -2) </details> ### 📄 Description ### Summary <!-- copilot:summary --> ### <samp>🤖[[deprecated]](https://githubnext.com/copilot-for-prs-sunset) Generated by Copilot at bc50fdd</samp> Added a new command line parameter `--strict_config` that enables strict configuration validation mode for frp. This mode rejects any configuration files that contain unknown fields or invalid plugin options. The parameter affects the `json` decoder used in the `pkg/config` package and the `Type` field added to the plugin options types. The `Release.md` file was updated to document this feature. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:49:39 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4836
No description provided.