Merge pull request #26110 from stephenglass/secrets-update-01

secrets on scaffolder review page show constant asterisks value
This commit is contained in:
Ben Lambert
2024-08-21 10:54:37 +02:00
committed by GitHub
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -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), '******']];
}