You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected Puppet, Ruby, OS and module versions/distributions
Puppet: 7.34
Ruby: 2.7.8
Distribution: RHEL9
Module version: 6.0.1
How to reproduce (e.g Puppet code you use)
PR#432 introduced a feature to allow grants to other databases in the format 'role@db' for mongodb_user. However, to regex for the roles property does not allow the same db names allowed by the mongodb_database. Specifically, one cannot grant roles to databases containing "-" in their name.
What are you seeing
Error: Failed to apply catalog: Parameter roles failed on Mongodb_user[xyz123]: Invalid value "dbAdmin@abc-db". Valid values match /^\w+(@\w+)?$/. (file: /etc/puppetlabs/code/environments/test/site/profile/manifests/db/mongodb.pp, line: 201)
What behaviour did you expect instead
mongodb_user xyz123 is granted role dbAdmin on database abc-db
Output log
The text was updated successfully, but these errors were encountered:
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
PR#432 introduced a feature to allow grants to other databases in the format 'role@db' for mongodb_user. However, to regex for the roles property does not allow the same db names allowed by the mongodb_database. Specifically, one cannot grant roles to databases containing "-" in their name.
What are you seeing
Error: Failed to apply catalog: Parameter roles failed on Mongodb_user[xyz123]: Invalid value "dbAdmin@abc-db". Valid values match /^\w+(@\w+)?$/. (file: /etc/puppetlabs/code/environments/test/site/profile/manifests/db/mongodb.pp, line: 201)
What behaviour did you expect instead
mongodb_user xyz123 is granted role dbAdmin on database abc-db
Output log
The text was updated successfully, but these errors were encountered: