Merge pull request #2809 from alwaysjolley/vault_regex
fixing regex to be more flexable
This commit is contained in:
commit
5b8c600261
|
@ -67,14 +67,14 @@ class VaultSourcePlugin(SourcePlugin):
|
||||||
"name": "vaultPath",
|
"name": "vaultPath",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"required": True,
|
"required": True,
|
||||||
"validation": "^([a-zA-Z0-9_-]+/?)+$",
|
"validation": "^([a-zA-Z0-9._-]+/?)+$",
|
||||||
"helpMessage": "Must be a valid Vault secrets path",
|
"helpMessage": "Must be a valid Vault secrets path",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "objectName",
|
"name": "objectName",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"required": True,
|
"required": True,
|
||||||
"validation": "[0-9a-zA-Z:_-]+",
|
"validation": "[0-9a-zA-Z.:_-]+",
|
||||||
"helpMessage": "Object Name to search",
|
"helpMessage": "Object Name to search",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -177,14 +177,14 @@ class VaultDestinationPlugin(DestinationPlugin):
|
||||||
"name": "vaultPath",
|
"name": "vaultPath",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"required": True,
|
"required": True,
|
||||||
"validation": "^([a-zA-Z0-9_-]+/?)+$",
|
"validation": "^([a-zA-Z0-9._-]+/?)+$",
|
||||||
"helpMessage": "Must be a valid Vault secrets path",
|
"helpMessage": "Must be a valid Vault secrets path",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "objectName",
|
"name": "objectName",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"required": False,
|
"required": False,
|
||||||
"validation": "[0-9a-zA-Z:_-]+",
|
"validation": "[0-9a-zA-Z.:_-]+",
|
||||||
"helpMessage": "Name to bundle certs under, if blank use cn",
|
"helpMessage": "Name to bundle certs under, if blank use cn",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue