API message logging should have field blacklist

Bug #1500298 reported by Tim Penhey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Low
Unassigned

Bug Description

The logging of the API calls are extremely useful for development, and in debugging production issues.

However we do not want the logging of "secret" values on in production environments, but we would still like a way to see things during development.

Here is a proposal:

Add a feature flag for detailed logging of api calls. This would show all the details of the call if this developer flag is on.

If the flag is off, the serialized JSON is passed through a sanitizer that looks through the nested dictionaries for any key that matches either the provider secret, or any key Juju uses internally to represent a password.

Tim Penhey (thumper)
Changed in juju-core:
milestone: none → 1.26-alpha1
no longer affects: juju-core/1.25
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.26-alpha1 → 1.26-alpha2
Changed in juju-core:
milestone: 1.26-alpha2 → 1.26.0
Changed in juju-core:
milestone: 1.26.0 → 2.0-beta1
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta1 → 2.0-beta2
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta2 → 2.0-beta3
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta3 → 2.0-beta4
Changed in juju-core:
milestone: 2.0-beta4 → 2.1.0
affects: juju-core → juju
Changed in juju:
milestone: 2.1.0 → none
milestone: none → 2.1.0
Revision history for this message
Anastasia (anastasia-macmood) wrote :

As this is a tech-debt item, I am lowering its priority and removing from the milestone.

Changed in juju:
importance: High → Low
milestone: 2.1.0 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.