mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3221] [Feature Request] Pass client certificate subject information to plugin handler #2583
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#2583
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?
Originally created by @CrazyPandar on GitHub (Dec 20, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3221
Describe the feature request
With TLS client authentication, I hope the subject information, like CN, SUBJECT_ID, can be sent to the plugin handler. So I can do authentication and authorization based on the subject information.
Describe alternatives you've considered
No response
Affected area
@fatedier commented on GitHub (Dec 20, 2022):
You should describe the details about what you want to change.
@CrazyPandar commented on GitHub (Dec 20, 2022):
change the plugin HTTP request body to include FRP client's TLS peer certificate information, for example the "common name", "subject ID" ....
@CrazyPandar commented on GitHub (Dec 20, 2022):
please have a look at the following example, the plugin can get the remote FRPC peer's TLS common name by content.user.cert.subject.cname and use it to do authorization.
@fatedier commented on GitHub (Dec 20, 2022):
It's the connection level info, not the meta info of
user.I don't want to make more changes on current version. Maybe considered in v2.
@github-actions[bot] commented on GitHub (Jan 20, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.