Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ws: only spawn cockpit-session on known auth types
If we receive requests for exotic authentication types from the client like: Authorization: Random xyz and those types are not explicitly disabled in cockpit.conf with a stanza like: [Random] action = none then by default we'll try to spawn cockpit-session to respond to them. This doesn't make a lot of sense, as cockpit-session doesn't support any types other than "basic", "negotiate" and "tls-cert" (which is only ever used internally, and already blocked when received from clients). Modify the check to only spawn cockpit-session for the recognised types. In case another type is specified, then the command to handle that type needs to be explicitly specified: [Random] command = /path/to/my/handler as we already have for several cases in the unit tests.
- Loading branch information