Skip to content

Commit 1acb4c4

Browse files
authored
feat(ui-admin): not showing secret on the ui (#1778)
1 parent 1a97948 commit 1acb4c4

File tree

1 file changed

+2
-2
lines changed
  • packages/ui-admin/src/management/checklist

1 file changed

+2
-2
lines changed

packages/ui-admin/src/management/checklist/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const Checklist: FC<Props> = props => {
103103
title="Use a Postgres database"
104104
docs="https://botpress.com/docs/building-chatbots/developers/database#how-to-switch-from-sqlite-to-postgressql"
105105
status={getEnv('DATABASE_URL').startsWith('postgres') ? 'success' : 'warning'}
106-
source={[{ type: 'env', key: 'DATABASE_URL', value: getEnv('DATABASE_URL') }]}
106+
source={[{ type: 'env', key: 'DATABASE_URL', value: '**********' }]}
107107
>
108108
By default, Botpress uses an SQLite database, which is not recommended in a production environment. Postgres
109109
is more resilient and allows to run Botpress in cluster mode (using multiple servers to handle the load).
@@ -155,7 +155,7 @@ export const Checklist: FC<Props> = props => {
155155
title="Enable Redis support"
156156
status={isSet(getEnv('REDIS_URL')) && isSet(getEnv('CLUSTER_ENABLED')) ? 'success' : 'warning'}
157157
source={[
158-
{ type: 'env', key: 'REDIS_URL', value: getEnv('REDIS_URL') },
158+
{ type: 'env', key: 'REDIS_URL', value: '**********' },
159159
{ type: 'env', key: 'CLUSTER_ENABLED', value: getEnv('CLUSTER_ENABLED') },
160160
{ type: 'env', key: 'BP_REDIS_SCOPE', value: getEnv('BP_REDIS_SCOPE') }
161161
]}

0 commit comments

Comments
 (0)