create-target action accepts invalid auth credentials
Bug #2040328 reported by
Samuel Allan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Ceph iSCSI Charm |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
The create-target action has parameters `client-password` and `client-username`. Ceph iscsi has requirements for the password and username (see attached screenshot from ceph dashboard for source):
username: length of 8 to 64 characters and can contain alphanemuric charactors, '.', '@', '-', '_' or ':'
password: length of 12 to 16 characters and can contain alphanemuric charactors, '@', '-', '_' or '/'
However, the create-target action accepts any value. If the username or password given to create-target does not meet the requirements, no error is returned to the user. The target is created, but credentials are not set.
tags: | added: field-ceph-dashboard |
To post a comment you must log in.
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- ceph-iscsi/ +/899273
Review: https:/