/ src / modules / cmdpal / Microsoft.CmdPal.UI / Settings / InternalPage.SampleData.cs
InternalPage.SampleData.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  namespace Microsoft.CmdPal.UI.Settings;
 6  
 7  public partial class InternalPage
 8  {
 9      internal static class SampleData
10      {
11          internal static string ExceptionMessageWithPii { get; } =
12              $"""
13               Test exception with personal information; thrown from the UI thread
14  
15               Here is e-mail address <jane.doe@contoso.com>
16               IPv4 address: 192.168.100.1
17               IPv4 loopback address: 127.0.0.1
18               MAC address: 00-14-22-01-23-45
19               IPv6 address: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
20               IPv6 loopback address: ::1
21               Password: P@ssw0rd123!
22               Password=secret
23               Api key: 1234567890abcdef
24               PostgreSQL connection string: Host=localhost;Username=postgres;Password=secret;Database=mydb
25               InstrumentationKey=00000000-0000-0000-0000-000000000000;EndpointSuffix=ai.contoso.com;
26               X-API-key: 1234567890abcdef
27               Pet-Shop-Subscription-Key: 1234567890abcdef
28               Here is a user name {Environment.UserName}
29               And here is a profile path {Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}\Pictures
30               Here is a local app data path {Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\Microsoft\PowerToys\CmdPal
31               Here is machine name {Environment.MachineName}
32               JWT token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30
33               User email john.doe@company.com failed validation
34               File not found: {Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)}\\secret.txt
35               Connection string: Server=localhost;User ID=admin;Password=secret123;Database=test
36               Phone number 555-123-4567 is invalid
37               API key abc123def456ghi789jkl012mno345pqr678 expired
38               Failed to connect to https://api.internal-company.com/users/12345?token=secret_abc123
39               Error accessing file://C:/Users/john.doe/Documents/confidential.pdf
40               JDBC connection failed: jdbc://database-server:5432/userdb?user=admin&password=secret
41               FTP upload error: ftp://internal-server.company.com/uploads/user_data.csv
42               Email service error: mailto:admin@internal-company.com?subject=Alert
43               """;
44      }
45  }