Bug 2268379 - [RFE] IAM ROLES. Improved debug logging of the Policy evaluation engine [NEEDINFO]
Summary: [RFE] IAM ROLES. Improved debug logging of the Policy evaluation engine
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 9.1
Assignee: Adam C. Emerson
QA Contact: Madhavi Kasturi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-07 07:27 UTC by daniel parkes
Modified: 2025-09-09 00:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:
mkasturi: needinfo? (mbenjamin)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-8459 0 None None None 2024-03-07 07:30:14 UTC

Description daniel parkes 2024-03-07 07:27:57 UTC
Hi,

When working with IAM Roles, when writing the doc policy that will allow a user to assume a role by matching the condition in the policy, the rules, and expressions on the condition can get pretty complicated, and currently, there is no easy way to check in our RGW debug 20 logs why the policy evaluation engine is allowing or denying and specific incoming assume role request.

Currently, the debug 20 logs when we get an error show:

"logging of the Policy evaluation engine"

Without giving any other further detail, it would improve the debugging experience and work with roles if we could get something like:

"Evaluating policy X failed, not matching. Doc Policy on Role: arn:aws:iam:::oidc-provider/localhost:8080/auth/realms/quickstart , incoming condition: "Principal":{"Federated":["arn:aws:iam:::oidc-provider/keycloak-sso.apps.ocp.local/auth/realms/ceph"]} don't match"

This will help us pinpoint the issue immediately; it has been the case with customers that a small typo in the policy will take a very long time to debug because of this.

Comment 1 RHEL Program Management 2024-03-07 07:28:09 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.


Note You need to log in before you can comment on or make changes to this bug.