authorize: add request IP to rego evaluation (#3107)

This commit is contained in:
Caleb Doxsey 2022-03-07 15:07:58 -07:00 committed by GitHub
parent 5ac55f68b6
commit a0e64b1cf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 1 deletions

View file

@ -133,6 +133,7 @@ func (a *Authorize) getEvaluatorRequestFromCheckRequest(
requestURL,
getCheckRequestHeaders(in),
getPeerCertificate(in),
in.GetAttributes().GetSource().GetAddress().GetSocketAddress().GetAddress(),
),
}
if sessionState != nil {