Skip to content

Commit

Permalink
chore(logging): make access denies log more stronger (#595)
Browse files Browse the repository at this point in the history
log errors vs. infos
  • Loading branch information
marchello2000 authored Sep 18, 2019
1 parent cc7657f commit 23062eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ class AuthorizationSupport {

return runAsUsers.findAll { runAsUser ->
if (!userCanAccessServiceAccount(auth, runAsUser)) {
log.info("User ${auth?.principal} does not have access to service account $runAsUser")
log.error("User ${auth?.principal} does not have access to service account $runAsUser")
return true
}
if (!serviceAccountCanAccessApplication(runAsUser, pipeline.application as String)) {
log.info("Service account ${runAsUser} does not have access to application ${pipeline.application}")
log.error("Service account ${runAsUser} does not have access to application ${pipeline.application}")
return true
}
return false
Expand Down

0 comments on commit 23062eb

Please sign in to comment.