With respect to GDPR compliance, we should not log personal information of a person without their consent but in debug mode, keystoneclient.v3.client.users.get(user_id) logs personal information like email_id as show below. We need to let the user pass log=False to halt logging of such response body in the logs at https://github.com/openstack/keystoneauth/blob/stable/queens/keystoneauth1/session.py#L792.
2018-04-19 05:51:10.841 82215 DEBUG keystoneauth.session [req-4ac75305-aa12-4c99-8776-cee93455578e 81eadbb18f2ce0fa47108d2fcaa2d72fa62b65a8a8628e9a85c3ce99b9a02d6d f67c1b8dd2c947d0b1a309e1ad36e76f - default default] REQ: curl -g -i -X GET https://xxxxxxxx:5000/v3/users/81eadbb18f2ce0fa47108d2fcaa2d72fa62b65a8a8628e9a85c3ce99b9a02d6d -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3c271d109933c75bad57e8f8dab7af72c496b174" _http_log_request /usr/lib/python2.7/site-packages/keystoneauth1/session.py:372
2018-04-19 05:51:10.873 82215 DEBUG keystoneauth.session [req-4ac75305-aa12-4c99-8776-cee93455578e 81eadbb18f2ce0fa47108d2fcaa2d72fa62b65a8a8628e9a85c3ce99b9a02d6d f67c1b8dd2c947d0b1a309e1ad36e76f - default default] RESP: [200] Date: Thu, 19 Apr 2018 09:51:10 GMT Server: Apache Vary: X-Auth-Token,Accept-Encoding,User-Agent x-openstack-request-id: req-5a99cac3-82c7-4d2b-a072-19ced80c62e5 Content-Encoding: gzip Content-Length: 239 Keep-Alive: timeout=5, max=99 Connection: Keep-Alive Content-Type: application/json
RESP BODY: {"user": {"password_expires_at": null, "links": {"self": "https://xxxxxxx:5000/v3/users/81eadbb18f2ce0fa47108d2fcaa2d72fa62b65a8a8628e9a85c3ce99b9a02d6d"}, "domain_id": "default", "email": "<email address hidden>", "options": {}, "id": "81eadbb18f2ce0fa47108d2fcaa2d72fa62b65a8a8628e9a85c3ce99b9a02d6d", "name": "fake_name"}}
Fix proposed to branch: master /review. openstack. org/568373
Review: https:/