Project

General

Profile

Actions

Feature #81098

closed
SS SS

rgw/keystone: add project-scoped reader and implicit-deny roles

Feature #81098: rgw/keystone: add project-scoped reader and implicit-deny roles

Added by Supriti Singh 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-4263-g0d863a47e7
Released In:
Upkeep Timestamp:
2026-10-13T07:13:29+00:00

Description

The existing rgw_keystone_accepted_reader_roles is system-scoped: it grants
read access across all Keystone projects and only takes effect when the role
is also listed in rgw_keystone_accepted_admin_roles. There is no way to give
a Keystone user read-only access limited to its own project, as Swift's
project_reader_roles does.

Add:
  • rgw_keystone_accepted_project_reader_roles: when the listed role is the only
    granting role on a token, the identity is capped to read-only
    (RGW_PERM_READ | RGW_PERM_READ_ACP) within its Keystone project. Owner-scoped
    paths (mdsearch, SNS topics), CreateBucket/Swift account metadata and STS
    AssumeRole honor the cap. Bucket/IAM policies naming the user can still
    grant specific writes.
  • rgw_keystone_implicit_deny_roles: a role that authenticates the user but
    grants no implicit permissions; access must come from an explicit bucket or
    IAM policy.

The most permissive accepted role on a token wins.

PR: https://github.com/ceph/ceph/pull/70372

SS Updated by Supriti Singh about 2 months ago Actions #1

  • Assignee set to Supriti Singh

UB Updated by Upkeep Bot about 2 months ago Actions #2

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 0d863a47e7d6051439f20ceeb6dfc494fa5bde7c
  • Fixed In set to v21.3.0-4263-g0d863a47e7
  • Upkeep Timestamp set to 2026-10-12T13:01:58+00:00

SS Updated by Supriti Singh about 2 months ago Actions #3

  • Status changed from Resolved to Pending Backport

I would like to backport this feature to squid and tentacle.

UB Updated by Upkeep Bot about 2 months ago Actions #4

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp changed from 2026-10-12T13:01:58+00:00 to 2026-10-13T07:13:29+00:00
Actions

Also available in: PDF Atom