metadataMap property

Map<String, PasswordMetadata> metadataMap
final

Implementation

static final Map<String, PasswordMetadata> metadataMap = {
  'database': PasswordMetadata(
    category: PasswordCategory.services,
    notes: 'Database password',
    isValidValue: (_) => null,
  ),
  'serviceSecret': PasswordMetadata(
    category: PasswordCategory.services,
    notes: 'Insights password',
    isValidValue: (final value) => value.length >= 20
        ? null
        : 'Password must be at least 20 characters long.',
  ),
  'redis': PasswordMetadata(
    category: PasswordCategory.services,
    notes: 'Redis password',
    isValidValue: (_) => null,
  ),
  'HMACAccessKeyId': PasswordMetadata(
    category: PasswordCategory.services,
    notes: 'Access key ID for HMAC authentication (GCP)',
    isValidValue: (_) => null,
  ),
  'HMACSecretKey': PasswordMetadata(
    category: PasswordCategory.services,
    notes: 'Secret key for HMAC authentication (GCP)',
    isValidValue: (_) => null,
  ),
  'AWSAccessKeyId': PasswordMetadata(
    category: PasswordCategory.services,
    notes: 'Access key ID for AWS authentication (S3)',
    isValidValue: (_) => null,
  ),
  'AWSSecretKey': PasswordMetadata(
    category: PasswordCategory.services,
    notes: 'Secret key for AWS authentication (S3)',
    isValidValue: (_) => null,
  ),
  'emailSecretHashPepper': PasswordMetadata(
    category: PasswordCategory.auth,
    notes: 'Used by serverpod_auth_idp_server',
    isValidValue: (_) => null,
  ),
  'jwtRefreshTokenHashPepper': PasswordMetadata(
    category: PasswordCategory.auth,
    notes: 'Used by serverpod_auth_idp_server',
    isValidValue: (final value) => value.length >= 10
        ? null
        : 'Password must be at least 10 characters long.',
  ),
  'jwtHmacSha512PrivateKey': PasswordMetadata(
    category: PasswordCategory.auth,
    notes: 'Used by serverpod_auth_idp_server',
    isValidValue: (_) => null,
  ),
  'serverpod_auth_googleClientSecret': PasswordMetadata(
    category: PasswordCategory.legacyAuth,
    notes: 'Client secret for Google authentication',
    isValidValue: (_) => null,
  ),
  'serverpod_auth_firebaseServiceAccountKey': PasswordMetadata(
    category: PasswordCategory.legacyAuth,
    notes: 'Service account key for Firebase authentication',
    isValidValue: (_) => null,
  ),
};