aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorauzhegov <auzhegov@yandex-team.com>2023-08-10 11:03:30 +0300
committerauzhegov <auzhegov@yandex-team.com>2023-08-10 11:59:23 +0300
commit18011fb9abf8067ea6e293a86b9ffc56f850dd84 (patch)
tree425cde997d35e5f5a03447b46ec281a76c4466fe
parent19649bbc29600a1b4b7401da9562c506f765b20f (diff)
downloadydb-18011fb9abf8067ea6e293a86b9ffc56f850dd84.tar.gz
Extended allowed symbols for secret name
-rw-r--r--ydb/services/metadata/secret/manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/services/metadata/secret/manager.cpp b/ydb/services/metadata/secret/manager.cpp
index 12f4b49bdc7..8f4d28516c8 100644
--- a/ydb/services/metadata/secret/manager.cpp
+++ b/ydb/services/metadata/secret/manager.cpp
@@ -48,6 +48,7 @@ NModifications::TOperationParsingResult TAccessManager::DoBuildPatchFromSettings
NModifications::TOperationParsingResult TSecretManager::DoBuildPatchFromSettings(const NYql::TObjectSettingsImpl& settings,
TInternalModificationContext& context) const {
+ static const TString ExtraPathSymbolsAllowed = "!\"#$%&'()*+,-.:;<=>?@[\\]^_`{|}~";
NInternal::TTableRecord result;
if (!context.GetExternalData().GetUserToken()) {
auto fValue = settings.GetFeaturesExtractor().Extract(TSecret::TDecoder::OwnerUserId);
@@ -69,7 +70,7 @@ NModifications::TOperationParsingResult TSecretManager::DoBuildPatchFromSettings
if (c >= 'A' && c <= 'Z') {
continue;
}
- if (c == '_') {
+ if (ExtraPathSymbolsAllowed.Contains(c)) {
continue;
}
return TConclusionStatus::Fail("incorrect character for secret id: '" + TString(c) + "'");