mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #5050] [MERGED] Add exec value source type #5112
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#5112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/5050
Author: @Saancreed
Created: 11/10/2025
Status: ✅ Merged
Merged: 11/17/2025
Merged by: @fatedier
Base:
dev← Head:exec-value-source📝 Commits (4)
08ac349config: introduce ExecSource value source540a7b0auth: introduce OidcTokenSourceAuthProvider28f9962auth: use OidcTokenSourceAuthProvider if tokenSource config is present on the client7b9639bcmd: allow exec token source only if CLI flag was passed📊 Changes
10 files changed (+179 additions, -20 deletions)
View changed files
📝
client/admin_api.go(+1 -1)📝
client/service.go(+5 -0)📝
cmd/frpc/sub/proxy.go(+7 -4)📝
cmd/frpc/sub/root.go(+20 -7)📝
cmd/frpc/sub/verify.go(+4 -1)📝
pkg/auth/auth.go(+7 -3)📝
pkg/auth/oidc.go(+45 -0)📝
pkg/config/v1/client.go(+8 -0)📝
pkg/config/v1/validation/client.go(+16 -3)📝
pkg/config/v1/value_source.go(+66 -1)📄 Description
WHY
https://github.com/fatedier/frp/issues/5045
Notably, the current version:
map[string]stringto represent additional environment variablesdiroption that allows customizing the working directory of executed process (because adding it was pretty much free)oidcandtokenSourceto be mutually exclusive; if both are present, the latter will take precedence--allow-unsafe-token-sourceCLI flag to enable usage ofexecsource type but the name isn't final… and maybefileshould be considered unsafe too?reloadcommand🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.