Description

In MongoDB operator 1.16.0, the pbm breaks when the backup password has special characters in it:

for example, the backup user has below password:

 

connection works with the db after specifying #'s hex - %23:

When taking an on-demand backup backup2:

From pbm agent log:

 

backup stuck at a point (first backup backup1 was taken with the normal password):

 

Can you please check and correct the operator to handle the password with special character’s for PBM?

Environment

None

Activity

Show:

Aaditya Dubey October 10, 2024 at 11:58 AM
Edited

Hi

This issue is now verified.
I’ve tested this issue on GKE by following the steps here at

There are two aspects of this issue:

  1. If we pass the password to secret.yaml having special characters in it Eg: backup^%&458GH without encoding just plain string as mentioned:
    MONGODB_BACKUP_PASSWORD: backup^%&458GH
    it throws the following error:

     

  2. If we pass the password to secret.yaml having special characters in it Eg: backup%5E%25%26458GH with percent-encoding:
    MONGODB_BACKUP_PASSWORD: backup%5E%25%26458GH

    It throws errors like:

  3. Another error we observed is:

Please note that I’ve tested the PBM without the operator with multiple different passwords containing special characters, which works perfectly fine after doing percent-encoding, so it looks like an issue from the operator’s side.

Aaditya Dubey October 7, 2024 at 10:46 AM

Hi

Thank you for the report.
Please share the complete reproducible steps.

Pinned fields
Click on the next to a field label to start pinning.
Details

Assignee

Andrii Dema

Reporter

Vinodh Krishnaswamy

Labels

Needs QA

Yes

Fix versions

Affects versions

Priority

Smart Checklist
Created October 3, 2024 at 2:41 PM
Updated November 4, 2024 at 6:03 PM
Loading...