Closed WindzCUHK closed 1 year ago
prevent the proxy get in fatal error during runtime https://github.com/yahoojapan/authorization-proxy/blob/6c6a4ee54da058a1efc5d135cdba28462642267b/handler/handler.go#L49-L59
return error if config.Proxy contains invalid values during startup, e.g.
scheme != 'http' || scheme != 'https'
host ~ '@'
https://github.com/yahoojapan/authorization-proxy/blob/6c6a4ee54da058a1efc5d135cdba28462642267b/usecase/authz_proxyd.go#L47-L66
continue in: https://github.com/AthenZ/authorization-proxy/issues/11
effect
prevent the proxy get in fatal error during runtime https://github.com/yahoojapan/authorization-proxy/blob/6c6a4ee54da058a1efc5d135cdba28462642267b/handler/handler.go#L49-L59
fix
return error if config.Proxy contains invalid values during startup, e.g.
scheme != 'http' || scheme != 'https'
host ~ '@'
https://github.com/yahoojapan/authorization-proxy/blob/6c6a4ee54da058a1efc5d135cdba28462642267b/usecase/authz_proxyd.go#L47-L66