mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Add additional logging for OPA connections (#7982)
This commit is contained in:
committed by
Nitish Tiwari
parent
e871e27562
commit
94c88890b8
@@ -1236,7 +1236,11 @@ func (sys *IAMSys) IsAllowedSTS(args iampolicy.Args) bool {
|
||||
func (sys *IAMSys) IsAllowed(args iampolicy.Args) bool {
|
||||
// If opa is configured, use OPA always.
|
||||
if globalPolicyOPA != nil {
|
||||
return globalPolicyOPA.IsAllowed(args)
|
||||
ok, err := globalPolicyOPA.IsAllowed(args)
|
||||
if err != nil {
|
||||
logger.LogIf(context.Background(), err)
|
||||
}
|
||||
return ok
|
||||
}
|
||||
|
||||
// With claims set, we should do STS related checks and validation.
|
||||
|
||||
Reference in New Issue
Block a user