Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Change log level to warn for users who lack authentication. (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
scrosby authored and sradack committed Jul 11, 2019
1 parent 2703a89 commit a37fe90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions waiter/src/waiter/descriptor.clj
Expand Up @@ -298,11 +298,13 @@
(throw (ex-info "Authenticated user cannot run service"
{:authenticated-user auth-user
:run-as-user run-as-user
:status 403})))
:status 403
:log-level :warn})))
(when-not (request-authorized? auth-user permitted-user)
(throw (ex-info "This user isn't allowed to invoke this service"
{:authenticated-user auth-user
:service-description service-description
:status 403})))
:status 403
:log-level :warn})))
{:descriptor descriptor
:latest-descriptor latest-descriptor}))))

0 comments on commit a37fe90

Please sign in to comment.