08 Apr 2024 09:10 PM - last edited on 10 May 2024 03:18 PM by Michal_Gebacki
Hi,
Title is pretty self-explanatory. I am looking for a way to use the credential vault to fill in a configuration entry so that we can prevent a password leak or something like that. Right now the text entries don't seem to provide a way to reference an item in the credential vault, unless I am wrong. If there isn't a way to do this, is this something you would consider adding in the future?
Thanks,
Benji_Dynatrace
Solved! Go to Solution.
08 Apr 2024 09:26 PM
Have not used this yet, but seems to be available, according to the following two threads:
https://community.dynatrace.com/t5/Product-ideas/RFE-Extend-the-use-of-Credential-Vault-to-Dynatrace...
09 Apr 2024 10:10 AM
It's up to each extension to implement such a feature. If you're missing it for a specific one which is available on the Dynatrace hub, please raise a product idea on the community forum.
When creating an extension in extension framework 2.0 it's possible to add credential vault support to the activation schema using this format:
"useCredentialVault": {
"displayName": "Use credential vault",
"type": "boolean",
"nullable": false,
"default": true,
"maxObjects": 1
},
"credentialVaultId": {
"displayName": "Select Vault credentials",
"nullable": true,
"type": "text",
"subType": "credential",
"referencedType": "USERNAME_PASSWORD",
"maxObjects": 1,
"precondition": {
"type": "EQUALS",
"property": "useCredentialVault",
"expectedValue": true
},
"constraints": [
{
"type": "NOT_BLANK"
}
]
},
"username": {
"displayName": "User Name",
"type": "text",
"nullable": false,
"default": "",
"precondition": {
"type": "EQUALS",
"property": "useCredentialVault",
"expectedValue": false
},
"constraints": [
{
"type": "LENGTH",
"minLength": 1,
"maxLength": 500
}
],
"maxItems": 1
},
"password": {
"displayName": "Password",
"type": "secret",
"nullable": false,
"default": "",
"precondition": {
"type": "EQUALS",
"property": "useCredentialVault",
"expectedValue": false
},
"constraints": [
{
"type": "LENGTH",
"minLength": 1,
"maxLength": 500
}
],
"maxItems": 1
}
09 Apr 2024 01:16 PM
That's exactly it, thank you so much!