vdombrovski commented on PR #7671: URL: https://github.com/apache/cloudstack/pull/7671#issuecomment-1608058615
> > In case this helps, here is the regexp we're using to test for the secret in our automation (can also be used for properly parsing the URI I believe): > > `rbd:\/\/([\w\-\.]+):([A-Za-z0-9+/=]+)@([^:]+):(\d+)/([\w_.]+)/?([\w_.]+)?` > > @vdombrovski regarding the password, does `([A-Za-z0-9+/=]+)` cover all possible values ? Yes, because Ceph passwords are base64 encoded. However judging by other test cases (which may or may not be realistic), I believe that no single regexp is able to match all of them. So I would guess either maching repeatedly against different regular expressions or keeping a more "traditional" failover mechanism might be the answer here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
