feat: decorator for admin endpoint authentication
Compare changes
@@ -8,11 +8,38 @@ import scala.util.{Try, Success, Failure}
@@ -77,6 +104,7 @@ private[server] final case class WebServerRoutes()(using cc: castor.Context, log
A cask decorator was added to authenticate users for a certain sensitive endpoint. It uses basic HTTP authentication process. The most important things to note are that we should always ensure an HTTPS connection to this endpoint, we should also protect it against bruteforce attack using nginx rate limiting, and we should use a strong password !