-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Issue UI: redact private data like (user, locations, ...) #25039
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
|
@copilot lets keep |
- Add Private field to Param struct - Mark private parameters in defaults.yaml (host, ip, user, vin, zip, etc.) - Update sanitization to support private parameter redaction - Add private query parameter support to device endpoints - Update Issue.vue to pass private=false for device configs Co-authored-by: naltatis <[email protected]>
Co-authored-by: naltatis <[email protected]>
Co-authored-by: naltatis <[email protected]>
@copilot correction. Ski as template param should be marked as private. Ski as part of eebus config (yaml) can be ignored for now. |
Co-authored-by: naltatis <[email protected]>
Done. Removed
Done. Added |
…a testing - Replace locator() with getByLabel() for semantic selectors - Replace separate Audi vehicle test with integrated Shelly meter test - Add username field testing within existing "create issue via ui" test - Use Shelly 1PM which has optional username field (no real credentials needed) - Verify private data (username, password) is redacted in bug report Co-authored-by: naltatis <[email protected]>
|
@copilot also make |
- Add private: true to lat and lon parameters (location data) - Add mask: true to accesstoken and refreshtoken (security sensitive) Co-authored-by: naltatis <[email protected]>
|
@andig please review again. I've removed the redundant field configuration. |
util/config_redactor.go
Outdated
| for k := range res { | ||
| if slices.Contains(configRedactSecrets, k) { | ||
| res[k] = "*****" | ||
| for _, secret := range configRedactSecrets { |
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.
Du meinst slices.ContainsFunc ;)
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.
Siehe
if !slices.ContainsFunc(customTypes, func(s string) bool {
return strings.EqualFold(res.Type, s)
}) {
return configReq{}, errors.New("invalid config: yaml only allowed for types " + strings.Join(customTypes, ", "))
}|
Mhhm. Did the param extraction simplification break something? |
fixes #24754
Adds private data redaction to bug reporter device configurations, preventing personally identifiable information from being exposed in GitHub issues/discussions.
privatefield and marked the relevant fields (user,vin,zip, ...)?private=falsequery parameter to config endpoints with server-side sanitizationprivate=falsewhen fetching config data for bug reports