message: Filter out undefined keys from settings
diff: */
  import { Logger } from 'winston';
  +import { pickBy } from 'lodash';
  import { PluginDatabaseManager } from '@backstage/backend-common';
  import { Config } from '@backstage/config';
  @@ -64,7 +65,9 @@ export class KeyStores {
  if (provider === 'firestore') {
  const settings = ks?.getConfig(provider);
  - const keyStore = await FirestoreKeyStore.create({
  + const keyStore = await FirestoreKeyStore.create(
  + pickBy(
  + {
  projectId: settings?.getOptionalString('projectId'),
  keyFilename: settings?.getOptionalString('keyFilename'),
  host: settings?.getOptionalString('host'),
  @@ -72,8 +75,10 @@ export class KeyStores {
  ssl: settings?.getOptionalBoolean('ssl'),
  path: settings?.getOptionalString('path'),
  timeout: settings?.getOptionalNumber('timeout'),
  - });
  -
  + },
  + value => value !== undefined,
  + ),
  + );
  await FirestoreKeyStore.verifyConnection(keyStore, logger);
  return keyStore;
  