Merge pull request #17956 from awanlin/topic/set-database-password-visbility

Updated db connection config to set password visibility to secret
This commit is contained in:
Andre Wanlin
2023-05-30 02:19:09 -05:00
committed by GitHub
2 changed files with 19 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-common': patch
---
Updated the backend database connection configuration schema to set the password visibility to secret
+14 -2
View File
@@ -72,10 +72,22 @@ export interface Config {
/** Default database client to use */
client: 'better-sqlite3' | 'sqlite3' | 'pg';
/**
* Base database connection string or Knex object
* Base database connection string, or object with individual connection properties
* @visibility secret
*/
connection: string | object;
connection:
| string
| Partial<{
/**
* Password that belongs to the client User
* @visibility secret
*/
password: string;
/**
* Other connection settings
*/
[key: string]: unknown;
}>;
/** Database name prefix override */
prefix?: string;
/**