Exclude password field text from breadcrumbs

Open
#5,814 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
backend

Research direction

The report says password Entry text appears in Focused/Unfocused breadcrumbs when IncludeTextInBreadcrumbs is enabled, but it does not name the implementation or tests. Find where Entry text is added to those breadcrumbs and check the existing breadcrumb tests. Done means password entries are skipped while ordinary text breadcrumbs continue to work.

Written by the indexing model from the issue text.

Description

Bug State: Needs Discussion

Hi, I would like to pick this up if nobody is working on it :)

For the name I'd suggest IncludeButtonTextInBreadcrumbs. It follows IncludeTextInBreadcrumbs and IncludeTitleInBreadcrumbs, and can be set from appsettings same as them. Default would be false like the other ones. It would cover Button and its subclasses (ImageButton has no text and RadioButton doesn't implement IText). The data key stays Button.Text, so for people who already use IncludeTextInBreadcrumbs nothing changes.

One more thing I noticed in the code. With IncludeTextInBreadcrumbs on, an Entry with IsPassword = true also gets its text into the Focused/Unfocused breadcrumbs, so after typing the password ends up there. Maybe password entries should be always skipped. I can do it in separate small PR if you want

Does the name work for you? I can also update the MAUI options page in sentry-docs after the PR

Originally posted by @Empiree in #3130

Dominant language
C#
Stars
775
Forks
262
Avg merge
1d 16h
Merged PRs (30d)
118

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-dotnet

All issues in getsentry/sentry-dotnet

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.