Skip to content

Commit e071546

Browse files
committed
fix: remove hostname from user email generation for privacy
- Replace hostname-based email with timestamp-only format - Prevents workstation name from being stored in Langfuse - Maintains uniqueness while improving user privacy
1 parent a5ab8fd commit e071546

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/setup-langfuse.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ PROJECT_ID="proj-$(openssl rand -hex 6)"
4040
PUBLIC_KEY="pk-lf-$(openssl rand -hex 16)"
4141
SECRET_KEY="sk-lf-$(openssl rand -hex 16)"
4242

43-
# Use hostname and timestamp for unique email
44-
UNIQUE_SUFFIX="$(hostname | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g')-$(date +%s)"
45-
USER_EMAIL="admin-${UNIQUE_SUFFIX}@claude-telemetry.local"
43+
# Use timestamp for unique email (no hostname for privacy)
44+
TIMESTAMP="$(date +%s)"
45+
USER_EMAIL="admin-${TIMESTAMP}@claude-telemetry.local"
4646

4747
# Generate a secure password
4848
USER_PASSWORD="$(openssl rand -base64 12)"

0 commit comments

Comments
 (0)