-
Notifications
You must be signed in to change notification settings - Fork 124
Redact ice server credentials in logs #1408
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
Conversation
🦋 Changeset detectedLatest commit: e092f0d The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR 💥 An error occurred when fetching the changed packages and changesets in this PR |
| repeated string urls = 1; | ||
| string username = 2; | ||
| string credential = 3; | ||
| string username = 2 [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be okay to not do this for "username"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We started redacting user and participant names in other places, particularly SIP and io. I think usernames should generally be redacted.
protobufs/livekit_rtc.proto
Outdated
| string credential = 3; | ||
| string username = 2 [ | ||
| (logger.redact) = true, | ||
| (logger.redact_format) = "<redacted ({{ .Size }} bytes)>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we only care about size for metadata columns...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed redact_format entries (we do have them in other places where we redact username/pwd though)
…logs' into benjamin/redact_ice_credentials_logs
--------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This is to fix part of https://github.com/livekit/livekit/security/code-scanning/33