Feature request: support external authentication system
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 16.6k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
My main request for this issue is to have OpenID Connect authentication support for Chisel, but a generic system to integrate with other authentication systems (.e.g SAML, or simple OAuth) is also great to have. Some benefits:
- Eliminate the need to store plain text passwords in the JSON authfile
- Make Chisel more suitable for enterprise environment, where centralized identity management is a must
Design
The users.json file's schema can be changed to allow only username (omit password), or even better, extended to support other common claims in the received JWT token like email, group (pretty much a dictionary of claims -> target regex).
Chisel server can have an additional flag to indicate the redirect URL for external authentication, or the information can be also written in the auth configuration.
Workflow
- Chisel client try to connect to Chisel HTTP server
- Chisel server redirects the connection to the configured OpenID provider backend, passing the OpenID ClientID with the request
- The user completes the log in process with the OpenID provider
- Chisel server verifies the ID token, compares it with the map in authfile to allow the user access to the backend server
Alternatives
A few TCP-over-HTTP tunnel implementations exist that support plugging into an Identity Authentication Proxy:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Chisel client/server connection workflow and the users.json authfile described in the issue. Define the OpenID Connect redirect, client ID, token verification, claims mapping, and compatibility with existing authentication before implementation. Done means an external provider can authenticate a user and the verified claims control access without storing a plaintext password.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- authentication, networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100