secrets on review page show constant asterisks value
Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-react': patch
|
||||
---
|
||||
|
||||
Scaffolder review page shows static amount of asterisks for secret fields.
|
||||
@@ -52,7 +52,10 @@ function processSchema(
|
||||
}
|
||||
}
|
||||
|
||||
if (definitionInSchema['ui:widget'] === 'password') {
|
||||
if (
|
||||
definitionInSchema['ui:widget'] === 'password' ||
|
||||
definitionInSchema['ui:field']?.toLocaleLowerCase('en-us') === 'secret'
|
||||
) {
|
||||
return [[getLastKey(key), '******']];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user