This commit is contained in:
2026-07-28 21:01:58 -05:00
parent 510d5490f9
commit f56ac6a2c4
7 changed files with 219 additions and 13 deletions
+9
View File
@@ -874,3 +874,12 @@ func (s *Server) audit(
}
var errAuthorizationDenied = errors.New("authorization denied")
var (
errCodeNotFound = fmt.Errorf("%w: code not found", errAuthorizationDenied)
errCodeExpired = fmt.Errorf("%w: code expired", errAuthorizationDenied)
errCodeRevoked = fmt.Errorf("%w: code revoked", errAuthorizationDenied)
errActionNotAuthorized = fmt.Errorf("%w: action not authorized", errAuthorizationDenied)
errPackageNotAuthorized = fmt.Errorf("%w: package not authorized", errAuthorizationDenied)
errHostLimitReached = fmt.Errorf("%w: host limit reached", errAuthorizationDenied)
)