Skip to content

Commit e18f813

Browse files
author
Jeff McCormick
committed
add ip address to audit message
1 parent 5d573cd commit e18f813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apiserver/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func Authn(perm string, w http.ResponseWriter, r *http.Request) error {
295295

296296
username, password, authOK := r.BasicAuth()
297297
if AuditFlag {
298-
log.Infof("[audit] %s username=[%s] method=[%s]\n", perm, username, r.Method)
298+
log.Infof("[audit] %s username=[%s] method=[%s] ip=[%s]\n", perm, username, r.Method, r.RemoteAddr)
299299
}
300300

301301
log.Debugf("Authn Attempt %s username=[%s]\n", perm, username)

0 commit comments

Comments
 (0)