Skip to content
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

72 add uuid tags to all messages for tracing #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

egreer
Copy link
Contributor

@egreer egreer commented Feb 12, 2025

Fixes #72

Adds uuid for tracking the allow to the disallow so that you can trace the access better.

Full Stack may look similar to:

2025-02-12T16:48:57.288185  INFO: [PHI Access Log] [PatientInfo] [Object: 20180] [78d49f3d-f101-43bf-9aea-1cedf9bd0931] PHI Access Enabled for '/app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb': instance allow_phi nested allowances retains outer access when disallowed at inner level
2025-02-12T16:48:57.288423  INFO: [PHI Access Log] [PatientInfo] [Object: 20180] [78d49f3d-f101-43bf-9aea-1cedf9bd0931] PatientInfo access by ['/app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb']. Triggered by method: first_name
2025-02-12T16:48:57.288569  INFO: [PHI Access Log] [PatientInfo] [Object: 20180] [900d7182-0653-43a2-b037-09b6a82bd0d9] PHI Access Enabled for '/app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb': instance allow_phi nested allowances retains outer access when disallowed at inner level
2025-02-12T16:48:57.288722  INFO: [PHI Access Log] [PatientInfo] [Object: 20180] [78d49f3d-f101-43bf-9aea-1cedf9bd0931,900d7182-0653-43a2-b037-09b6a82bd0d9] PatientInfo access by ['/app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb','/app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb']. Triggered by method: first_name
2025-02-12T16:48:57.288858  INFO: [PHI Access Log] [PatientInfo] [Object: 20180] [900d7182-0653-43a2-b037-09b6a82bd0d9] PHI access disabled for /app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb
2025-02-12T16:48:57.289086  INFO: [PHI Access Log] [PatientDetail] [Object: 20200] [2599be66-33dd-4a8b-a4cb-c55079629528] PHI Access Enabled for '/app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb': instance allow_phi nested allowances retains outer access when disallowed at inner level
2025-02-12T16:48:57.289217  INFO: [PHI Access Log] [PatientDetail] [Object: 20200] [2599be66-33dd-4a8b-a4cb-c55079629528] PatientDetail access by ['/app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb']. Triggered by method: detail
2025-02-12T16:48:57.289312  INFO: [PHI Access Log] [PatientInfo] [Object: 20180] [78d49f3d-f101-43bf-9aea-1cedf9bd0931] PHI access disabled for /app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb
2025-02-12T16:48:57.289401  INFO: [PHI Access Log] [PatientDetail] [Object: 20200] [2599be66-33dd-4a8b-a4cb-c55079629528] PHI access disabled for /app/spec/phi_attrs/phi_record/instance__allow_phi_spec.rb

When access is not allowed none appears:

2025-02-12T16:48:57.171578 ERROR: [PHI Access Log] [HealthRecord] [Key: 1] [none] [UNAUTHORIZED ACCESS] Attempted PHI access for HealthRecord 

@egreer egreer requested a review from wkirby February 12, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a UUID when logging
1 participant