auth_keys are ignored on http endpoints?
- Dominant language
- Go
- Stars
- 9.5k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
config:
```
{
"signing": {
"default": {
"usages": [
"signing",
"key encipherment",
"client auth"
],
"auth_key": "supersecretkey",
"expiry": "26280h"
},
"profiles": {
"server": {
"usages": [
"signing",
"key encipherment",
"server auth"
],
"expiry": "43800h"
}
}
},
"auth_keys": {
"supersecretkey": {
"type": "standard",
"key": "0123456789ABCDEF0123456789ABCDEF"
}
}
}
```
But when I make a request to `/api/v1/cfssl/newcert` (without a profile) it allows me to create a certificate without passing the key. I also don't see how I would even pass it in `api.txt`. From the blog post about cfssl it says:
> We also added an authentication key to this signing policy. This authentication key should be randomly generated and kept private. The API key is a basic authentication mechanism that prevents unauthorized parties from requesting certificates.
Am I misunderstanding how this works?
Contributor guide
Assessment
This issue has not been assessed yet.