Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect additional telemetry for crypto/runtime errors #7394

Merged
merged 10 commits into from
Oct 29, 2024
Merged

Conversation

tnorling
Copy link
Collaborator

  • Adds additional check for the subtle property on crypto
  • Fixes error stack logic to keep top 5 lines instead of bottom 5
  • Collects common, known runtime errors and redacts when necessary

@github-actions github-actions bot added msal-browser Related to msal-browser package msal-common Related to msal-common package labels Oct 22, 2024
@github-actions github-actions bot added the documentation Related to documentation. label Oct 23, 2024
) {
const line = stackArr[ix];
// These types of errors are not at risk of leaking PII. They will indicate unavailable APIs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we guarantee this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these are thrown when we call an API or access an object property that doesn't exist, neither of which are PII and we control this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*can we get a guidance to the team so folks don't accidentally add PII?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm saying there's not a risk of that. APIs and object properties are not PII

@tnorling tnorling merged commit df26209 into dev Oct 29, 2024
7 of 8 checks passed
@tnorling tnorling deleted the crypto-telemetry branch October 29, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation. msal-browser Related to msal-browser package msal-common Related to msal-common package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants