mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
GUACAMOLE-641: Canonicalize individual, tokenized components of secret names rather than the whole name.
In the event that a secret name is structured, such as the URL-like notation used by Keeper Secrets Manager, canonicalizing/encoding the entire name could result in the name itself becoming invalid. Only the portions that come from tokens should be canonicalized.
This commit is contained in:
@@ -66,8 +66,8 @@ public class AzureKeyVaultSecretService extends CachedVaultSecretService {
|
||||
* not allowed by Azure Key Vault, replacing them with a single dash.
|
||||
*/
|
||||
@Override
|
||||
public String canonicalize(String name) {
|
||||
Matcher disallowed = DISALLOWED_CHARACTERS.matcher(name);
|
||||
public String canonicalize(String nameComponent) {
|
||||
Matcher disallowed = DISALLOWED_CHARACTERS.matcher(nameComponent);
|
||||
return disallowed.replaceAll("-");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user