QUESTIONS related to authentication
- Dominant language
- Go
- Stars
- 9.5k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
I'm new to CFSSL and have some questions related to authentication. Thanks in advance.
1) In cfssl/cli/serve/serve.go, I see the "authsign" endpoint ... which is the authenticated version of "sign". Is the plan to add an "auth" version of all/most other endpoints as well?
2) I would like to add more endpoints and also add security to all existing endpoints as non-obtrusively to the existing serve.go code as possible. A public method to add a new endpoint would obviously be nice. But in order to add security to existing endpoints, it seems a middleware pattern (like express or sinatra) would work well. However, since each Handle method performs it's own ioutil.ReadAll of the request body, it makes this pattern impossible, right? Could the code be changed to use gorilla/mux or something else express or sinatra-like to make this possible?
3) The "newcert" endpoint returns a private key. I thought private keys should never flow over the network. Is this standard or recommended?
Thanks
Contributor guide
Research direction
Start by reading cfssl/cli/serve/serve.go, focusing on the authsign, sign, and newcert endpoints and how each reads the request body. The issue does not define a concrete implementation or acceptance criteria; clarify the desired endpoint coverage, middleware approach, and private-key behavior before work can be considered done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, authentication, backend, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100