Project

General

Profile

Actions

Bug #51634

closed

Validate allowed characters for rgw reams

Added by Sebastian Wagner almost 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
cephadm/rgw
Target version:
-
% Done:

0%

Source:
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

# ceph orch ls --service-type rgw --format yaml
service_type: rgw
service_id: rgw.all
service_name: rgw.rgw.all
placement:
  label: rgw
spec:
  rgw_frontend_port: 443
  rgw_realm: /etc/ssl/certs/server.pem
  ssl: true
status:
  created: '2021-07-12T12:45:04.261390Z'
  running: 0
  size: 1
events:
- 2021-07-12T06:26:04.982069Z service:rgw.rgw.all [INFO] "service was created" 
Actions #1

Updated by Sebastian Wagner almost 3 years ago

  • Category set to cephadm/rgw
Actions #2

Updated by Redouane Kachach Elhichou about 2 years ago

  • Assignee set to Redouane Kachach Elhichou
Actions #3

Updated by Redouane Kachach Elhichou about 2 years ago

I did some investigation on this issue and the current status is:
  • From RGW side there's no restriction on the realm names
  • RGW realms can be created with any characters (including / and ")
  • Services seem to be created correctly (I didn't test the RGW functionality itself)
  • mgr failover seem to work correctly when inserting a " character in the realm name (from/to json converstions works correctly)
    * dumping the RGW spec from cephadm works without issues: ceph config-key dump mgr/cephadm/spec.<rgw-spec-name>
    

My conclusion is by now no changes are needed at the cephadm module.

Actions #4

Updated by Redouane Kachach Elhichou about 2 years ago

  • Status changed from New to Closed

As result of my investigation it seems that cephadm doesn't need to perform any validation on realm names by now since RGW is very permissive on this aspect and the user can use any characters on the name.

Actions #5

Updated by Redouane Kachach Elhichou about 2 years ago

  • Status changed from Closed to Rejected
Actions #6

Updated by Redouane Kachach Elhichou almost 2 years ago

  • Status changed from Rejected to Closed
Actions

Also available in: Atom PDF