Updated the database view to hide the password in the connection string

This commit is contained in:
Marius
2024-06-07 12:45:33 +02:00
parent 7eb1716d71
commit b312b1d7e0
5 changed files with 5 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ export const ShowInternalMariadbCredentials = ({ mariadbId }: Props) => {
<Label>Internal Connection URL </Label>
<Input
disabled
value={`mariadb://${data?.databaseUser}:${data?.databasePassword}@${data?.appName}:3306/${data?.databaseName}`}
value={`mariadb://${data?.databaseUser}:${'*'.repeat(data?.databasePassword.length)}@${data?.appName}:3306/${data?.databaseName}`}
/>
</div>
</div>

View File

@@ -48,7 +48,7 @@ export const ShowInternalMongoCredentials = ({ mongoId }: Props) => {
<Label>Internal Connection URL </Label>
<Input
disabled
value={`mongodb://${data?.databaseUser}:${data?.databasePassword}@${data?.appName}:27017`}
value={`mongodb://${data?.databaseUser}:${'*'.repeat(data?.databasePassword.length)}@${data?.appName}:27017`}
/>
</div>
</div>

View File

@@ -60,7 +60,7 @@ export const ShowInternalMysqlCredentials = ({ mysqlId }: Props) => {
<Label>Internal Connection URL </Label>
<Input
disabled
value={`mysql://${data?.databaseUser}:${data?.databasePassword}@${data?.appName}:3306/${data?.databaseName}`}
value={`mysql://${data?.databaseUser}:${'*'.repeat(data?.databasePassword.length)}@${data?.appName}:3306/${data?.databaseName}`}
/>
</div>
</div>

View File

@@ -50,7 +50,7 @@ export const ShowInternalPostgresCredentials = ({ postgresId }: Props) => {
<Label>Internal Connection URL </Label>
<Input
disabled
value={`postgresql://${data?.databaseUser}:${data?.databasePassword}@${data?.appName}:5432/${data?.databaseName}`}
value={`postgresql://${data?.databaseUser}:${'*'.repeat(data?.databasePassword.length)}@${data?.appName}:5432/${data?.databaseName}`}
/>
</div>
</div>

View File

@@ -46,7 +46,7 @@ export const ShowInternalRedisCredentials = ({ redisId }: Props) => {
<Label>Internal Connection URL </Label>
<Input
disabled
value={`redis://default:${data?.databasePassword}@${data?.appName}:6379`}
value={`redis://default:${'*'.repeat(data?.databasePassword.length)}@${data?.appName}:6379`}
/>
</div>
</div>