Skip to content

Commit 3546084

Browse files
guguclaude
andauthored
Prevent hosted database credentials from being sent to PostHog (#1691)
Add ph-no-capture class to credential containers in the hosted database success dialog and password reset dialog so PostHog autocapture excludes sensitive data (host, port, username, password) from captured events. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b0d7ff0 commit 3546084

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/app/components/connections-list/hosted-database-success-dialog/hosted-database-success-dialog.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h1 mat-dialog-title>
2121
</p>
2222
}
2323

24-
<div class="hosted-dialog__credentials">
24+
<div class="hosted-dialog__credentials ph-no-capture">
2525
<div class="hosted-dialog__row">
2626
<span class="hosted-dialog__label">Database</span>
2727
<code>{{ data.hostedDatabase.databaseName }}</code>

frontend/src/app/components/hosted-databases/hosted-database-reset-password-dialog/hosted-database-reset-password-dialog.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1 mat-dialog-title>Reset password for <strong>{{ data.databaseName }}</strong>
1717
} @else {
1818
<h1 mat-dialog-title>New password for <strong>{{ result()!.databaseName }}</strong></h1>
1919
<mat-dialog-content class="reset-dialog__content">
20-
<div class="reset-dialog__credentials">
20+
<div class="reset-dialog__credentials ph-no-capture">
2121
<div class="reset-dialog__row">
2222
<span class="reset-dialog__label">Host</span>
2323
<code>{{ result()!.hostname }}</code>

0 commit comments

Comments
 (0)