Provide IP Address in Duo Request (#18811)

* Provide IP Address in Duo Request

* CL
This commit is contained in:
Hamid Ghaf 2023-01-24 17:28:59 -05:00 committed by GitHub
parent 6ec669bb07
commit 2b5e5121e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

3
changelog/18811.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
auth: Provide an IP address of the requests from Vault to a Duo challenge after successful authentication.
```

View File

@ -1951,6 +1951,7 @@ func (c *Core) validateDuo(ctx context.Context, mfaFactors *MFAFactor, mConfig *
} }
} }
options = append(options, authapi.AuthIpAddr(reqConnectionRemoteAddr))
options = append(options, authapi.AuthUsername(username)) options = append(options, authapi.AuthUsername(username))
options = append(options, authapi.AuthAsync()) options = append(options, authapi.AuthAsync())