Skip to content

rgw/iam: customer managed policy - #646

Open
ArbitCode wants to merge 8 commits into
ceph:masterfrom
ArbitCode:wip-raja-customer-managed-policy
Open

ArbitCode wants to merge 8 commits into
ceph:masterfrom
ArbitCode:wip-raja-customer-managed-policy

Conversation

@ArbitCode

@ArbitCode ArbitCode commented May 6, 2025

Copy link
Copy Markdown
Member
s3tests_boto3/functional/test_iam.py::test_create_policy PASSED                                                                                                                                        [ 20%]
s3tests_boto3/functional/test_iam.py::test_create_duplicate_policy PASSED                                                                                                                              [ 40%]
s3tests_boto3/functional/test_iam.py::test_get_policy PASSED                                                                                                                                           [ 60%]
s3tests_boto3/functional/test_iam.py::test_delete_policy PASSED                                                                                                                                        [ 80%]
s3tests_boto3/functional/test_iam.py::test_delete_nonexistent_policy PASSED                                                                                                                            [100%]

@ArbitCode

Copy link
Copy Markdown
Member Author

ceph/ceph#62401

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great start 👍

Comment on lines +1489 to +1490
# Cleanup
iam_root.delete_policy(PolicyArn=policy['Policy']['Arn'])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once we support iam:ListPolicies, we can add a nuke_policies() to the iam_root/iam_alt_root fixtures in iam.py so that test cases don't have to handle cleanup on their own

Comment thread pytest.ini Outdated
user_policy
versioning
webidentity_test
policy

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we call this managed_policy?

@ArbitCode ArbitCode May 12, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbodley overall related to this SPIKE can we call managed_policy instead of policy or customer_managed_policy ?

but there is other existing features related managed_policy in will that create any confusion?
rgw_rest_user_policy.cc

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but AWS presents it as policy while create, delete, get etc


@pytest.mark.policy
@pytest.mark.iam_account
def test_get_policy(iam_root):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can add a get test for a non existent policy.

@ArbitCode ArbitCode self-assigned this Jun 28, 2025
@ArbitCode
ArbitCode force-pushed the wip-raja-customer-managed-policy branch from a76efd7 to cad408c Compare September 8, 2026 12:15
@ArbitCode ArbitCode added the DNM Do Not Merge label Sep 8, 2026
Signed-off-by: Raja Sharma <raja@ibm.com>
@ArbitCode
ArbitCode force-pushed the wip-raja-customer-managed-policy branch from cad408c to fa1cbf4 Compare September 8, 2026 16:40
Signed-off-by: Raja Sharma <raja@ibm.com>
Signed-off-by: Raja Sharma <raja@ibm.com>
@ArbitCode
ArbitCode force-pushed the wip-raja-customer-managed-policy branch from fa1cbf4 to 66109ce Compare September 9, 2026 06:47
Signed-off-by: Raja Sharma <raja@ibm.com>
Signed-off-by: Raja Sharma <raja@ibm.com>
Signed-off-by: Raja Sharma <raja@ibm.com>
Signed-off-by: Raja Sharma <raja@ibm.com>
Signed-off-by: Raja Sharma <raja@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DNM Do Not Merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants