return a 401 if the container is not authorized
This commit is contained in:
parent
90d442b611
commit
8adf4be96e
@ -241,6 +241,14 @@ func (ph *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.Error().
|
||||||
|
Str("remote_addr", r.RemoteAddr).
|
||||||
|
Str("method", r.Method).
|
||||||
|
Str("path", r.URL.Path).
|
||||||
|
Str("decision", "denied").
|
||||||
|
Msg("this container is not on the list of authorized ones")
|
||||||
|
http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
|
||||||
|
return
|
||||||
/*
|
/*
|
||||||
log.Warn().
|
log.Warn().
|
||||||
Str("remote_addr", r.RemoteAddr).
|
Str("remote_addr", r.RemoteAddr).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user