Make password masking more extensible

Bug #1407811 reported by Ben Nemec
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.utils
Won't Fix
Wishlist
Unassigned

Bug Description

Currently we have a number of hard-coded lists of things to mask. It's probably fine to leave those, but it would be nice to have an API to add more entries to them so every consumer of the library doesn't have to push their needed patterns into the library itself.

For example: https://review.openstack.org/#/c/142704/1/oslo/utils/strutils.py

tags: added: low-hanging-fruit
Changed in oslo.utils:
status: New → Triaged
Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :
Changed in oslo.utils:
assignee: nobody → ChangBo Guo(gcb) (glongwave)
status: Triaged → In Progress
Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :

From Doug:

"We've gone back and forth on this in the past, and for me it always comes down to wanting consistent behavior across projects. oslo.utils is shared space precisely because we want all projects to help maintain it. That includes adding new keys to be filtered out of messages. Adding them to the library means that all projects benefit from the list. Maintaining a separate list in each project means we all have to reproduce the same work, and we have inconsistent security-related behavior."

Changed in oslo.utils:
status: In Progress → Won't Fix
assignee: ChangBo Guo(gcb) (glongwave) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.